-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sub-Items in the Menu #799
Comments
@anserwaseem @evshi here's a proposal for EDL Sidebar:
styles:
# expose styling of group and its items
groupPadding:
groupItemTextStyle:
items:
- type: navItem # default type, and what is supported today
label: Home
page: home
- type: navGroup
label: Products
collapsable: true # default
collapseByDefault:
collapseIcon:
# icon properties
expandIcon:
# icon properties
items:
- label: Product A
page: products/a
- label: Product B
page: products/b |
@amin-nas |
My thinking is that
cc @vusters, @kmahmood74 - please chime in if you have other ideas |
@anserwaseem @amin-nas @justEhmadSaeed this layout is possible already via custom widgets and collapsible containers, and actions. If we're trying to optimize the YAML, then adding additional attributes to support this seems counterproductive. I think we need to maintain the decoupling of routing and presentation and not create a specialized way to define sub menus. Is there a strong reason not to support nested ViewGroups? A ViewGroup represents a logical group of routes in your app, and supports defining presentation for each. If an item routes to another ViewGroup, then that is a sub menu? |
It'll be pretty miserable UX for the user though. I think we should simply ViewGroup rather than making it link to different ViewGroups.. e.g. which is the main one? what happened when i delete one ?, not to mention it'll be hard to support in the Visual Editor. I think we should stick to a simple flow. What @amin-nas has above is simple enough:
The important thing is |
Is your feature request related to a problem? Please describe.
![image](https://private-user-images.githubusercontent.com/46846821/360987091-0d63794e-de3e-452a-a53e-7ca9f1e244a9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1OTkxNDAsIm5iZiI6MTczOTU5ODg0MCwicGF0aCI6Ii80Njg0NjgyMS8zNjA5ODcwOTEtMGQ2Mzc5NGUtZGUzZS00NTJhLWE1M2UtN2NhOWYxZTI0NGE5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDA1NTQwMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNiZDNjMGExZjY4OTM3OWE4MzM5ZjViMDExYWMxMzU2ODc2ZGMxNWJlMWRmMTZjN2M5MjU3Nzg3NDVkN2U0MTQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.HGn5GRA43cjWVgXyJ6TsKGuV8AJzMEE3ek3cih812fQ)
Need sub items for the menu items that can be collapsed or expanded.
Feature Request Ticket
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: