Interface: FormTreeProviderProps
Defined in: react/src/form-tree-provider.tsx:14
Props of FormTreeProvider: defaults for every form below it.
Extends
Properties
| Property | Modifier | Type | Default value | Description | Inherited from | Defined in |
|---|---|---|---|---|---|---|
children? | readonly | ReactNode | undefined | - | - | react/src/form-tree-provider.tsx:20 |
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 |
language? | readonly | string | undefined | The current language. When it changes, every component that reads a form below re-renders, so a formatError that reads the language shows its messages in the new one. | - | react/src/form-tree-provider.tsx:19 |
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 |