BlockModel
1 Oct 20251 minute to read
Interface for a class Block
Properties
content ContentModel[]
Specifies the content of the block, which can vary based on the block type.
This property holds the actual content of the block.
cssClass string
Specifies the CSS class applied to the block.
Allows custom styling by associating one or more CSS class names with the block.
id string
Specifies the unique identifier for the block.
This property is used to uniquely identify each block.
indent number
Specifies the indent for the block.
This property is used to specify indentation for each block.
parentId string
Specifies the unique identifier of the parent block.
This property is used to establish a hierarchical relationship between parent and child blocks.
props BlockProperties|object
Specifies the type specific properties for the block.
template string|object|HTMLElement
Defines the template content for the block.
type BlockType|string
Specifies the type of the block, which can be a string or a predefined BlockType.
This property determines the type of content the block holds.