Skip to content

Heading

A horizontal divider with optional centered title text, used to separate sections of a layout.

Create with AceGUI:Create("Heading"). It inherits the Common Widget API.

Widget type: Heading

Methods

SetText

method#
lua
widget:SetText(text?)

Sets the heading's centered title. When text is present, the divider line is split into a left and right segment around the label. When the text is empty or nil, the right segment is hidden and the left line spans the full width.

Parameters

ParameterTypeDefaultDescription
text (optional)stringThe heading text, or nil/"" for a plain divider line.

Defaults

On acquire the heading resets to: empty text, full width, and height 18.

Callbacks

This widget fires no callbacks.

Example

lua
local heading = AceGUI:Create("Heading")
heading:SetText("Display Options")
container:AddChild(heading)

Ace3, a World of Warcraft addon framework.