useValueSelector()
useValueSelector(
props
):object
Transforms a value into an array when appropriate and provides a memoized change handler.
Parameters
Parameter | Type |
---|---|
props | UseValueSelectorParams |
Returns
object
onChange()
onChange: (
v
) =>void
Memoized change handler for value selectors
Parameters
Parameter | Type |
---|---|
v | string | string [] |
Returns
void
val
val:
undefined
|string
|any
[]
The value as provided or, if appropriate, as an array
Defined in
packages/react-querybuilder/src/components/ValueSelector.tsx:43
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.