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.