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?
July 4, 2024 at 5:17 am
#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/