QuantityPickerState
The QuantityPickerState
class is useful to handle the QuantityPicker component lifecycle
Author
N7ghtm4r3 - Tecknobit
Since
1.1.0
Properties
The current quantity picked
The initial quantity selected
longPressEnabled
whether the longPressQuantity option is enabled
The quantity to decrement or increment when the user long press (or double-clicked) the quantity buttons
The maximum threshold quantity allowed
The minimum threshold quantity allowed
quantity
the state used to manage the quantity picked
quantityPicked
the current quantity picked
Functions
Method used to decrement the quantity value by the amount specified in longPressQuantity
Method used to increment the quantity value by the amount specified in longPressQuantity
Method used to reset the current quantity picked as the initialQuantity amount
Method used to simply decrement the quantity value by one
Method used to simply increment the quantity value by one