zng_wgt_toggle

Function checked_opt

Source
pub fn checked_opt(
    child: impl UiNode,
    checked: impl IntoVar<Option<bool>>,
) -> impl UiNode
Expand description

P Toggle cycles between Some(true) and Some(false) and accepts None, if the widget is tristate also sets to None in the toggle cycle.