Readonly
onEmit when the tree is changed.
Readonly
onEmits when the busy state of the given node is changed.
Readonly
onAn update to the tree node occurred, but the tree structure remains unchanged
Readonly
onEmit when the node is expanded or collapsed.
Readonly
onEmit when the children of the given node are refreshed.
Readonly
onEvent when a node should be opened.
Readonly
onEmitted when the selection has changed in the tree.
A root node of this tree. Undefined if there is no root node. Setting a root node refreshes the tree.
Readonly
selectedThe tree selection, representing the selected nodes from the tree. If nothing is selected, the result will be empty.
Registers the given selection into the tree selection service. If the selection state changes after adding the
selectionOrTreeNode
argument, a selection changed event will be fired. If the argument is a tree node,
a it will be treated as a tree selection with the default selection type.
Collapses recursively. If the node
argument is undefined
, then collapses the currently selected tree node.
If multiple tree nodes are selected, collapses the most recently selected tree node.
Optional
node: Readonly<CompositeTreeNode>Collapses the given node. If the node
argument is undefined
, then collapses the currently selected tree node.
If multiple tree nodes are selected, collapses the most recently selected tree node.
Optional
node: Readonly<ExpandableTreeNode>Expands the given node. If the node
argument is undefined
, then expands the currently selected tree node.
If multiple tree nodes are selected, expands the most recently selected tree node.
Optional
node: Readonly<ExpandableTreeNode>Returns the node currently in focus in this tree, or undefined if no node is focused.
Returns the next selectable tree node.
Optional
node: TreeNodeReturns the previous selectable tree node.
Optional
node: TreeNodeMarks the give node as busy after a specified number of milliseconds. A token source of the given token should be canceled to unmark.
Navigates to the given node if it is defined. This method accepts both the tree node and its ID as an argument.
Navigation sets a node as a root node and expand it. Resolves to the node if the navigation was successful. Otherwise,
resolves to undefined
.
Opens the given node or the currently selected on if the argument is undefined
.
If multiple nodes are selected, open the most recently selected node.
Optional
node: Readonly<TreeNode>Refresh children of the root node.
Return a valid refreshed composite root or undefined
if such does not exist.
Refresh children of a node for the give node id if it is valid.
Return a valid refreshed composite node or undefined
if such does not exist.
Selects the next node relatively to the currently selected one. This method takes the expansion state of the tree into consideration.
Optional
type: SelectionTypeSelects the given tree node. Has no effect when the node does not exist in the tree. Discards any previous selection state.
Selects the previous node relatively to the currently selected one. This method takes the expansion state of the tree into consideration.
Optional
type: SelectionTypeSelects a range of tree nodes. The target of the selection range is the argument, the from tree node is the previous selected node. If no node was selected previously, invoking this method does nothing.
Selects the given node if it was not yet selected, or unselects it if it was. Keeps the previous selection state and updates it with the current toggle selection.
Toggles the expansion state of the given node. If not give, then it toggles the expansion state of the currently selected node. If multiple nodes are selected, then the most recently selected tree node's expansion state will be toggled.
Optional
node: Readonly<ExpandableTreeNode>
The tree - an abstract data type.