Interface: FormTreePluginOptions
Defined in: vue/src/create-form-tree-plugin.ts:15
Options of createFormTreePlugin: defaults for every form of the app, and whether the forms appear in Vue Devtools.
Extends
Properties
| Property | Modifier | Type | Default value | Description | Inherited from | Defined in |
|---|---|---|---|---|---|---|
devtools? | readonly | boolean | true | Shows the app's forms in Vue Devtools while developing. Production builds never include the devtools code. | - | vue/src/create-form-tree-plugin.ts:21 |
focusElement? | readonly | FocusElementOption | element => element.focus() | How an element is focused, for error focus and node.focus(). | FormDefaults.focusElement | core/src/form/form-types.ts:26 |
formatError? | readonly | FormatErrorOption | error => error.code | Turns an error into text, for errorMessage and error summaries. | FormDefaults.formatError | core/src/form/form-types.ts:28 |
mode? | readonly | ValidationMode | 'onTouched' | When errors become visible. Definitions can override it. | FormDefaults.mode | core/src/form/form-types.ts:15 |
reValidateMode? | readonly | ReValidateMode | 'onChange' | When errors update after a node that contains them is submitted. Until then, mode decides. Definitions can override it. | FormDefaults.reValidateMode | core/src/form/form-types.ts:22 |
shouldFocusError? | readonly | FocusErrorOption | true | Where focus goes after a failed submit. | FormDefaults.shouldFocusError | core/src/form/form-types.ts:24 |