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!

  • 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

Popular Salesforce Videos