Type Number Library widget.* Revision Release 2022.3683 Keywords widget, stepper, increment, decrement, StepperWidget, value See also object.minimumValue object.maximumValue object:getValue() widget.newStepper() StepperWidget
A read-only property that represents the current value of the StepperWidget. This value is any number from the stepper's minimum value to the stepper's maximum value.
To read the stepper's value from outside of its listener function, use the object:getValue() function.
-- Handle stepper events local function onPress( event ) print( "Stepper's current value is:", event.value ) end -- Create a default stepper local stepper = widget.newStepper { left = 140, top = 235, initialValue = 0, minimumValue = 0, maximumValue = 50, onPress = onPress }