Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TrivialComboBox<E>

A templateable combobox.

Type parameters

  • E

Hierarchy

  • TrivialComboBox

Implements

Index

Constructors

constructor

Properties

Private $clearButton

$clearButton: JQuery

Private $comboBox

$comboBox: JQuery

Private $dropDown

$dropDown: JQuery

Private $dropDownTargetElement

$dropDownTargetElement: JQuery

Private $editor

$editor: JQuery

Private $originalInput

$originalInput: JQuery

Private $selectedEntryWrapper

$selectedEntryWrapper: JQuery

Private $spinners

$spinners: JQuery = $()

Private $trigger

$trigger: JQuery

Private autoCompleteTimeoutId

autoCompleteTimeoutId: number = -1

Private blurCausedByClickInsideComponent

blurCausedByClickInsideComponent: boolean = false

Private config

Private doNoAutoCompleteBecauseBackspaceWasPressed

doNoAutoCompleteBecauseBackspaceWasPressed: boolean = false

Private editingMode

editingMode: EditingMode

Private entries

entries: E[]

Private isDropDownOpen

isDropDownOpen: boolean = false

Private isEditorVisible

isEditorVisible: boolean = false

Private lastCommittedValue

lastCommittedValue: E = null

Private listBox

listBox: TrivialListBox<E>

Private listBoxDirty

listBoxDirty: boolean = true

onBlur

onBlur: TrivialEvent<void> = new TrivialEvent<void>(this)

onFocus

onFocus: TrivialEvent<void> = new TrivialEvent<void>(this)

onSelectedEntryChanged

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

Private selectedEntry

selectedEntry: E = null

Private usingDefaultQueryFunction

usingDefaultQueryFunction: boolean = false

Methods

Private autoCompleteIfPossible

  • autoCompleteIfPossible(delay?: number): void

closeDropDown

  • closeDropDown(): void

destroy

  • destroy(): void

Private editorContainsFreeText

  • editorContainsFreeText(): boolean

Private fireChangeEvents

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

focus

  • focus(): void

getDropDown

  • getDropDown(): JQuery

getEditor

  • getEditor(): Element

getMainDomElement

  • getMainDomElement(): Element

Private getNonSelectedEditorValue

  • getNonSelectedEditorValue(): any

getSelectedEntry

  • getSelectedEntry(): E

Private hideEditor

  • hideEditor(): void

Private isDropDownNeeded

  • isDropDownNeeded(): boolean

Private isEntrySelected

  • isEntrySelected(): boolean

openDropDown

  • openDropDown(): void

Private query

Private repositionDropDown

  • repositionDropDown(): void

setEditingMode

setSelectedEntry

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

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

    Returns void

Private showEditor

  • showEditor(): void

updateEntries

  • updateEntries(newEntries: E[], highlightDirection?: number): void
  • Parameters

    • newEntries: E[]
    • Optional highlightDirection: number

    Returns void

Private updateListBoxEntries

  • updateListBoxEntries(): void

Generated using TypeDoc