Renderer In Lightning Component Bundle

We use custom renderer to change or override the default rendering behavior of the component.

It automatically called when data is updated in the component.

There are four basic methods to render In the component.

1). render()
2). rerender()
3). afterRender()
4). unrender()

unrender():-
It call by framework when components is has been deleted.
Syntex:-
render : function(component, helper) {
var returnVal = this.superRender();
// Write your custom code here.
return returnVal;
}

rerender : function(component, helper) {
this.superRerender();
// Write your custom code here.
}

afterRender : function(component, helper) {
this.superAfterRender();
// Write your custom code here.
}

unRender : function(component, helper) {
this.superUnrender();
// Write your custom code here.
}


To know more live demo source code in Salesforce lightning, Trigger, Visualforce & LWC, Use this link..



Renderer In Lightning Component Bundle Renderer In Lightning Component Bundle Reviewed by Admin on 4:17 AM Rating: 5

8 comments:

  1. Nice article, Thanks for share this information. I found this very helpful.

    ReplyDelete
  2. I like your post because it’s very helpful information.

    ReplyDelete
  3. What a fantastic post! This is so chock full of useful information I can't wait to dig deep and utilize the resources you have given me. Your exuberance is refreshing.

    ReplyDelete
  4. Thanks For Sharing The Amazing content. I Will also share with my friends. Great Content thanks a lot.amazing article

    ReplyDelete

header banner -- www.w3web.net



Powered by Blogger.