Skip to main content

FormNodeSubmitEvent

A native form submission attempt. Values are exposed snapshots; form is the bound node.

Import

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

When to use it

Use for template submit and submit-blocked handlers. The generic preserves the bound form and value types; event is the original native event, and form.$api gives collision-safe access.

Declaration

type FormNodeSubmitEvent<TNode extends AnyNode = AnyNode> = {
readonly value: NodeValue<TNode>;
readonly form: TNode;
readonly event: Event;
};

Type parameters

ParameterConstraintDefault
TNodeAnyNodeAnyNode

Declared members

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

MemberMeaning
valueExposed form value after pending control input has been flushed.
formBound form node. Use $api for collision-safe state and operations.
eventOriginal native submit event, including SubmitEvent.submitter when available.