Class sap.m.BusyDialogModule: sap/m/BusyDialog
BusyDialog is used to indicate that the system is busy and the user has to wait.
sClassName
and enriches it with the information contained in oClassInfo
.fnFunction
to the close
event of this sap.m.BusyDialog
.fnFunction
from the close
event of this sap.m.BusyDialog
.ariaLabelledBy
.ariaLabelledBy
.customIconDensityAware
.customIconRotationSpeed
. Accepts an object literal mSettings
that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject for a general description of the syntax of the settings object.
The supported settings are:
- Properties
- text : string (default: )
- title : string (default: )
- customIcon : sap.ui.core.URI (default: )
- customIconRotationSpeed : int (default: 1000)
- customIconDensityAware : boolean (default: true)
- customIconWidth : sap.ui.core.CSSSize (default: 44px)
- customIconHeight : sap.ui.core.CSSSize (default: 44px)
- cancelButtonText : string (default: )
- showCancelButton : boolean (default: false)
- Events
- close : fnListenerFunction or [fnListenerFunction, oListenerObject] or [oData, fnListenerFunction, oListenerObject]
In addition, all settings applicable to the base type sap.ui.core.Control can be used as well.
{string} | sId? | ID for the new control, generated automatically if no ID is given. |
{object} | mSettings? | Initial settings for the new control. |
{sap.ui.base.Event} | oControlEvent | |
{sap.ui.base.EventProvider} | oControlEvent.getSource | |
{object} | oControlEvent.getParameters | |
{boolean} | oControlEvent.getParameters.cancelPressed | Indicates if the close events are triggered by a user, pressing a cancel button or because the operation was terminated. This parameter is set to true if the close event is fired by user interaction. |
sClassName
and enriches it with the information contained in oClassInfo
. oClassInfo
might contain the same kind of information as described in sap.ui.core.Control.extend.
{string} | sClassName | Name of the class being created |
{object} | oClassInfo? | Object literal with information about the class |
{function} | FNMetaImpl? | Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata |
{function} | Created class / constructor function |
{sap.ui.base.Metadata} | Metadata object describing this class |
ariaLabelledBy
. {string|sap.ui.core.Control} | vAriaLabelledBy | the ariaLabelledBy to add; if empty, nothing is inserted |
{sap.m.BusyDialog} | Reference to this in order to allow method chaining |
fnFunction
to the close
event of this sap.m.BusyDialog
. When called, the context of the event handler (its this
) will be bound to oListener
if specified, otherwise it will be bound to this sap.m.BusyDialog
itself.
Fires when the busy dialog is closed.
{object} | oData? | An application-specific payload object that will be passed to the event handler along with the event object when firing the event |
{function} | fnFunction | The function to be called when the event occurs |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.m.BusyDialog itself |
{sap.m.BusyDialog} | Reference to this in order to allow method chaining |
fnFunction
from the close
event of this sap.m.BusyDialog
. The passed function and listener object must match the ones used for event registration.
{function} | fnFunction | The function to be called, when the event occurs |
{object} | oListener | Context object on which the given function had to be called |
{sap.m.BusyDialog} | Reference to this in order to allow method chaining |
close
to attached listeners. Expects the following event parameters:
cancelPressed
of typeboolean
Indicates if the close events are triggered by a user, pressing a cancel button or because the operation was terminated. This parameter is set to true if the close event is fired by user interaction.
{Map} | mArguments? | The arguments to pass along with the event |
{sap.m.BusyDialog} | Reference to this in order to allow method chaining |
ariaLabelledBy
. {sap.ui.core.Control[]} |
cancelButtonText
. The text of the cancel button. The default text is "Cancel" (translated to the respective language).
Default value is .
{string} | Value of property cancelButtonText |
customIcon
. Icon, used from the BusyIndicator. This icon is invisible in iOS platform and it is density aware. You can use the density convention (@2, @1.5, etc.) to provide higher resolution image for higher density screens.
Default value is .
{sap.ui.core.URI} | Value of property customIcon |
customIconDensityAware
. If this is set to false
, the source image will be loaded directly without attempting to fetch the density perfect image for high density devices. By default, this is set to true
but then one or more requests are sent trying to get the density perfect version of the image.
If bandwidth is the key for the application, set this value to false
.
Default value is true
.
{boolean} | Value of property customIconDensityAware |
customIconHeight
. Height of the provided icon with default value "44px".
Default value is 44px
.
{sap.ui.core.CSSSize} | Value of property customIconHeight |
customIconRotationSpeed
. Defines the rotation speed of the given image. If GIF file is used, the speed has to be set to 0. The value is in milliseconds.
Default value is 1000
.
{int} | Value of property customIconRotationSpeed |
customIconWidth
. Width of the provided icon with default value "44px".
Default value is 44px
.
{sap.ui.core.CSSSize} | Value of property customIconWidth |
showCancelButton
. Indicates if the cancel button will be rendered inside the busy dialog. The default value is set to false
.
Default value is false
.
{boolean} | Value of property showCancelButton |
text
. Optional text displayed inside the dialog.
Default value is .
{string} | Value of property text |
title
. Sets the title of the BusyDialog. The default value is an empty string.
Default value is .
{string} | Value of property title |
ariaLabelledBy
. {sap.ui.core.Control[]} | An array of the removed elements (might be empty) |
ariaLabelledBy
. {int|string|sap.ui.core.Control} | vAriaLabelledBy | The ariaLabelledByto be removed or its index or ID |
{sap.ui.core.Control} | the removed ariaLabelledBy or null |
cancelButtonText
. The text of the cancel button. The default text is "Cancel" (translated to the respective language).
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is .
{string} | sCancelButtonText | New value for property cancelButtonText |
{sap.m.BusyDialog} | Reference to this in order to allow method chaining |
customIcon
. Icon, used from the BusyIndicator. This icon is invisible in iOS platform and it is density aware. You can use the density convention (@2, @1.5, etc.) to provide higher resolution image for higher density screens.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is .
{sap.ui.core.URI} | sCustomIcon | New value for property customIcon |
{sap.m.BusyDialog} | Reference to this in order to allow method chaining |
customIconDensityAware
. If this is set to false
, the source image will be loaded directly without attempting to fetch the density perfect image for high density devices. By default, this is set to true
but then one or more requests are sent trying to get the density perfect version of the image.
If bandwidth is the key for the application, set this value to false
.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
{boolean} | bCustomIconDensityAware | New value for property customIconDensityAware |
{sap.m.BusyDialog} | Reference to this in order to allow method chaining |
customIconHeight
. Height of the provided icon with default value "44px".
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 44px
.
{sap.ui.core.CSSSize} | sCustomIconHeight | New value for property customIconHeight |
{sap.m.BusyDialog} | Reference to this in order to allow method chaining |
customIconRotationSpeed
. Defines the rotation speed of the given image. If GIF file is used, the speed has to be set to 0. The value is in milliseconds.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 1000
.
{int} | iCustomIconRotationSpeed | New value for property customIconRotationSpeed |
{sap.m.BusyDialog} | Reference to this in order to allow method chaining |
customIconWidth
. Width of the provided icon with default value "44px".
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 44px
.
{sap.ui.core.CSSSize} | sCustomIconWidth | New value for property customIconWidth |
{sap.m.BusyDialog} | Reference to this in order to allow method chaining |
showCancelButton
. Indicates if the cancel button will be rendered inside the busy dialog. The default value is set to false
.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
{boolean} | bShowCancelButton | New value for property showCancelButton |
{sap.m.BusyDialog} | Reference to this in order to allow method chaining |
text
. Optional text displayed inside the dialog.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is .
{string} | sText | New value for property text |
{sap.m.BusyDialog} | Reference to this in order to allow method chaining |
title
. Sets the title of the BusyDialog. The default value is an empty string.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is .
{string} | sTitle | New value for property title |
{sap.m.BusyDialog} | Reference to this in order to allow method chaining |