Skip to content

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 ​

PropertyModifierTypeDefault valueDescriptionInherited fromDefined in
devtools?readonlybooleantrueShows 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?readonlyFocusElementOptionelement => element.focus()How an element is focused, for error focus and node.focus().FormDefaults.focusElementcore/src/form/form-types.ts:26
formatError?readonlyFormatErrorOptionerror => error.codeTurns an error into text, for errorMessage and error summaries.FormDefaults.formatErrorcore/src/form/form-types.ts:28
mode?readonlyValidationMode'onTouched'When errors become visible. Definitions can override it.FormDefaults.modecore/src/form/form-types.ts:15
reValidateMode?readonlyReValidateMode'onChange'When errors update after a node that contains them is submitted. Until then, mode decides. Definitions can override it.FormDefaults.reValidateModecore/src/form/form-types.ts:22
shouldFocusError?readonlyFocusErrorOptiontrueWhere focus goes after a failed submit.FormDefaults.shouldFocusErrorcore/src/form/form-types.ts:24

Released under the MIT License.