achutkiran/material-components-elm/1.1.0

NOTE: the latest version is 1.2.1

Mwc.TextField

Material TextField. It is elm wrapper for polymer Web components paper text field Used Elm-css for Styling

Set text field to auto validate

disabled : Bool -> Property msg

Disables text field

errorText : String -> Property msg

Error Text

extraAttributes : List (Attribute msg) -> Property msg

Additional properties like css

icon : String -> Property msg

Textfield icon name

iconButton : String -> Property msg

Textfield IconButton

iconClick : msg -> Property msg

TextField IconButton click event

TextArea

Makes icon as trailing icon

inputType : String -> Property msg

Input Type

Displays error message

label : String -> Property msg

Label

onInput : (String -> msg) -> Property msg

OnInput Event

pattern : String -> Property msg

Input pattern

placeHolder : String -> Property msg

Placeholder

readonly : Bool -> Property msg

Makes textfield as readonly

Sets textfield as required

value : String -> Property msg

Initial value

view : List (Property msg) -> Html msg

renders TextField

No operation for TextField

type Property msg

TextField Properties