CreateLabel
This compatibility method behaves like AddLabel. Adds general-purpose text with optional wrapping, rich text, alignment, and icon styling. It is kept so scripts written with the older CreateLabel name continue to work.
CreateLabel
Compatibility alias
CreateLabel is an alternate name for AddLabel. New code can use AddLabel.
What it does
This compatibility method behaves like AddLabel. Adds general-purpose text with optional wrapping, rich text, alignment, and icon styling. It is kept so scripts written with the older CreateLabel name continue to work.
When to use it
Use it for headings, captions, instructions, and static information that does not need interaction. Prefer AddLabel in new code so the method name matches the current API.
ElementFunction:CreateLabel(LabelConfig)
local FeatureLabel = Controls:CreateLabel({
Content = "<b>XLQP Gen1</b> advanced element examples",
IsRich = true,
Icon = "sparkles",
Font = "GothamBold",
DoesWrap = true
})Behavior and return value
This alias forwards to AddLabel, 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
CreateKeybindPanel
This compatibility method behaves like CreateControlPanel. Creates a standalone control panel containing actions or state controls. It is kept so scripts written with the older CreateKeybindPanel name continue to work.
CreateLineChart
This compatibility method behaves like CreateChart. Creates a configurable line or filled chart with a bounded point history. It is kept so scripts written with the older CreateLineChart name continue to work.