Skip to main content

checkbox

Function checkbox 

Source
pub fn checkbox(
    ui: &mut Ui<'_>,
    text: &str,
    checked: bool,
    payload: impl Into<Value>,
) -> Key
Expand description

A checkbox labelled text, keyed by it, drawn from checked; a press — pointer, Space, Enter or assistive technology — posts payload, and the view flips its model and draws it again.