Activity › Forums › Salesforce® Discussions › How can we display loading spinner in lightning component?

  • Mallika

    Member
    July 21, 2020 at 5:59 AM

    Hi Pooja,
    lightning:spinner displays an animated spinner image to indicate that a request is loading.
    Here is the explanation and example code for creating loading spinner in Lightning component.
    https://www.sfdcpoint.com/salesforce/loading-spinner-in-lightning-component/
    Hope this helps!

  • [adinserter block='9']
  • Ratnesh

    Member
    July 21, 2020 at 6:17 AM

    When the user click on the get Contact button, a server request create by js controller and aura:waiting event fired automatically . and call the showSpinner function on client side controller. showSpinner js function set the spinner attribute to true on component and the loading spinner is display on component body.

Log In to reply.

Popular Salesforce Blogs

Understanding the role of Salesforce Consulting in Driving Digital Transformation

Blog in

In today’s rapidly evolving business environment, digital transformation has become a critical priority for companies across all industries. Digital transformation integrates digital technology into an…

Popular Salesforce Videos