QiTASC/hatchinq/28.1.1

NOTE: the latest version is 29.0.0

Hatchinq.TextField

Exposed

type alias Config id msg =
{ theme : Theme
, lift : Message msg id -> msg
}
type Message msg id
type State id
type alias View id msg =
{ id : id
, label : String
, value : String
, state : State id
, onChange : Maybe (String -> msg)
, onKeyDown : Maybe (Decoder msg)
}
Config id msg
-> List (Attribute (InternalConfig msg))
-> View id msg
-> Element msg
init : State id
multiline : Attribute (InternalConfig msg)
onFocus : msg -> Attribute (InternalConfig msg)
onLoseFocus : msg -> Attribute (InternalConfig msg)
password : Attribute (InternalConfig msg)
update : Message msg id -> State id -> ( State id, Cmd msg )
{ default : String
, error : Maybe String
}
-> Attribute (InternalConfig msg)