Skip to main content

toggle

Function toggle 

Source
pub fn toggle<M>(on: bool, on_toggle: M) -> Node<M>
Expand description

An on/off switch. Sends on_toggle when clicked; the host slides it over.