Activity Forums Salesforce® Discussions How to make a div block rendered on a particular event in Salesforce Lightning? Reply To: 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.