Skip to content

1681-engine / react / askQuantity

Function: askQuantity() ​

ts
function askQuantity(
   text, 
   max, 
   options?
): Promise<number>;

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

The same question with a slider and a field for how many of max; resolves 0 when cancelled.

Parameters ​

ParameterType
textReactNode
maxnumber
optionsAskOptions

Returns ​

Promise<number>

Released under the MIT License.