Choice.items
property · packages/mixins-ui/src/choice.ts:28
readonly items: ReadonlyArray<Item>Every item that can be chosen. A reported value is looked up here, so what is stored is an Item.
Mixins / foldkit-mixins-ui
interface · packages/mixins-ui/src/choice.ts:26
interface Choice<Item extends string, Value> {
readonly items: ReadonlyArray<Item>
readonly empty: Value
readonly picked: (value: Value, change: ChoiceChange) => Value
readonly chosen: (value: Value) => ReadonlyArray<Item>
readonly resting: (value: Value, labelOf: (item: Item) => string) => string
readonly multiple: boolean
}Choice.itemsproperty · packages/mixins-ui/src/choice.ts:28
readonly items: ReadonlyArray<Item>Every item that can be chosen. A reported value is looked up here, so what is stored is an Item.
Choice.emptyproperty · packages/mixins-ui/src/choice.ts:30
readonly empty: ValueThe value with nothing chosen.
Choice.pickedproperty · packages/mixins-ui/src/choice.ts:32
readonly picked: (value: Value, change: ChoiceChange) => ValueThe value after change; the same value when the change does not move it.
Choice.chosenproperty · packages/mixins-ui/src/choice.ts:34
readonly chosen: (value: Value) => ReadonlyArray<Item>The chosen items, for the view to mark.
Choice.restingproperty · packages/mixins-ui/src/choice.ts:36
readonly resting: (value: Value, labelOf: (item: Item) => string) => stringWhat a closed input rests on.
Choice.multipleproperty · packages/mixins-ui/src/choice.ts:38
readonly multiple: booleanWhether several items may be chosen, which the list says to assistive technology.