Skip to content

1681-engine / react / ConfirmQuestion

Interface: ConfirmQuestion ​

Defined in: src/react/confirmStore.ts:4

Properties ​

cancel? ​

ts
optional cancel?: string;

Defined in: src/react/confirmStore.ts:8


max ​

ts
max: number;

Defined in: src/react/confirmStore.ts:10

Above 1 the dialog also asks how many (1..max), starting at all of them; a plain question has 0.


ok? ​

ts
optional ok?: string;

Defined in: src/react/confirmStore.ts:7

The confirm button's word; default the provider's ok.


resolve ​

ts
resolve: (qty) => void;

Defined in: src/react/confirmStore.ts:12

The amount chosen, or 0 when cancelled.

Parameters ​

ParameterType
qtynumber

Returns ​

void


text ​

ts
text: ReactNode;

Defined in: src/react/confirmStore.ts:5

Released under the MIT License.