Command menu
A command palette.
Typing in its query field filters and ranks items with fuzzy_score; Up and Down move, Enter or a click runs an item or opens a submenu, and Escape goes back one level.
GUITUIRuns in the browser
command_menuPreview
















Usage example
fn command_menu_demo() -> CommandMenuBuilder { command_menu() .item("Refresh", || {}) .item("Open settings", || {}) .disabled("Publish") .submenu("Export", |sub| sub.item("PNG", || {}).item("SVG", || {})) }fn command_menu_demo()-> CommandMenuBuilder { command_menu() .item("Refresh", || {}) .item("Open settings", || {}) .disabled("Publish") .submenu("Export", |sub| { sub .item("PNG", || {}) .item("SVG", || {}) })}States

Default
Hover
Pressed
Focused
API
| Name | Signature | Purpose |
|---|---|---|
command_menu | fn command_menu() -> CommandMenuBuilder | A command palette. Typing in its query field filters and ranks items with fuzzy_score; Up and Down move, Enter or a click runs an item or opens a submenu, and Escape goes back one level. |