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

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

    Parameters

    Returns void

  • Expands the tree along the given path to show the objects the path includes

    Parameters

    • _path: T[]

      An array of objects starting with one being contained in this treelist and following the correct hierarchy of successors

    • _focus: boolean = true

      If true (default) the last object found in the tree gets the focus

    Returns void