interface INode {
    children: INode[];
    content: string;
    payload?: { fold?: number; [key: string]: unknown };
    state: INodeState;
}

Hierarchy (View Summary)

Properties

children: INode[]
content: string

HTML of the node content.

payload?: { fold?: number; [key: string]: unknown }

Additional data created on transformation.

Type declaration

  • [key: string]: unknown
  • Optionalfold?: number

    The folding status of this node.

    0 - not folded 1 - folded 2 - folded along with all its child nodes

state: INodeState

Store temporary data that helps rendering.