uncover-co / elm-widgets-alpha / W.InputDate

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

States

disabled : Basics.Bool -> Attribute msg

readOnly : Basics.Bool -> Attribute msg

Styles

prefix : List (Html msg) -> Attribute msg

suffix : List (Html msg) -> Attribute msg

Validation Attributes

min : Time.Posix -> Attribute msg

max : Time.Posix -> Attribute msg

required : Basics.Bool -> Attribute msg

View & Validation

viewWithValidation : List (Attribute msg) -> { timeZone : Time.Zone, value : Maybe Time.Posix, onInput : Result (List Error) Time.Posix -> Maybe Time.Posix -> msg } -> Html msg

errorToString : Error -> String


type Error
    = TooLow Time.Posix String
    | TooHigh Time.Posix String
    | ValueMissing String
    | BadInput String

Actions

onEnter : msg -> Attribute msg

onFocus : msg -> Attribute msg

onBlur : msg -> Attribute msg

Html

htmlAttrs : List (Html.Attribute msg) -> Attribute msg

noAttr : Attribute msg


type Attribute msg