Skip to main content

slider

Function slider 

Source
pub fn slider<M: 'static>(
    value: f32,
    range: RangeInclusive<f32>,
    on_change: impl Fn(f32) -> M + 'static,
) -> Node<M>
Expand description

A value dragged along range: a volume. Sends on_change while dragging; add on_release to act once it’s let go, and step to snap.