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.
}
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
Reviewed by Admin
on
4:17 AM
Rating:
Nice article, Thanks for share this information. I found this very helpful.
ReplyDeleteI like your post because it’s very helpful information.
ReplyDeleteWhat 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.
ReplyDeleteamazing contents.!!!
ReplyDeleteamazing article
ReplyDeleteThanks For Sharing The Amazing content. I Will also share with my friends. Great Content thanks a lot.amazing article
ReplyDeletegood Info..!!
ReplyDelete5 Internet Approval Site (Do Follow Backlinks)
Amazing post
ReplyDelete