Skip to content

FormSetupCallback

github-actions[bot] edited this page Dec 3, 2024 · 3 revisions
API / FormSetupCallback<TSection, TValidationError> alias

Represents a callback used to configure an individual form section within a collection.

type FormSetupCallback<TSection extends Form<TValidationError>, TValidationError = string>
  = (section: TSection) => void;

Source reference: src/forms/IConfigurableFormCollection.ts:9.

Generic Parameters

  • TSection - The form section type to configure.

    Type constraints: Form<TValidationError>.

  • TValidationError - The concrete type for representing validation errors (strings, enums, numbers etc.).

    Default value: string.

Clone this wiki locally