useAsyncChoices

Source
import { useAsyncChoices } from "@prestojs/viewmodel";
useAsyncChoices<ItemT,ValueT>(props)
Params:
ParameterTypeDescription
*
props
An object with the properties below
props.accumulatePagesboolean
*props.asyncChoicesAsyncChoicesInterface
props.listOptionsRecord
props.onRetrieveError
props.onRetrieveSuccess
props.queryRecord
props.retrieveOptionsRecord
props.trigger"MANUAL"|"DEEP"
props.valueValueT[]|ValueT|null
Returns:
An object with these properties:
PropertyTypeDescription
*choicesReturnType
*list||
*selected