Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TrivialListBox<E>

Type parameters

  • E

Hierarchy

  • TrivialListBox

Implements

Index

Constructors

constructor

Properties

Private $entryList

$entryList: JQuery

Private $listBox

$listBox: JQuery

Private config

Private entries

entries: E[]

Private highlightedEntry

highlightedEntry: E

onSelectedEntryChanged

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

Private selectedEntry

selectedEntry: E

Methods

destroy

  • destroy(): void

Private fireChangeEvents

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

getHighlightedEntry

  • getHighlightedEntry(): E

getMainDomElement

  • getMainDomElement(): Element

Private getNextHighlightableEntry

getSelectedEntry

  • getSelectedEntry(): any

highlightNextEntry

highlightTextMatches

  • highlightTextMatches(searchString: string): void

Private minimallyScrollTo

  • minimallyScrollTo($entryWrapper: JQuery): void

navigate

setHighlightedEntry

  • setHighlightedEntry(entry: E): void

setSelectedEntry

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

    • entry: E
    • Optional originalEvent: Event
    • Default value fireEvent: boolean = false

    Returns void

updateEntries

  • updateEntries(newEntries: E[]): void

Private updateEntryElements

  • updateEntryElements(entries: E[]): void

Generated using TypeDoc