XLQP Gen1
ElementsNavigation & windows

CreatePopup

Creates a modal popup with a title, description, and action options.

CreatePopup

What it does

Creates a modal popup with a title, description, and action options.

When to use it

Use it for confirmations, decisions, warnings, or short blocking workflows.

XLQPGen1:CreatePopup(PopupConfig)

Window:CreatePopup({
            Title = "Risk confirmation",
            Description = "Accept stays locked for five seconds.",
            Options = {
                {text = "Accept", timeout = 5, Accept = true, Callback = function() print("Accepted popup") end},
                {text = "Cancel", Callback = function() print("Cancelled popup") 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.