Activity Forums Salesforce® Discussions How to make a div block rendered on a particular event in Salesforce Lightning?

  • PRANAV

    Member
    March 21, 2018 at 2:16 pm

    Hi Kapil,

    You can render the content inside the div by setting the attribute from javascript controller. As the standard functionality of Saleesforce Lightning, that if you set the attribute from JavaScript then it automatically rerender in the component.

    OR

    You can put your div tag inside the <aura:if> and set the boolean value from JavaScript. It will rerender automatically.

    Hope this helps you.

  • Parul

    Member
    September 18, 2018 at 7:46 pm

    Hi

    You can render the content inside the div by setting the attribute inside Javasript and you can put your div tag inside the <aura:if> and set the boolean value from JavaScript. It will rerender automatically.

     

    Thanks

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos