normalizeValueSelectorValue()
normalizeValueSelectorValue(
value:unknown,multiple?:boolean):any
Defined in: packages/core/src/utils/deriveValueEditor.ts:164
Normalizes a value selector's current value for display. Multiselect values become an array of
strings so they match option names, which are always strings (e.g. [42] becomes ["42"]).
Parameters
| Parameter | Type |
|---|---|
value | unknown |
multiple? | boolean |
Returns
any
caution
API documentation is generated from the latest commit on the main branch. It may be somewhat inconsistent with official releases of React Query Builder.