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

  • How can we display loading spinner in lightning component in Salesforce?

    Posted by krati on April 17, 2020 at 4:21 pm

    How can we display loading spinner in lightning component in Salesforce?

    Deepak replied 4 years, 8 months ago 2 Members · 1 Reply
  • 1 Reply
  • Deepak

    Member
    April 17, 2020 at 5:30 pm

    Hi Krati,
    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