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
| Property | Modifier | Type | Default value | Description | Defined in |
|---|---|---|---|---|---|
focusElement? | readonly | FocusElementOption | element => element.focus() | How an element is focused, for error focus and node.focus(). | core/src/form/form-types.ts:26 |
formatError? | readonly | FormatErrorOption | error => error.code | Turns an error into text, for errorMessage and error summaries. | core/src/form/form-types.ts:28 |
mode? | readonly | ValidationMode | 'onTouched' | When errors become visible. Definitions can override it. | 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. | core/src/form/form-types.ts:22 |
shouldFocusError? | readonly | FocusErrorOption | true | Where focus goes after a failed submit. | core/src/form/form-types.ts:24 |