Skip to main content

toggle_spec

Function toggle_spec 

Source
pub fn toggle_spec(m: &Metrics) -> NodeSpec
Expand description

A stock toggle’s spec — the row its indicator and label sit in — as button_spec is the button’s. A caller with a spec of its own starts here and adds the state (checked, mixed), the on_click and the access rows to it.