ComboBox
A dropdown box that allows for multiple selections
Methods
created
(
)
:
void
Creat widget with value if it exists, else use default value
Returns void
void
update_selection
(
items
:
any[]
,
previous_items
:
any[]
)
:
void
Update selection and display.options.values with items if they differ
from previous_items
Parameters
-
items
 :
any[]
Item to select -
previous_items
 :
any[]
Previously selected items
void
filter
(
item
:
any
,
query
:
string
)
:
boolean
Determine whether query matchs item
Parameters
-
item
 :
any
Item to query -
query
 :
string
Query string
boolean
Properties
value
:
void
Value of component
default_value
:
void
Default value of component
display
:
void
Display options of component
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