XLQP Gen1
ElementsContent & layout

AddSpacer

Adds empty vertical space to the current layout.

AddSpacer

What it does

Adds empty vertical space to the current layout.

When to use it

Use it to create intentional breathing room between neighboring elements.

ElementFunction:AddSpacer(SpacerConfig)

local Spacer = Section:AddSpacer({
    Size = 18,
})

Spacer:Set(24)

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.