ElementsControls
AddButton
Adds a clickable button that runs a callback when pressed.
AddButton
What it does
Adds a clickable button that runs a callback when pressed.
When to use it
Use it for one-time actions such as opening a menu, copying a value, refreshing data, or running a command.
ElementFunction:AddButton(ButtonConfig)
RightQuickMenu:AddButton({
Name = "Close Menu",
Callback = function()
RightQuickMenu:Close()
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.