Busy Indicators 0dd2110
Busy Indicators 0dd2110
Busy Indicators 0dd2110
0dd211065c714c0d8a35cecb5fea8557
view on: demo kit nightly build | demo kit latest release
Busy Indicators
You use busy indicators to inform users that something is going on in the background, for
example, some data is being fetched from the back end and the user has to wait. As long as
the busy indicator is shown, either all or a specific part of the UI is blocked, and no user
interaction is possible.
Whenever busy indication is triggered, the default delay until the busy indicator is
displayed on the UI is 1000 ms (1 second). If this delay were not in place, the busy indicator
would always be displayed, even if there is no negotiable waiting time.
You can choose between the following busy indicators, depending on your use case:
• sap.ui.core.BusyIndicator
• sap.m.BusyDialog
• sap.m.BusyIndicator
To release the UI again, the busy indication must be hidden again. This function call hides
the busy indication immediately:
sap.ui.core.BusyIndicator.hide();
The following code shows how you define the default state of a control as busy so that it
will be displayed as busy when it has been rendered:
var oInput = new sap.m.Input({
value:'Hello World',
*HIGHLIGHT START*busy: true
*HIGHLIGHT END*
});
To release the control’s busy state again, the same API can be used. This has to be done by
the application after some data has been loaded, for example with the following command:
oMyListBox.setBusy(false);