Skip to main content

MenuSelectOption

Type Alias MenuSelectOption 

Source
pub type MenuSelectOption<O> = Rc<dyn Fn(&Rc<O>, Option<NodeRef>, &dyn Fn(), &str) -> Result<(), LexicalError>>;
Expand description

What a menu runs when an option is chosen (onSelectOption): the option, the text node holding the query (split off when the menu splits it), what closes the menu, and the query.

Aliased Typeยง

pub struct MenuSelectOption<O> { /* private fields */ }