Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TrivialTreeBox<E>

Type parameters

  • E

Hierarchy

  • TrivialTreeBox

Implements

Index

Constructors

constructor

Properties

Private $componentWrapper

$componentWrapper: JQuery

Private $tree

$tree: JQuery

Private config

Private entries

entries: E[]

Private highlightedEntry

highlightedEntry: E

onNodeExpansionStateChanged

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

onSelectedEntryChanged

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

Private selectedEntryId

selectedEntryId: string

Methods

addNode

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

Private createEntryElement

  • createEntryElement(entry: E, depth: number): JQuery

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: string): E

Private findParentNode

  • findParentNode(childNode: E): E

Private findPathToFirstMatchingNode

  • findPathToFirstMatchingNode(predicateFunction: function): E[]
  • Parameters

    • predicateFunction: function
        • (node: E, path: any[]): boolean
        • Parameters

          • node: E
          • path: any[]

          Returns boolean

    Returns E[]

Private fireChangeEvents

  • fireChangeEvents(entry: E, originalEvent: Event): void

getHighlightedEntry

  • getHighlightedEntry(): E

getMainDomElement

  • getMainDomElement(): Element

Private getNextVisibleEntry

  • getNextVisibleEntry(currentEntry: E, direction: HighlightDirection, onlyEntriesWithTextMatches?: boolean): E

getSelectedEntry

  • getSelectedEntry(): E

highlightNextEntry

highlightNextMatchingEntry

highlightTextMatches

  • highlightTextMatches(searchString: string): void

Private isLeaf

  • isLeaf(entry: E): boolean

Private markSelectedEntry

  • markSelectedEntry(entry: E): void

Private minimallyScrollTo

  • minimallyScrollTo($entryWrapper: JQuery): void

Private nodeDepth

  • nodeDepth(node: E): number

removeNode

  • removeNode(nodeId: string): void

Private renderChildren

  • renderChildren(node: E): void

revealSelectedEntry

  • revealSelectedEntry(animate?: boolean): void

selectNextEntry

selectNextMatchingEntry

Private setChildren

  • setChildren(node: E, children: E[]): void

setHighlightedEntry

  • setHighlightedEntry(entry: E): void

setHighlightedNodeExpanded

  • setHighlightedNodeExpanded(expanded: boolean): boolean

Private setNodeExpanded

  • setNodeExpanded(node: E, expanded: boolean, animate: boolean): void

setSelectedEntry

  • setSelectedEntry(entry: E, originalEvent?: Event): void

setSelectedEntryById

  • setSelectedEntryById(nodeId: any): void

updateChildren

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

updateEntries

  • updateEntries(newEntries: E[]): void

updateNode

  • updateNode(node: E): void

Private updateTreeEntryElements

  • updateTreeEntryElements(): void

Generated using TypeDoc