ElementsControls
AddQuickToggleRow
Adds several compact toggles on one row.
AddQuickToggleRow
What it does
Adds several compact toggles on one row.
When to use it
Use it for a small group of frequently changed boolean settings.
ElementFunction:AddQuickToggleRow(RowConfig)
Visuals:AddQuickToggleRow({
Name = "Visual Mode",
Options = {"Clean", "Glass", "Debug"},
Default = "Glass",
Callback = function(value)
print("visual mode", value)
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.