XLQP Gen1
ElementsControls

CreateCheckbox

Creates a checkbox control with an optional saved flag.

CreateCheckbox

What it does

Creates a checkbox control with an optional saved flag.

When to use it

Use it for a simple boolean choice where a checkmark is clearer than a switch.

ElementFunction:CreateCheckbox(CheckboxConfig)

local PlainCheckbox = LeftGroup:CreateCheckbox({
    Name = "Plain Checkbox",
    CurrentValue = false,
    Flag = "PlainCheckboxDemo",
    Save = true,
    Callback = function(value)
        print("plain checkbox", value)
    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.