Function cosmic::widget::spin_button

source ยท
pub fn spin_button<'a, T, M>(
    label: impl Into<Cow<'a, str>>,
    value: T,
    step: T,
    min: T,
    max: T,
    on_press: impl Fn(T) -> M + 'static,
) -> SpinButton<'a, T, M>
where T: Copy + Sub<Output = T> + Add<Output = T> + PartialOrd,
Expand description

Horizontal spin button widget.