DropDown

Similar to ComboBox component but only allows 1 item to be selected

Methods

created ( ) : void
Creat widget with value if it exists, else use default value

Returns void

void

update_selection ( ) : void
Update selection and display.options.values with item differs from previous_item

Parameters
Returns void

void

on_change ( value : any ) : void
Event handler for change events

Parameters
  • value  : any
    Value of dropdown selection.
Returns void

void

filter ( item : , query : ) : boolean
Determine whether query matchs item

Parameters
  • item  :
    Item to query
  • query  :
    Query string
Returns boolean

boolean

Properties

value : void
Value of component

default_value : void
Default value of component

display : void
Display options of component

selection : void
Selected items

Acessors

get items ( ) : object[]
Returns Array of objects with value, text and color keys

Returns object[]

object[]

get default_color ( ) : string
Returns the default color of the widget

Returns string

string