carwow/elm-slider/11.1.3

NOTE: the latest version is 11.1.6

DoubleSlider

A slider component, with two track thumbs.

Definition

type DoubleSlider msg

Type representing the DoubleSlider component

Init

{ min : Float
, max : Float
, step : Float
, lowValue : Float
, highValue : Float
, onLowChange : Float -> msg
, onHighChange : Float -> msg
}
-> DoubleSlider msg

Initializes a DoubleSlider

View

view : DoubleSlider msg -> Html msg

DoubleSlider view

Updaters

Update the slider's value

Update the slider's low value

Config

( { lowValue : Float
, highValue : Float
, min : Float
, max : Float
}
-> String
)
-> DoubleSlider msg
-> DoubleSlider msg

Allows for customization of the slider's range label

withHighValueFormatter : (Float -> Float -> String) -> DoubleSlider msg -> DoubleSlider msg

Allows for customization of the current high value label

withLowValueFormatter : (Float -> Float -> String) -> DoubleSlider msg -> DoubleSlider msg

Allows for customization of the current low value label

withMaxFormatter : (Float -> String) -> DoubleSlider msg -> DoubleSlider msg

Allows for customization of the maximum value label

withMinFormatter : (Float -> String) -> DoubleSlider msg -> DoubleSlider msg

Allows for customization of the minimum value label

The overlap threshold determines the minimum difference between the two thumbs. By default it is set to 1.0

Helper

Fetch DoubleSlider's Low value

Fetch DoubleSlider's High value