XLQP Gen1
ElementsControls

AddDraggableButton

Adds a button that can also be repositioned by the user.

AddDraggableButton

What it does

Adds a button that can also be repositioned by the user.

When to use it

Use it for floating actions or layouts where users should customize where a control sits.

XLQPGen1:AddDraggableButton(text, callback, noScale, icon, iconPosition)

local Result = Library:AddDraggableButton(
    "Example",
    function() print("Activated") 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.