XLQP Gen1
ElementsData & charts

CreateProgress

Creates a controller-driven progress element with optional saving and callback behavior.

CreateProgress

What it does

Creates a controller-driven progress element with optional saving and callback behavior.

When to use it

Use it when code needs to update a bounded value over time.

ElementFunction:CreateProgress(ProgressConfig)

local StaticProgress = LeftGroup:CreateProgress({
    Name = "Static progress",
    Icon = "battery-medium",
    CurrentValue = 60,
    Min = 0,
    Max = 100,
    Suffix = "%",
    Flag = "StaticProgressDemo",
    Save = true,
    Callback = function(value, percent)
        print("static progress", value, percent)
    end
})

Behavior and return value

Store the returned controller or object when later code needs to update its state, call its methods, or close it.

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