Please give me some Information about how to use RENDERER, DESIGN in LIGHTNING COMPONENT BUNDLE with an example.
댓글 4개
You should use renderer if you want to modify the DOM directly, like adding/removing div or any other HTML elements. Outside of the renderer, you should only modify attributes, and let the Lightning Framework do the rendering for you. Note that since Summer '17 you should use the aura:valueRender Event Instead of a Custom Renderer: https://releasenotes.docs.salesforce.com/en-us/summer17/release-notes/rn_lightning_event_render.htm