bluedogtraining/bdt-elm/22.1.0

NOTE: the latest version is 27.0.14

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