Skip to main content

switch

Function switch 

Source
pub fn switch(id: impl Into<ElementId>, toggle_state: ToggleState) -> Switch
Expand description

Creates a new switch.