TreeStatus Enum
Status of the tree that a particular node belongs to.
Signature
export declare enum TreeStatus
Flags
| Flag | Description |
|---|---|
| Deleted | Is removed and cannot be added back to the original document tree. |
| InDocument | Is parented under the root field. |
| New | Is created but has not yet been inserted into the tree. |
| Removed | Is not parented under the root field, but can be added back to the original document tree. |
Deleted
Is removed and cannot be added back to the original document tree.
Signature
Deleted = 2
Remarks
Nodes can enter this state for multiple reasons: - The node was removed and nothing (e.g. undo/redo history) kept it from being cleaned up. - The TreeView was disposed or had a schema change which made the tree incompatible.
Deleted nodes' contents should not be observed or edited. This includes functionality exposed via Tree, with the exception of status(node).
InDocument
Is parented under the root field.
Signature
InDocument = 0
New
Is created but has not yet been inserted into the tree.
Signature
New = 3