AsyncChoicesInterfaceTypescript Type

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

API

Methods

getChoices(items)
Source

Arguments:

ArgumentTypeDescription
*itemsItemType[]
Returns:(|[string, []])[]
getLabel(item)
Source

Arguments:

ArgumentTypeDescription
*itemItemType
Returns:ReactNode
getMissingLabel(value)
Source

Arguments:

ArgumentTypeDescription
*valueValueType
Returns:ReactNode
getValue(item)
Source

Arguments:

ArgumentTypeDescription
*itemItemType
Returns:ValueType
list(params)
Source

Arguments:

ArgumentTypeDescription
*paramsRecord
Returns:Promise
parseValue(value)
Source

Arguments:

ArgumentTypeDescription
*valueany
Returns:ValueType
retrieve(value,?deps)
Source

Arguments:

ArgumentTypeDescription
*valueValueType|ValueType[]
depsany
Returns:Promise
useListProps(args)
Source

Arguments:

ArgumentTypeDescription
*argsany
Returns:any
useResolveItems<T>(item)
Source

Arguments:

ArgumentTypeDescription
*itemT
Returns:T
useRetrieveProps(args)
Source

Arguments:

ArgumentTypeDescription
*argsany
Returns:any

Properties

multiple

Source
boolean