function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sai teja 69sai teja 69 

how render will work in LWC? it will render specific component or entire template?

how render will work in LWC? it will render specific component or entire template?

Can i use render in lwc as follows
 
<lightning-button class="slds-button" variant="neutral" render={checkFlag}>Escalate to AMS</lightning-button>

 
Priya GovindasamyPriya Govindasamy
There is no standard event named render for lightning-button. If you are creating a custom event then it has to be called with prefix 'on' such as onrender.

If you are trying to render a block you can use <template if:true = {checkFlag}></template>

Priya