carwow/elm-slider/4.0.0

NOTE: this package is not compatible with Elm 0.19.1

SingleSlider

A single slider built natively in Elm

Model

type alias Model =
{ min : Float
, max : Float
, step : Float
, value : Float
}

The base model for the slider

Update

type Msg

The basic type accepted by the update

update : Msg -> Model -> ( Model, Cmd Msg, Bool )

takes a model and a message and applies it to create an updated model

subscriptions : Model -> Sub Msg

Returns the subscriptions necessary to run

Configuring the slider

{ min : Float
, max : Float
, step : Float
, value : Float
}
-> Model

Returns a default range slider

View

view : Model -> Html Msg

Displays the slider