JavaScript UI Libraries & Blazor Components Suite – Smart UI Forums Menu & Tree How to hide a drop down arraw when there is no children for an item? Reply To: How to hide a drop down arraw when there is no children for an item?

#111102
Markov
Keymaster

Hi Aditya,

Yes, it will not. A possible solution here would be to use smart-tree-items-group. After you create the tree, use document.querySelectorAll(‘smart-tree-items-group’) and then loop through all groups, check the .children property for children and hide the arrow if there’s no child.

Best regards,
Markov

Smart UI Team
https://www.htmlelements.com/