Skip to main content

Section class

📖 Description​

The Section class represents a section in the form definition.

🗃️ Fields​


🏷️ branches​

Retrieves the collection of child branches.

Type​

Branches


🏷️ enumerator​

Contains the section enumerator. This is a chronological number for each section. The first section has a enumerator value of 1.

Type​

number


🏷️ id​

Retrieves the identifier of the section.

Type​

string


🏷️ index​

Retrieves the zero-based index of the section in the Sections collection.

Type​

number


🏷️ isEvaluating​

Retrieves if the section is evaluating.

Type​

boolean


🏷️ isFirst​

Retrieves if the section is the first section in the Sections collection.

Type​

boolean


🏷️ isLast​

Retrieves if the section is the last section in the Sections collection.

Type​

boolean


🏷️ props​

Retrieves the properties of the section.

Type​

ISection


🏷️ runner​

Retrieves a reference to the Runner instance.

Type​

Runner

▶️ Methods​


🔧 getValidation​

Retrieves the validation state for the supplied context.

Signature​

getValidation(context: Context): "unknown" | "pass" | "fail"

Parameters​

NameTypeOptionalDescription
contextContextNoReference to the context.

Return value​

Returns the validation state of the section. It can be one of the following values:

  • unknown: There is no validation state available yet;
  • pass: Validation succeeded;
  • fail: Validation failed.