I have a lightning:tree component in my application. I can react to its onselect event but how can I mark a specific tree node a selected from the my component controller?

  • 2
    The way I see it, selected node will have a different class (like active) associated with it. You can add the class to selected node yourself in render-er.
    – manjit5190
    Feb 12, 2018 at 12:50
  • I'm just a beginner with lighting components and never used renderer. Could you please share a link?
    – Demarsch
    Feb 12, 2018 at 13:00
  • Please see this link for renderer and the topic Modifying the DOM at bottom of the page
    – manjit5190
    Feb 12, 2018 at 14:20


You must log in to answer this question.

Browse other questions tagged .