Skip to main content

checkbox

Function checkbox 

Source
pub fn checkbox<State: 'static, F: Fn(&mut State, bool) + 'static>(
    checked: bool,
    label: impl Into<String>,
    on_toggle: F,
) -> CheckboxView<State>
Expand description

Create a checkbox reflecting checked, labelled label, that fires on_toggle(state, !checked) on release inside its bounds.