Class TreeViewDataElement

Contains data about a single piece of content and all its children. This element may be visible and represented by a UI element, but might not (for example its parent is collapsed).

Hierarchy (view full)

Constructors

Accessors

  • get childCount(): number
  • Checks is the provided element part of the parent hierarchy of this element.

    Returns number

  • get height(): number
  • Sets the optional height for the element, if not set, the tree element uses the element height of the tree.

    Returns number

  • set height(value): void
  • Parameters

    • value: number

    Returns void

  • get iconImage(): Image
  • The current icon image.

    Returns Image

  • set iconImage(value): void
  • The current icon image.

    Parameters

    Returns void

  • get id(): UUID
  • The ID of the element, useful to correlate the tree element to the object it represents.

    Returns UUID

  • set id(value): void
  • Parameters

    Returns void

  • get isDisabled(): boolean
  • Determines if the element is currently Disabled.

    Returns boolean

  • set isDisabled(value): void
  • Parameters

    • value: boolean

    Returns void

  • get isEditable(): boolean
  • Determines if the element is currently Editable.

    Returns boolean

  • set isEditable(value): void
  • Parameters

    • value: boolean

    Returns void

  • get isExpandable(): boolean
  • Determines if the element is currently Expandable.

    Returns boolean

  • set isExpandable(value): void
  • Parameters

    • value: boolean

    Returns void

  • get isExpanded(): boolean
  • Determines if the element is currently Expanded.

    Returns boolean

  • get isHighlighted(): boolean
  • Determines if the element is currently Highlighted.

    Returns boolean

  • set isHighlighted(value): void
  • Parameters

    • value: boolean

    Returns void

  • get isSelected(): boolean
  • Determines if the element is currently Selected.

    Returns boolean

  • get isVisible(): boolean
  • Determines if the element is currently visible.

    Returns boolean

  • set isVisible(value): void
  • Parameters

    • value: boolean

    Returns void

  • get name(): string
  • The current name.

    Returns string

  • set name(value): void
  • Parameters

    • value: string

    Returns void

  • get visualElement(): TreeViewVisualElement
  • Gets the visual element if the data element is currently visible on screen.

    Returns TreeViewVisualElement

    Not all data element have a visual representation. If the element is currently scrolled out of view, it is possible that it has no visual element representation.

Methods

  • Adds the element.

    Parameters

    Returns boolean

  • Checks is the provided element part of the parent hierarchy of this element.

    Parameters

    Returns boolean

  • Gets the index for the element or no value if the element is not a child of this instance.

    Parameters

    Returns number

  • Adds the element at the specified index.

    Parameters

    Returns boolean