Newer Version Available
aura:waiting
Indicates that the app is waiting for a response to a server
request. This event is fired
before aura:doneWaiting.
This event is automatically fired when a server-side action is added using
$A.enqueueAction() and subsequently run, or
when it’s expecting a response from an Apex controller. The
aura:waiting event is handled by a client-side
controller. A component can have only one <aura:handler> tag to handle this event.
This
example shows a spinner when aura:waiting is
fired.
This
client-side controller fires an event that displays the
spinner.
The
aura:waiting handler contains these required
attributes.
| Attribute Name | Type | Description |
|---|---|---|
| event | String | The name of the event, which must be set to aura:waiting. |
| action | Object | The client-side controller action that handles the event. |