XLQP Gen1
ElementsCompatibility aliases

CreateSmoothToggle

This compatibility method behaves like AddSmoothToggle. Adds an animated boolean toggle with optional live-color styling. It is kept so scripts written with the older CreateSmoothToggle name continue to work.

CreateSmoothToggle

Compatibility alias

CreateSmoothToggle is an alternate name for AddSmoothToggle. New code can use AddSmoothToggle.

What it does

This compatibility method behaves like AddSmoothToggle. Adds an animated boolean toggle with optional live-color styling. It is kept so scripts written with the older CreateSmoothToggle name continue to work.

When to use it

Use it for on/off settings when you want a more expressive transition than a basic checkbox. Prefer AddSmoothToggle in new code so the method name matches the current API.

ElementFunction:CreateSmoothToggle(SmoothConfig)

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

Behavior and return value

This alias forwards to AddSmoothToggle, 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.