Interface: FieldView<Value, Output>
Defined in: vue/src/use-field.ts:28
What useField returns.
Type Parameters
| Type Parameter | Default type |
|---|---|
Value | - |
Output | Value |
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
attrs | readonly | FieldBindingAttributes | For v-bind on the input. | vue/src/use-field.ts:37 |
descriptionId | readonly | string | - | vue/src/use-field.ts:35 |
errorId | readonly | string | - | vue/src/use-field.ts:34 |
errorMessage | readonly | string | undefined | The field's first visible error as text, from the form's formatError, for the element with errorId. | vue/src/use-field.ts:32 |
id | readonly | string | - | vue/src/use-field.ts:33 |
model | public | Value | For v-model: reads the draft value and writes it with setValue. | vue/src/use-field.ts:39 |
node | readonly | FieldNode<Value, Output> | - | vue/src/use-field.ts:29 |
state | readonly | NodeState<Value> | - | vue/src/use-field.ts:30 |