SFX Header II - SFX-WoW/AceGUI-3.0_SFX-Widgets GitHub Wiki
The SFX-Header-II widget adds a header with left-aligned text and a border beneath the text. The alignment of the text and the visibility of the border can be adjusted.
The SFX-Header-II widget can be used as a standard AceGUI-3.0 widget or can be referenced in an AceConfig-3.0 options table.
To use this widget with AceGUI-3.0, reference it as you would any other widget.
local header = AceGUI:Create("SFX-Header-II")
header:SetText("Header Text")
frame:AddChild(header)Note
Reference: AceGUI-3.0 Tutorial
The SFX-Header-II widget supports the following widget methods.
| Method | Parameter | Default | Description |
|---|---|---|---|
:SetCenter |
boolean | nil |
Sets the text alignment. |
:SetDisabled |
boolean | nil |
Sets the disabled state. |
:SetText |
string | "" |
Sets the header text. |
- To center the text, pass
trueto theSetCentermethod. - When disabled, the border will be hidden.
- If the text is set to an empty string (
""), the border will span the entire widget if enabled.
To use this widget with AceConfigDialog-3.0, pass "SFX-Header-II" to the dialogControl field of a control entry in your options table and specify the type as "header".
-- Options Table
local Options = {
type = "group",
name = "Options",
args = {
Header = {
type = "header",
name = "Header Text",
-- disabled = true,
dialogControl = "SFX-Header-II",
},
},
}Note
Reference: AceConfig-3.0 Options Tables
The SFX-Header-II widget supports the standard header control fields.
| Field | Type | Value | Description |
|---|---|---|---|
dialogControl |
string | "SFX-Header-II" |
Sets the widget type. This must be set to "SFX-Header-II". |
disabled |
boolean | nil |
Optional. Sets the disabled state. |
name |
string | "Header Text" |
The header text. |
type |
string | "input" |
Sets the control type. This must be set to "header". |
- When disabled, the border will be hidden.
- To center the header's text, add three consecutive greater-than symbols (
>>>) to thenamestring. Note that all occurrences of this pattern will be removed. - If the text is set to an empty string (
""), the border will span the entire widget if enabled.