Lightning Advance Development - Custom Renderer in Lightning component

preview_player
Показать описание
2 - The render() method is called to render the component’s body.
3 - The afterRender() method is called to enable you to interact with the DOM tree after the framework’s rendering service has inserted DOM elements.
4 - The framework fires a render event, enabling you to interact with the DOM tree after the framework’s rendering service has inserted DOM elements. Handling the render event is preferred to creating a custom renderer and overriding afterRender().

#CustomRenderInLightning #AdvanceLightning #SFDCPanther #LightningTutorial #LightningDevelopment #LearnShareRepeat #BAM #Salesforce #Lightning
Рекомендации по теме
Комментарии
Автор

You didn't explain the this.superrendere and all those super methods.. Please explain. Thanks ☺

rockstarrishap
Автор

Amit, Please suggest
I got to place lightning comp in utility items, but v.recordId is throwing null in 'init' function.same works in cmp framework.

As per one of the forums, I was suggsested to use 'afterRender'. i have tried, somehow i did not get exptected result.

So i have done research, and used 'render' as below.I am able to capture recordId in "onRender".

But when I use this "component.set()" to assign some value to one of the attributes in "onRender", it is getting called continuosly (more than 100 times)

<aura:handler name="render" value="{!this}" action="{!c.onRender}"/>

manishamanisha