object.maximumValue

Type Number
Library widget.*
Revision Release 2022.3683
Keywords widget, stepper, increment, decrement, StepperWidget, maximumValue
See also object.minimumValue
object.value
widget.newStepper()
StepperWidget

Overview

A read-only property that represents the maximum value of the StepperWidget.

Examples

-- Handle stepper events
local function onPress( event )

    print( "Stepper's maximum value is:", event.maximumValue )
    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
}