Readonly
dataGet the associated metadata map container of a tree node.
Readonly
idThe TreeID of the node.
Get the children of this node.
The objects returned are new js objects each time because they need to cross the WASM boundary.
Create a new node as the child of the current node and
return an instance of LoroTreeNode
.
If the index is not provided, the new node will be appended to the end.
Optional
index: numberGet the creation id of this node.
Get the creator of this node.
Get the Fractional Index
of the node.
Note: the tree container must be attached to the document.
Get the last mover of this node.
Get the index of the node in the parent's children.
Check if the node is deleted.
Move this tree node to be a child of the parent. If the parent is undefined, this node will be a root node.
If the index is not provided, the node will be appended to the end.
It's not allowed that the target is an ancestor of the parent.
Optional
parent: LoroTreeNode<T>Optional
index: numberGet the parent node of this node.
undefined
.
The handler of a tree node.