Skip to main content

switch

Function switch 

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

A switch labelled text, keyed by it; see checkbox.