AsyncChoicesInterface

Source
import { AsyncChoicesInterface } from "@prestojs/viewmodel";
AsyncChoicesInterface<ItemType,ValueType>

API

Methods

getChoices(items)
Params:
ParameterTypeDescription
*itemsItemType[]
Returns:(|[string, []])[]
getLabel(item)
Params:
ParameterTypeDescription
*itemItemType
Returns:ReactNode
getMissingLabel(value)
Params:
ParameterTypeDescription
*valueValueType
Returns:ReactNode
getValue(item)
Params:
ParameterTypeDescription
*itemItemType
Returns:ValueType
list(params)
Params:
ParameterTypeDescription
*paramsRecord
Returns:Promise
retrieve(value,?deps)
Params:
ParameterTypeDescription
*valueValueType|ValueType[]
depsany
Returns:Promise
useListProps(args)
Params:
ParameterTypeDescription
*argsany
Returns:any
useResolveItems<T>(item)
Params:
ParameterTypeDescription
*itemT
Returns:T
useRetrieveProps(args)
Params:
ParameterTypeDescription
*argsany
Returns:any

Properties

multiple

Source
boolean