TextFieldControllerOptions interface

Module @runic-artifex/views in @runic-artifex/views 0.23.0

interface TextFieldControllerOptions<TState, TClient> extends Omit<FieldOptions, "checked">

No documentation.

Properties

read

readonly read: (state: TState) => string;

Reads the field's value from the View's state.

write

readonly write: (client: TClient, value: string) => Promise<unknown>;

Writes a value: a generated setter ((client, value) => client.setName(value)), a command or a checked write. The field shows its draft until the returned promise settles and the state caught up. A checked write's rejected and conflict receipts keep the draft and set error (a FieldError); committed-with-error sets it too, and applied.validation is errors.