uncover-co/elm-widgets/1.0.0

NOTE: the latest version is 2.28.0

W.InputDate

List (Attribute msg)
-> { timeZone : Zone
, value : Maybe Posix
, onInput : Maybe Posix -> msg
}
-> Html msg

States

disabled : Bool -> Attribute msg
readOnly : Bool -> Attribute msg

Styles

prefix : List (Html msg) -> Attribute msg
suffix : List (Html msg) -> Attribute msg

Validation Attributes

min : Posix -> Attribute msg
max : Posix -> Attribute msg
required : Bool -> Attribute msg

View & Validation

List (Attribute msg)
-> { timeZone : Zone
, value : Maybe Posix
, onInput : Result (List Error) Posix -> Maybe Posix -> msg
}
-> Html msg
errorToString : Error -> String
type Error
= TooLow Posix String
| TooHigh Posix String
| ValueMissing String
| BadInput String

Actions

onEnter : msg -> Attribute msg
onFocus : msg -> Attribute msg
onBlur : msg -> Attribute msg

Html

htmlAttrs : List (Attribute msg) -> Attribute msg
type Attribute msg