ElementsContent & layout
AddCopyBox
Adds read-only text with a convenient copy action.
AddCopyBox
What it does
Adds read-only text with a convenient copy action.
When to use it
Use it for invite codes, IDs, commands, URLs, or any value the user should copy instead of edit.
ElementFunction:AddCopyBox(CopyConfig)
LeftGroup:AddCopyBox({
Name = "Server JobId",
Content = game.JobId
})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.