Extension of li-element that represents an object in a TreeList with a checkbox and user defined input elements as content. Additionally, may hold an instance of TreeList as branch to display children of the corresponding object.

Type Parameters

  • T

Hierarchy

  • HTMLLIElement
    • TreeItem

Constructors

Properties

classes: CSS_CLASS[] = []
controller: TreeController<T>
data: T = null

Accessors

  • get hasChildren(): boolean
  • Returns true, when this item has a visible checkbox in front to expand the subsequent branch

    Returns boolean

  • set hasChildren(_has): void
  • Shows or hides the checkbox for expanding the subsequent branch

    Parameters

    • _has: boolean

    Returns void

Methods

  • Dispatches the EVENT.SELECT event

    Parameters

    • _additive: boolean

      For multiple selection (+Ctrl)

    • _interval: boolean = false

      For selection over interval (+Shift)

    Returns void