etrepat / baum

Baum is an implementation of the Nested Set pattern for Laravel's Eloquent ORM.
http://etrepat.com/baum
MIT License
2.24k stars 459 forks source link

search in child nodes #256

Open xciser77 opened 7 years ago

xciser77 commented 7 years ago

I have a menu script with needs to add the active class to the root item is one of the child items is selected eg

Configuration

If I select Menu then I need an active class on the Configution and Menu item. So I need to search the children items if it contains the active uri. Is this possible ?