Skip to content

Interface: FormControls<Deps> ​

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

What the root node of a form has besides the node API.

Type Parameters ​

Type Parameter
Deps

Properties ​

PropertyModifierTypeDescriptionDefined in
batchreadonly(update) => voidApplies the writes made inside update with a single notification.core/src/form/form-types.ts:79
disposereadonly() => voidCancels pending asynchronous checks. The form stays usable.core/src/form/form-types.ts:81
formatErrorreadonly(error) => stringTurns an error into text with the form's formatError, for example in an error summary.core/src/form/form-types.ts:83
setDepsreadonly(deps) => voidReplaces the root's dependencies; childDeps are recomputed and affected schemas rebuilt. Dependencies equal key by key to the current ones change nothing.core/src/form/form-types.ts:77
subscribereadonly(listener) => () => voidCalls the listener once after every change in the form, or once per batch. Returns a function that unsubscribes.core/src/form/form-types.ts:72

Released under the MIT License.