# PropertySelect
Extends Property
# Properties
optionsArray (opens new window)<Object (opens new window)> Array of option definitions.options: [ { id: '100', label: 'Set 100' }, { id: '200', label: 'Set 200' }, ]
# getOptions
Get available options.
Returns Array (opens new window)<Object (opens new window)> Array of options
# getOption
Get current selected option or by id.
# Parameters
idString (opens new window)? Option id.
Returns (Object (opens new window) | null)
# setOptions
Update options.
# Parameters
valueArray (opens new window)<Object (opens new window)> New array of options, eg.[{ id: 'val-1', label: 'Value 1' }](optional, default[])
# addOption
Add new option.
# Parameters
valueObject (opens new window) Option object, eg.{ id: 'val-1', label: 'Value 1' }
# getOptionId
Get the option id from the option object.
# Parameters
optionObject (opens new window) Option object
Returns String (opens new window) Option id
# getOptionLabel
Get option label.
# Parameters
id(String (opens new window) | Object (opens new window)) Option id or the option objectoptsObject (opens new window) Options (optional, default{})opts.localeBoolean (opens new window) Use the locale string from i18n module (optional, defaulttrue)
Returns String (opens new window) Option label