uncover-co/elm-widgets/2.12.0

NOTE: the latest version is 2.28.0

W.InputAutocomplete

List (Attribute msg)
-> { id : String
, value : Value a
, options : Maybe (List a)
, onInput : Value a -> msg
}
-> Html msg
List (Attribute msg)
-> { id : String
, value : Value a
, options : List a
, onInput : Value a -> msg
}
-> Html msg

Value

{ value : Maybe a
, toString : a -> String
}
-> Value a
reset : Value a -> Value a
toString : Value a -> String
toValue : Value a -> Maybe a
onChange : Value a -> Value a -> Maybe a
stringChanged : Value a -> Value a -> Bool
valueChanged : Value a -> Value a -> Bool
type Value a

Custom Rendering

List (Attribute msg)
-> { id : String
, value : Value a
, options : Maybe (List a)
, onInput : Value a -> msg
, toHtml : a -> Html msg
}
-> Html msg
List (Attribute msg)
-> { id : String
, value : Value a
, options : List a
, onInput : Value a -> msg
, toHtml : a -> Html msg
}
-> Html msg
optionsHeader : (String -> Html msg) -> Attribute msg

States

isLoading : Bool -> Attribute msg

Control loading state manually. Usually, loading state is displayed when Nothing is passed in as options.

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

Styles

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

Validation Attributes

required : Bool -> Attribute msg

Actions

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

Html

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