Skip to main content

show_command_menu

Function show_command_menu 

Source
pub async fn show_command_menu(
    presentation: &Presentation,
    context: JsValue,
    commands: Vec<CommandSpec>,
    x: f64,
    y: f64,
    theme: Option<String>,
) -> ApiResult<()>
Expand description

Open a menu of commands at viewport (x, y), emitting Presentation::command_invoked with context for a pick, and resolve when it closes.