Skip to content
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

Move overflow menu to start of menubar #7130

Open
rolfsmeds opened this issue Feb 15, 2024 · 0 comments
Open

Move overflow menu to start of menubar #7130

rolfsmeds opened this issue Feb 15, 2024 · 0 comments
Labels
enhancement New feature or request vaadin-menu-bar

Comments

@rolfsmeds
Copy link
Contributor

Describe your motivation

With the addition of vaadin/platform#5018, the order in which menu items are collapsed into the overflow menu can be reversed. This has no effect on the position of the overflow menu itself (which remains at the end of the bar). Depending on the items in the bar, and the context in which the menubar is used, it can be preferable to have the overflow menu at the start of the bar instead.

Describe the solution you'd like

An API for moving the overflow menu to the start of the bar.
Flow API could be something like MenuBar::setOverflowMenuAtStart(boolean)
WC property could be called something like overflow-at-start

Describe alternatives you've considered

Allowing the developer to create his own overflow menu item and/or designate any top-level menu item as the overflow menu, would serve the same purpose and be even more flexible, but probably much more difficult to implement.

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request vaadin-menu-bar
Projects
None yet
Development

No branches or pull requests

1 participant