A progress indicator.
- Since:
- 1.0.71
- Copyright:
- Copyright (C) 2005-2020 Alfresco Software Limited
- License:
- GNU Lesser General Public License, see: Open Source Licensing
- Source:
Members
-
_scrollbarWidth :number
-
The scrollbar width for this browser-environment
Type:
- number
- Default Value:
- null
- Source:
-
baseClass :string
-
The base CSS class for the widget
Type:
- string
- Default Value:
- "alfresco-notifications-ProgressIndicator"
- Source:
-
cssRequirements :object[]
-
An array of the CSS files to use with this widget.
Type:
- object[]
- Default Value:
- [{cssFile:"./css/ProgressIndicator.css"}]
- Source:
-
destroyAfterHideMs :number
-
How many milliseconds to wait before destroying this widget after the indicator has been hidden
Type:
- number
- Default Value:
- 500
- Source:
-
destroyDeferred :object
-
Variable to hold the Deferred object that will resolve once this notification is destroyed
Type:
- object
- Default Value:
- null
- Source:
-
i18nRequirements :object[]
-
An array of the i18n files to use with this widget.
Type:
- object[]
- Default Value:
- [{i18nFile: "./i18n/ProgressIndicator.properties"}]
- Source:
-
id :String
-
The notification ID (helps with customisation)
Type:
- String
- Default Value:
- null
- Source:
-
loadingMessage :string
-
The loading message text
Type:
- string
- Default Value:
- "progress-indicator.loading-message"
- Source:
-
templateString :String
-
The HTML template to use for the widget.
Type:
- String
Methods
-
_getScrollbarWidth() → {number}
-
Get the scrollbar width for the current browser environment. This is cached after first retrieval for faster access.
Returns:
The scrollbar width- Type
- number
-
destroy()
-
Called when widget is destroyed
-
<private> hide() → {Object}
-
Hide the progress indicator (and destroy it)
Returns:
A promise that will be resolved when this widget has been destroyed- Type
- Object
-
onCloseClick(evt)
-
Handle clicks on the close button.
Parameters:
Name Type Description evt
Object The Dojo-normalised event object -
onKeyPress(evt)
-
Handle keypresses on the document.
Parameters:
Name Type Description evt
Object The Dojo-normalised event object -
postCreate()
-
Called after widget created, but not sub-widgets
-
postMixInProperties()
-
This is run after the properties have been mixed in, but before the widget is created.