Multilevel menu with only expanded current branch – how?
-
Hi, all,
is it possible to filter menu so that only expanded branch is the one where current item is located?
E.g., I have menu like this:AAA aaa 111 222 bbb 111 ccc BBB aaa CCC
When my active item is “111”, I would like to have visible all top level items, but expanded only the branch where the active item is:
AAA <- siblings of parent visible aaa <- siblings of parent visible 111 <- current 222 <- sibling visible bbb <- not expanded ccc BBB <- not expanded, visible! CCC <- not expanded, visible!
So the algorithm would be something like:
{ 1. Display siblings of current item. 2. Get parent item. } Repeat until parent item not found
Can this be achieved somehow?
Thx in advance.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Multilevel menu with only expanded current branch – how?’ is closed to new replies.