Skip to content

Interface: FormDefaults ​

Defined in: core/src/form/form-types.ts:13

Options of createForm that an app usually sets once for all of its forms. The adapters take them as app defaults.

Extended by ​

Properties ​

PropertyModifierTypeDefault valueDescriptionDefined in
focusElement?readonlyFocusElementOptionelement => element.focus()How an element is focused, for error focus and node.focus().core/src/form/form-types.ts:26
formatError?readonlyFormatErrorOptionerror => error.codeTurns an error into text, for errorMessage and error summaries.core/src/form/form-types.ts:28
mode?readonlyValidationMode'onTouched'When errors become visible. Definitions can override it.core/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.core/src/form/form-types.ts:22
shouldFocusError?readonlyFocusErrorOptiontrueWhere focus goes after a failed submit.core/src/form/form-types.ts:24

Released under the MIT License.