-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Standard widgets: Popover and Menu. #21636
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
base: main
Are you sure you want to change the base?
Conversation
examples/ui/standard_widgets.rs
Outdated
| observe(on_menu_event), | ||
| children![( | ||
| Node { | ||
| width: Val::Px(200.0), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given this is an example, where I expect to see idiomatic code, shouldn't the convenience functions (px, percent, px(n).all()) be used here and not Val directly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replaced uses of Val.
|
The way this component is named |
"Select" is a different widget:
Both are in the class of "popups" and "dropdowns". You can easily build a select from a menu:
|
Objective
Solution
Testing
Showcase