A text input widget for Elm
view : Model -> Props -> Html Msg
The view for displaying the element.
init : String -> Model
Initialization for the text input model. The id
passed in must be unique
update : Msg -> Model -> TextInputResult
The main update function for the text input element
defaultProps : Props
Useful default props to extend off when supplying props to the element.
Msg
OnInput
{ id : String
, hasFocus : Basics.Bool
}
Model Tracks the internal foxus state of the element
{ id : String
, label : String
, value : String
, errorText : Maybe String
, helperText : Maybe String
, fieldType : FieldType
}
Configurable properties for rendering the view
ComponentResult Model Msg ExternalMsg Basics.Never
Type alias for the Component Result of this elements
ExternalMsg
ValueChanged String