Skip to main content

toolbar_toggle

Function toolbar_toggle 

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

A two-state button bound to on: the user flipping it writes the signal, and writing the signal restyles the button.

Day API ↩ Guides· daybrite.dev