uncover-co/elm-widgets/2.5.0

NOTE: the latest version is 2.28.0

W.InputDate

List (Attribute msg)
-> { value : Value
, onInput : Value -> msg
}
-> Html msg

Value

init : Zone -> Maybe Posix -> Value
toDate : Value -> Maybe Posix
toTimeZone : Value -> Zone
toString : Value -> String
type Value

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)
-> { value : Value
, onInput : Result (List Error) (Maybe Posix) -> Value -> 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