Skip to content

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 ​

ParameterType
idstring | null

Returns ​

void


text ​

ts
text: ReactNode;

Defined in: src/react/choiceStore.ts:14

Released under the MIT License.