zng_wgt_toggle

Function checked

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

P Toggle cycles between true and false, updating the variable.

Note that you can read the checked state of the widget using is_checked.