QuantityStepperActions

class QuantityStepperActions(val onDecrease: (Int) -> Unit? = null, val onIncrease: (Int) -> Unit? = null, val onInputValueChange: (Int) -> Unit? = null)

The QuantityStepperActions class actions that will be triggered in response to users triggering an input action on the QuantityStepper component. This can be used together with the default onValueChange param.

Constructors

Link copied to clipboard
constructor(onDecrease: (Int) -> Unit? = null, onIncrease: (Int) -> Unit? = null, onInputValueChange: (Int) -> Unit? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val onDecrease: (Int) -> Unit? = null

This is ONLY run when the increase button is pressed. An updated value comes as a parameter of the callback. A null value indicates that the default implementation if any, should be executed.

Link copied to clipboard
val onIncrease: (Int) -> Unit? = null

This is ONLY run when the increase button is pressed. An updated value comes as a parameter of the callback. A null value indicates that the default implementation if any, should be executed.

Link copied to clipboard
val onInputValueChange: (Int) -> Unit? = null

This is ONLY run when the Input Field part of the component updates the value. An updated value comes as a parameter of the callback. A null value indicates that the default implementation if any, should be executed.