useAsyncChoices
Sourceimport { useAsyncChoices } from "@prestojs/viewmodel";
Params:
Parameter | Type | Description | |
---|---|---|---|
* | props An object with the properties below | ||
props.accumulatePages | boolean | ||
* | props.asyncChoices | AsyncChoicesInterface | |
props.listOptions | Record | ||
props.onRetrieveError | |||
props.onRetrieveSuccess | |||
props.query | Record | ||
props.retrieveOptions | Record | ||
props.trigger | "MANUAL"|"DEEP" | ||
props.value | ValueT[]|ValueT|null |
Returns:
An object with these properties: | |||
---|---|---|---|
Property | Type | Description | |
* | choices | ReturnType | |
* | list | || | |
* | selected |