XLQP Gen1
ElementsCompatibility aliases

AddCheckbox

This compatibility method behaves like CreateCheckbox. Creates a checkbox control with an optional saved flag. It is kept so scripts written with the older AddCheckbox name continue to work.

AddCheckbox

Compatibility alias

AddCheckbox is an alternate name for CreateCheckbox. New code can use CreateCheckbox.

What it does

This compatibility method behaves like CreateCheckbox. Creates a checkbox control with an optional saved flag. It is kept so scripts written with the older AddCheckbox name continue to work.

When to use it

Use it for a simple boolean choice where a checkmark is clearer than a switch. Prefer CreateCheckbox in new code so the method name matches the current API.

ElementFunction:AddCheckbox(CheckboxConfig)

local Result = Section:AddCheckbox({
    Name = "Example",
    Callback = function(value)
        print(value)
    end,
})

Behavior and return value

This alias forwards to CreateCheckbox, so its options, callbacks, and returned value follow the canonical method.

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