0

I would like to hide the checkbox only for parent rows . I am not sure how to achieve it. I went through the lightning library but I couldn't find any information related to it.

<lightning:treeGrid aura:id="Tree" 
                            columns="{!v.gridColumns}" 
                            data="{!v.gridData}" 
                            expandedRows="{!v.gridExpandedRows}"
                            hideCheckboxColumn = "true" />

Is there any way where I can pass the boolean value dynamically to hideCheckboxColumn in the component?

2

NO. you cannot the attribute hideCheckboxColumn is at the component level and its all or nothing kind to show/hide checkboxes.

you will have to most likely create your own component using the markup and CSS provided in lightning design system

  • Thank you for your suggestions – Mangoski May 18 at 9:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.