Extension of ul-element that keeps a list of [[TreeItem]]s to represent a branch in a tree

Type Parameters

  • T

Hierarchy (view full)

  • HTMLUListElement

Constructors

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