Newer Version Available
ui:spinner
A loading spinner to be used while the real component body is being loaded
To toggle the spinner, use get("e.toggle"), set the isVisible parameter to true or false, and then fire the event.
This example shows a spinner when a component is expecting a server response and removes the spinner when the component is no longer waiting for a response.
This client-side controllers shows and hides the spinner accordingly.
This example shows a spinner that can be toggled.
Attributes
| Attribute Name | Attribute Type | Description | Required? |
|---|---|---|---|
| body | Component[] | The body of the component. In markup, this is everything in the body of the tag. | |
| isVisible | Boolean | Specifies whether or not this spinner should be visible. Defaults to true. |
Events
| Event Name | Event Type | Description |
|---|---|---|
| toggleLoadingIndicator | COMPONENT | Change the visibility of a ui:spinner component. |