Skip to main content

menu_toggleable

Function menu_toggleable 

Source
pub fn menu_toggleable(
    label: impl Into<String>,
    checked: bool,
) -> MenuToggleable
Expand description

A checkbox-style row labelled label, currently checked.

Controlled: activating it reports the requested state (!checked) and leaves checked untouched until the caller feeds the confirmed value back down on the next rebuild.