Create the new TreeLinker instance, provide the data and optionally set references for next, prev, parent, or children.
The settings for the new tree node.
Optionalchildren?: any[]The references to child linkers if any
Optionaldata?: anyThe data to be stored in this tree node
OptionallistClass?: anyOptionalnext?: IsTreeNodeThe reference to the next linker if any
Optionalparent?: IsTreeNodeThe reference to a parent linker if any
Optionalprev?: IsTreeNodeThe reference to the previous linker if any
The list of the children of this node, or null when it has none.
ReadonlyclassThe class used to create this instance, so that it can be recognized as valid without an instanceof check.
The data stored in this tree node.
The sibling after this node, or null when this is the last child.
The node this node is a child of, or null for a root node.
The sibling before this node, or null when this is the first child.
Create the children for this tree from an array. Each child becomes a tree linker with this node as its parent: an existing linker is kept as it is, an object with a data property gives the settings of the linker, and anything else is the data of the linker.
Provide an array of data / linker references to be children of this tree node.
Give the type of list to use for storing the children
StaticfromConvert an array into DoubleLinker instances, return the head and tail DoubleLinkers.
Provide an array of data that will be converted to a chain of tree-linkers.
Provide the type of IsTreeNode to use.
StaticmakeMake a new DoubleLinker from the data given if it is not already a valid Linker.
Return a valid TreeLinker instance from given data, or even an already valid one.
Provide the type of IsTreeNode to use.
TreeLinker represents a node in a LinkedTreeList having a parent (or root) and child nodes.