Skip to content

ComboBoxView

The ComboBoxView control is a text-edit box with a scrollable drop-down list attached to it. Users can select an item from the list or type directly into the edit box.
The ComboBoxView inherits all the methods and properties from the base class View.

Constructor:

  • constructor(parent: View)
    Creates an instance of ComboBoxView control.
    • parent: the View containing the control itself.

Properties:

  • text: string
    The text currently selected from the combo-box drop-down list.
  • texts: string[]
    The array of texts where each text represents one entry in the drop-down list.
  • hint: string
    The text thet is displayed when ComboBoxView has no selected value.
  • droppedDown: boolean (read-only)
    Indicates wheather the drop-down list is shown.

Methods:

  • dropDown(handler: ()=> any)
    Registers an event handler that is triggered after drop-down list is opened.
  • closeUp(handler: ()=> any)
    Registers an event handler that is triggered after drop-down list is closed.
  • change(handler: ()=> any)
    Registers an event handler that is triggered after the combo box value changes.
    HINT: This event fires whenever the selection in the drop-down list changes. That also includes cases where the user is simply navigating up or down through the list. To avoid receiving too many change events, check the droppedDown property. If you only want to handle the final selection, combine this event with the closeUp event.