Skip to main content

FormNodeValueControl

A custom control exposing a value model for [formNode].

Import

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

When to use it

Implement this contract in a custom component exposing a value model. Match its value type to the bound field, including nullability, and emit touch for completed interaction.

Declaration

type FormNodeValueControl<TValue, TNode extends AnyNode = FieldNode<TValue>> = FormNodeUiControl<TValue, TNode> & {
value: ModelSignal<TValue>;
checked?: undefined;
};

Type parameters

ParameterConstraintDefault
TValueUnconstrainedRequired
TNodeAnyNodeFieldNode<TValue>

Declared members

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

MemberMeaning
valueThe rendered value, including pending debounced input.
checkedReserved for checkbox controls.