You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<cps-select[options]="options"
optionLabel="address.city" <!-- currently not possible -->></cps-select>
I'd suggest supporting not only string type but also a Function type for those inputs, so that a user can define custom function that will take option object and would return value to be used for optionLabel/Value/Info, e.g.:
Currently, if one wants to use nested property for
optionLabel
/optionValue
/optionInfo
it's not possible. Let me illustrate on an example:We have an array of options of the following type:
And we want to use it in a
CpsSelect
:I'd suggest supporting not only
string
type but also aFunction
type for those inputs, so that a user can define custom function that will take option object and would return value to be used foroptionLabel/Value/Info
, e.g.:Components that might also support this:
CpsSelect
/CpsTreeSelect
CpsAutocomplete
/CpsTreeAutocomplete
The text was updated successfully, but these errors were encountered: