uncover-co/elm-widgets/2.23.0

NOTE: the latest version is 2.28.0

W.InputTime

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

Value

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

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