ISection interface
đ Descriptionâ
Interface that describes a section within the form definition.
See the form definition interface for more information about sections.
đ Type declarationâ
interface ISection { id: string;Readonly type?: "nest" | "branch";ReadonlyOptional name?: string;ReadonlyOptional nodes?: INode[];ReadonlyOptional branches?: IBranch[];ReadonlyOptional reference?: string;ReadonlyOptional version?: string;ReadonlyOptional alias?: string;ReadonlyOptional readonly?: true;ReadonlyOptional randomize?: boolean;ReadonlyOptional bookmark?: boolean;ReadonlyOptional bookmarkName?: string;ReadonlyOptional bookmarkDescription?: string;ReadonlyOptional bookmarkLevel?: number;ReadonlyOptional }
đī¸ Propertiesâ
đˇī¸ aliasâ
Contains an alias for the section or subform.
Typeâ
string
đˇī¸ bookmarkâ
Marks a section as a bookmark (see the Bookmark guide for more information about using bookmarks in Tripetto).
Typeâ
boolean
đˇī¸ bookmarkDescriptionâ
Contains a description for the bookmark (see the Bookmark guide for more information about using bookmarks in Tripetto).
Typeâ
string
đˇī¸ bookmarkLevelâ
Contains the indentation level of the bookmark (see the Bookmark guide for more information about using bookmarks in Tripetto).
Typeâ
number
đˇī¸ bookmarkNameâ
Contains the name for the bookmark (see the Bookmark guide for more information about using bookmarks in Tripetto).
Typeâ
boolean
đˇī¸ branchesâ
Contains the branches of the section.
Typeâ
đˇī¸ idâ
Specifies the unique identifier of the section.
Typeâ
string
đˇī¸ nameâ
Specifies the name of the section.
Typeâ
string
đˇī¸ nodesâ
Contains the nodes of the section.
Typeâ
đˇī¸ randomizeâ
Specifies if the nodes of this section needs to be randomized (using Fisher-Yates shuffle).
Typeâ
boolean
đˇī¸ readonlyâ
Specifies if the nested branch (subform) is read-only. In that case, the subform cannot be edited in the builder.
Typeâ
true
Only define this property when the nested branch is read-only. If it's not read-only, omit the property.
đˇī¸ referenceâ
Specifies a reference for a section that is a nested branch (subform). This property can be used to track the origin of a subform when it was loaded from an external source. For example, the identifier of a subform can be stored in this property.
Typeâ
string
See the Subforms guide for more information.
đˇī¸ typeâ
Specifies the section type. Can be one of the following values:
nest: This section forms a nested branch (subform);branch: This section is used to construct a branch (the section cannot contain any nodes).
Typeâ
"nest" | "branch"
For regular sections, this property should be omitted. It is only there if a section forms a nest or is a branch.
đˇī¸ versionâ
Specifies a version indicator for a section that is a nested branch (subform). This property can be used to track the origin of a subform when it was loaded from an external source. For example, the version number of a subform can be stored in this property.
Typeâ
string
See the Subforms guide for more information.