Extension of TreeList that represents the root of a tree control

tree <ul>
├ treeItem <li>
├ treeItem <li>
│ └ treeList <ul>
│   ├ treeItem <li>
│   └ treeItem <li>
└ treeItem <li>

Type Parameters

  • T

Hierarchy (view full)

Constructors

Properties

controller: TreeController<T>

Methods

  • Adds the given children to the given target at the given index. If no index is given, the children are appended at the end of the list.

    Parameters

    • _children: T[]
    • _target: T
    • Optional _index: number

    Returns void

  • Restructures the list to sync with the given list. TreeItems referencing the same object remain in the list, new items get added in the order of appearance, obsolete ones are deleted.

    Parameters

    Returns void