Skip to content
João Cardoso edited this page Dec 5, 2019 · 5 revisions

Header is a button class which inherits from Clickable and provides buttons that only display text. Unless a width is specified using :SetWidth, headers automatically resize to fill their parents width.

Preview

Methods

Name Description
SetLabel(label) Alias for :SetText
GetLabel() Alias for :GetText
SetUnderlined(underlined) Sets whether a white line should appear bellow the text.
IsUnderlined() Returns whether a white line is being displayed bellow the text.
SetHighlightFactor(factor) Sets the factor by which color escape sequences in text should be highlighted on mouse-over.
GetHighlightFactor() Returns color escape sequence highlight factor.

Example

local title = LibStub('Sushi-3.1').Header(parent, 'Header')
title:SetUnderlined(true)

local text = LibStub('Sushi-3.1').Header(parent, nil, 'GameFontHighlightSmall')
text:SetText('This is the power of headers. Great for writing text and sectioning menus.')

Sushi-3.1 🍣

Documentation
Class Reference
Best Practices

Feedback
Post an issue

Clone this wiki locally