AsyncChoices
Sourceimport { AsyncChoices } from "@prestojs/viewmodel";
AsyncChoices<ItemType,ValueType>
Constructor
Arguments:
Argument | Type | Description | |
---|---|---|---|
* | options An object with the properties below | ||
options.getChoices | |||
options.getLabel | |||
options.getMissingLabel | |||
options.getValue | |||
* | options.list | ||
options.multiple | boolean | ||
options.parseValue | |||
* | options.retrieve | ||
options.useListProps | |||
options.useResolveItems | |||
options.useRetrieveProps |
Methods
Properties
options
SourceAn object with these properties: | |||
---|---|---|---|
Property | Type | Description | |
getChoices | |||
getLabel | |||
getMissingLabel | |||
getValue | |||
* | list | ||
multiple | boolean | ||
parseValue | |||
* | retrieve | ||
useListProps | |||
useResolveItems | |||
useRetrieveProps |