QiTASC / hatchinq / Hatchinq.TextField

Exposed


type alias Config id msg =
{ theme : Hatchinq.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 (Json.Decode.Decoder msg) 
}

configure : Config id msg -> List (Hatchinq.Attribute.Attribute (InternalConfig msg)) -> View id msg -> Element msg

init : State id

multiline : Hatchinq.Attribute.Attribute (InternalConfig msg)

onFocus : msg -> Hatchinq.Attribute.Attribute (InternalConfig msg)

onLoseFocus : msg -> Hatchinq.Attribute.Attribute (InternalConfig msg)

password : Hatchinq.Attribute.Attribute (InternalConfig msg)

update : Message msg id -> State id -> ( State id, Platform.Cmd.Cmd msg )

withError : { default : String, error : Maybe String } -> Hatchinq.Attribute.Attribute (InternalConfig msg)