bluedogtraining/bdt-elm/15.1.0

NOTE: this package is not compatible with Elm 0.19.1

Toggle

Module to add Toggles to your app

Views

view : Bool -> msg -> Toggle msg

Init a toggle

Configure

isError : Bool -> Toggle msg -> Toggle msg

Display as loading, removing the click Msg

isDisabled : Bool -> Toggle msg -> Toggle msg

Display as disabled, removing the click Msg

label : String -> Toggle msg -> Toggle msg

Set the text

Render

render : Toggle msg -> Html msg

Render the toggle