-
Notifications
You must be signed in to change notification settings - Fork 80
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
MenuBar: support for reverse collapsing order #5018
Comments
Just to clarify, if you set the menubar items as: menuBar.items = [
{ text: 'First' },
{ text: 'Second' },
{ text: 'Third' },
{ text: 'Fourth' },
{ text: 'Fifth' }]; should keep-items-order.mp4...or reverse it also: reverse-items-order.mp4 |
Keep the current ordering of items. |
Hello, |
Hi @lipisak. It depends a lot on your use case. I agree that if your rightmost item is Close / X, then it would be better to have the overflow menu on the left. However, in other use cases it makes more sense on the right, as that is where you would typically have your "miscellaneous" functions. If you have one item in the menu that should never collapse (as I suspect is the case with the close button), I would propose having that as a separate button next to the MenuBar instead. So while we could support having the overflow menu on the left, that would be a separate feature. Feel free to make a ticket about that. |
Hi @rolfsmeds, My opinion in this is: put the overflow menu on that side from which you "remove" the items....
This API could be RTL/LTR specific as each of these settings takes BEGIN/END differently. Thank you |
@lipisak I think we did discuss this in Frankfurt, yes! And I do agree that it would also be useful to be able to set the position of the overflow menu. However, this was built as a sponsored feature with a specific, fixed scope, so the overflow position will need to be done separately. Here's a ticket for it: vaadin/web-components#7130 |
Description
An option to have Menu Bar buttons collapse into the overflow menu starting from the left (start) end of the bar instead of the right (end) end of the bar.
Use cases
As a user
I want the rightmost buttons in a menubar to stay visible as long as possible, because they're the most important ones
So that I can find and use them easily
Acceptance criteria
MenuBar:setReverseCollapseOrder(boolean)
<vaadin-menu-bar reverse-collapse ...>
General criteria
Documentation: mentioned at https://vaadin.com/docs/next/components/menu-bar#overflow
How to test?
Security
The text was updated successfully, but these errors were encountered: