Sidebar Menu for undetermined amount of Categories and Items (e.g. in a Store) #5566
whoamiafterall
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
|
@whoamiafterall Looks good. But to facilitate "more sense of hierarchy" maybe you can steal our docs' tree sidebar 😉
#4732 by yours truly |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Motivation
I was looking for a way to have a nice and clean dynamic menu that is generated from data and works well on mobile devices.
Idea
Use ui.toggle() inside ui.expansion() both in a vertical manner.
Limitations
See #5540 for limitations on vertical ui.toggle()
Code
Note that the snapping of the drawer goes away when you actually register sub pages (because it wont be recreated every time).
Preview
Beta Was this translation helpful? Give feedback.
All reactions