thaw/demo_markdown/docs/spin_button/mod.md
2024-05-22 23:17:27 +08:00

484 B

SpinButton

let value = RwSignal::new(0);
let value_f64 = RwSignal::new(0.0);

view! {
    <Space vertical=true>
        <SpinButton value step_page=1/>
        <SpinButton value=value_f64 step_page=1.2/>
    </Space>
}

Min / Max

let value = RwSignal::new(0);

view! {
    <SpinButton value step_page=1 min=-1 max=2/>
}

Disabled

let value = RwSignal::new(0);

view! {
    <SpinButton value step_page=1 disabled=true/>
}