1681-engine / react / ChoiceQuestion
Interface: ChoiceQuestion ​
Defined in: src/react/choiceStore.ts:13
Properties ​
cancel? ​
ts
optional cancel?: string;Defined in: src/react/choiceStore.ts:18
confirm? ​
ts
optional confirm?: string;Defined in: src/react/choiceStore.ts:17
The confirm button's word; default the provider's choose.
options ​
ts
options: readonly ChoiceOption[];Defined in: src/react/choiceStore.ts:15
resolve ​
ts
resolve: (id) => void;Defined in: src/react/choiceStore.ts:20
The id picked, or null when cancelled.
Parameters ​
| Parameter | Type |
|---|---|
id | string | null |
Returns ​
void
text ​
ts
text: ReactNode;Defined in: src/react/choiceStore.ts:14