Skip to main content

GlobalFormNodesConfig

Process-wide defaults below injector-scoped configuration.

Import

import type { GlobalFormNodesConfig } from '@ngblocks/form-nodes';

When to use it

Use for configureGlobalFormNodes() defaults. Prefer an injector-scoped provider when configuration must be scoped to an Angular application or subtree.

Declaration

type GlobalFormNodesConfig = {
validatorMessages?: ValidatorMessages | (() => ValidatorMessages | undefined) | null | undefined;
syncInputs?: false | 'declared' | 'all' | 'signal-controls' | readonly SyncInputName[] | {
inputs: 'declared' | 'all' | readonly SyncInputName[];
target?: 'all' | 'signal-controls' | 'cva' | undefined;
} | null | undefined;
bindInputOutputPairs?: boolean | null | undefined;
classes?: Record<string, (binding: FormNodeBinding) => boolean> | null | undefined;
};

Declared members

The declaration above also includes inherited contracts and overloads where applicable.

MemberMeaning
validatorMessagesStatic or reactive fallback catalog. Null clears it; omission preserves the current catalog.
syncInputsReactively copies node state and constraints into matching custom-control inputs. This is one-way node-to-component synchronization; it does not enable value binding, execute validators, or alter node state. Use bindInputOutputPairs separately for input/output value pairs.
bindInputOutputPairsConnects recognized value/valueChange or checked/checkedChange input/output pairs. CVAs and actual model signals keep priority. Enabling a pair connects values and interaction hooks; optional state inputs are selected independently by syncInputs.
classesDefault class map for new bindings. Null clears it; explicit maps replace rather than merge.