edit-select
Last updated
Last updated
This editable cell type allows users to pick a value from a predetermined set of options. It is different to edit-typeahead
in that it uses the underlying operating system select
native UX to provide options.
on-change
options
Required
Default: unset
Specifies an array of options to list when the user activates the edit-select
cell.
There are three possible ways to provide options to edit-select
:
1. Simple array (set)
This function is useful if the options represent the underlying data (display value == key value)
2. Simple object (map)
This function is useful when the key and display values differ (display value != key value)
JS
3. Advanced array (collection)
An advanced array enables one to build up a collection of objects dynamically. Having data in this format makes it easy to use 3rd party libraries such as Lodash
or native map
, filter
or reduce
functions.
JS
4. Row $object
Since JourneyApps Runtime version 4.90.4 you can pass the table row ($object
) to the options
attribute. This is useful if you want to generate dynamic options based on the specific object.
JS
value
disabled