docs/api/property_select.md
Extends Property
options Array<Object> Array of option definitions.
options: [
{ id: '100', label: 'Set 100' },
{ id: '200', label: 'Set 200' },
]
Get available options.
Returns Array<Object> Array of options
Get current selected option or by id.
id String? Option id.Returns (Object | null)
Update options.
value Array<Object> New array of options, eg. [{ id: 'val-1', label: 'Value 1' }] (optional, default [])Add new option.
value Object Option object, eg. { id: 'val-1', label: 'Value 1' }Get the option id from the option object.
option Object Option objectReturns String Option id
Get option label.
opts Object Options (optional, default {})
opts.locale Boolean Use the locale string from i18n module (optional, default true)Returns String Option label