bluedogtraining / bdt-elm / Toggle

Module to add Toggles to your app

Views

view : Basics.Bool -> msg -> Toggle msg

Init a toggle

Configure

isError : Basics.Bool -> Toggle msg -> Toggle msg

Display as loading, removing the click Msg

isDisabled : Basics.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.Styled.Html msg

Render the toggle