AddCopy
This compatibility method behaves like CreateCopyButton. Creates a button that copies a configured value. It is kept so scripts written with the older AddCopy name continue to work.
AddCopy
Compatibility alias
AddCopy is an alternate name for CreateCopyButton. New code can use CreateCopyButton.
What it does
This compatibility method behaves like CreateCopyButton. Creates a button that copies a configured value. It is kept so scripts written with the older AddCopy name continue to work.
When to use it
Use it beside codes, identifiers, commands, or URLs that users frequently copy. Prefer CreateCopyButton in new code so the method name matches the current API.
ElementFunction:AddCopy(CopyConfig)
local Result = Section:AddCopy({
Name = "Example",
Callback = function(value)
print(value)
end,
})Behavior and return value
This alias forwards to CreateCopyButton, 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.
Related reference
AddControlPanel
This compatibility method behaves like AddKeybindList. Adds a docked or detachable panel that displays active keybinds. It is kept so scripts written with the older AddControlPanel name continue to work.
AddCopyButton
This compatibility method behaves like CreateCopyButton. Creates a button that copies a configured value. It is kept so scripts written with the older AddCopyButton name continue to work.