As per the LC documentation and answers to the below questions:
1.Jquery selector is not working properly in subsequent loads in lightning component.
2.DOM modification feasibility in lightning.
It's clear that,DOM manipulation should be done afterRender
,which makes sense.
But if i were to use 3rd party libraries(like charts,fullcalendar,jquery...) ,then they are not available when the afterRender
is called,which really a problem.So only the way to make sure the libraries are available,before i could use them in the helper
is using afterScriptLoaded
.
So which implies ,the code is doing DOM manipulation outside the renderer which conflicts with above answers and the docs.
So My question is,
1.Is there's a way ,to do the DOM manipulation using 3rd party libraries in Renderer
.if so how can i make sure libraries are available in helper
?
2.Is it okay,to do the above in afterScriptLoaded
?
I really need a clarification on the above,so that i can properly follow the best practices in LC.