Skip to main content

button

Function button 

Source
pub fn button<Msg>(
    label: impl Into<String>,
    on_press: impl Into<Msg>,
) -> Button<Msg>
Expand description

Shorthand: a button with its click message. button("Ajouter", Msg::Add) = Button::new("Ajouter").on_press(Msg::Add).