uncover-co/elm-widgets-alpha/23.0.0

NOTE: the latest version is 25.0.0

W.InputTime

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

Styles

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

States

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

Validation Attributes

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

View With 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
| StepMismatch Int 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