TextInput Module
MVU text-field component covering caret, selection, IME composition, clipboard, and validation.
Functions and values
| Function or value |
Description
|
|
Returns the `ControlDiagnostic` list implied by the current `model` state.
|
Full Usage:
init controlId mode value
Parameters:
ControlId
mode : TextInputMode
value : string
Returns: TextInputModel * TextInputEffect list
|
Seeds a `TextInputModel` for `controlId` in the given `mode` with an initial `value`, plus any startup effects.
|
Full Usage:
interpretEffect effect
Parameters:
TextInputEffect
Returns: TextInputMsg option
|
Maps a host-fulfilled `effect` back into the `TextInputMsg` that feeds it into `update`, if any.
|
Full Usage:
update msg model
Parameters:
TextInputMsg
model : TextInputModel
Returns: TextInputModel * TextInputEffect list
|
Pure transition applying `msg` to `model`, returning the next model and the `TextInputEffect` list it raises.
|