XLQP Gen1
ElementsControls

AddStepper

Adds a numeric value control with increment and decrement actions.

AddStepper

What it does

Adds a numeric value control with increment and decrement actions.

When to use it

Use it for small integer choices where buttons are easier than dragging a slider.

ElementFunction:AddStepper(StepConfig)

LeftGroup:AddStepper({
    Name = "Farm Priority",
    Min = 1,
    Max = 10,
    Default = 3,
    Increment = 1,
    Callback = function(value)
        print("priority", value)
    end
})

Behavior and return value

Call this method on the compatible section, tab, panel, or element container shown by the signature. Store the returned value when you need to update, read, or destroy the element later.

Fields marked optional may be omitted. XLQP then uses the method’s built-in default or leaves that feature disabled.