lenards/elm-ui-patternfly/2.1.0

NOTE: the latest version is 4.0.2

PF6.Slider

PF6 Slider component

A range slider input with PF6 styling.

See: https://www.patternfly.org/components/slider

Definition

type Slider msg

Opaque Slider type

Constructor

{ value : Float
, onChange : Float -> msg
, min : Float
, max : Float
}
-> Slider msg

Construct a Slider

slider { value = 50, onChange = SliderChanged, min = 0, max = 100 }

Modifiers

withLabel : String -> Slider msg -> Slider msg

Set a visible label above the slider

withStep : Float -> Slider msg -> Slider msg

Set the step increment

Disable the slider

Show the current value next to the slider

Show tick marks along the track

withCustomThumb : Thumb -> Slider msg -> Slider msg

Provide a custom thumb element

Rendering

toMarkup : Slider msg -> Element msg

Render the Slider as an Element msg