lightning tree grid showing Account and its related Contacts and Opportunity in LWC in Salesforce
Sample Code: HTML: <template> <div class="slds-p-around_medium lgc-bg"> <div class="slds-m-bottom_small"> <lightning-button label="Expand All" onclick={clickToExpandAll}> </lightning-button> <lightning-button label="Collapse All" onclick={clickToCollapseAll}> </lightning-button> </div> <lightning-tree-grid ....