Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TrivialTree<E>

Type parameters

  • E

Hierarchy

  • TrivialTree

Implements

Index

Constructors

constructor

Properties

Private $componentWrapper

$componentWrapper: JQuery

Private $editor

$editor: JQuery

Private $originalInput

$originalInput: JQuery

Private $spinners

$spinners: JQuery = $()

Private config

Private entries

entries: E[]

onNodeExpansionStateChanged

onNodeExpansionStateChanged: TrivialEvent<E> = new TrivialEvent<E>(this)

onSelectedEntryChanged

onSelectedEntryChanged: TrivialEvent<E> = new TrivialEvent<E>(this)

Private processUpdateTimer

processUpdateTimer: number

Private selectedEntryId

selectedEntryId: any

Private treeBox

treeBox: TrivialTreeBox<E>

Methods

addNode

  • addNode(parentNodeId: number, node: E): void

Private countVisibleEntries

  • countVisibleEntries(entries: E[]): any

destroy

  • destroy(): void

Private findEntries

  • findEntries(filterFunction: function): E[]
  • Parameters

    • filterFunction: function
        • (node: E): boolean
        • Parameters

          • node: E

          Returns boolean

    Returns E[]

Private findEntryById

  • findEntryById(id: number): E

Private fireChangeEvents

  • fireChangeEvents(entry: E): void

getEditor

  • getEditor(): Element

getMainDomElement

  • getMainDomElement(): Element

getSelectedEntry

  • getSelectedEntry(): void

Private query

removeNode

  • removeNode(nodeId: string): void

selectNodeById

  • selectNodeById(nodeId: any): void

Private setSelectedEntry

  • setSelectedEntry(entry: E): void

updateChildren

  • updateChildren(parentNodeId: any, children: E[]): void

updateEntries

  • updateEntries(newEntries: E[]): void

updateNode

  • updateNode(node: E): void

Generated using TypeDoc