XLQP Gen1
ElementsControls

AddToastAction

Adds an action that displays a toast-style notification.

AddToastAction

What it does

Adds an action that displays a toast-style notification.

When to use it

Use it when a button should confirm an operation with short-lived feedback.

ElementFunction:AddToastAction(ToastConfig)

RightGroup:AddToastAction({
    Name = "Toast Action",
    Content = "Runs a callback and sends a themed notification.",
    ButtonText = "Notify",
    Callback = function()
        print("toast action")
    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.