Skip to main content

toolbar_toggle

Function toolbar_toggle 

Source
pub fn toolbar_toggle<M>(
    id: ElementId,
    label: impl IntoText<M>,
    on: impl Binding<bool>,
) -> ToolbarEntry
Expand description

A two-state button bound to on (a Signal<bool> or any other binding): the user flipping it writes the binding, and writing the binding restyles the button.

Day API ↩ Guides· daybrite.dev