Spinner (Deprecated)

ui:spinner

Deprecated as of API version 47.0. We recommend migrating to Lightning Web Components and using the lightning-spinner component.

For Use In

Lightning Experience, Experience Builder Sites, Salesforce Mobile App, Lightning Out (Beta), Standalone Lightning App

Deprecation Guidelines 

We recommend using Lightning Web Components whenever possible. When migrating to Lightning Web Components, use lightning-spinner.

For more information, see Aura Components in the ui Namespace Are Deprecated.

Usage Overview (Deprecated) 

To toggle the spinner, use get("e.toggle"), set the isVisible parameter to true or false, and then fire the event.

Attributes 

NameDescriptionTypeDefaultRequired
bodyThe body of the component. In markup, this is everything in the body of the tag.Aura.Component[]
classA CSS style to be attached to the component. This style is added in addition to base styles output by the component.String
isVisibleSpecifies whether or not this spinner should be visible. Defaults to true.Booleantrue