object:getValue()

Type Function
Library widget.*
Return value Number
Revision Release 2024.3703
Keywords widget, stepper, increment, decrement, StepperWidget, getValue
See also object:setValue()
object.value
widget.newStepper()
StepperWidget

Overview

This method gets the current value of a StepperWidget. Unlike object.value, this is not restricted to usage within the stepper’s listener function.

Syntax

object:getValue()

Example

-- Create a default stepper
local stepper = widget.newStepper
{
    left = 140,
    top = 235,
    minimumValue = 0,
    maximumValue = 50,
    initialValue = 5
}

print( stepper:getValue() )