Skip to content
sirinsidiator edited this page Feb 24, 2016 · 7 revisions

The header control is used to separate sections of your settings menu. It shows text formatted as a header with a divider above.

A sample header control

##Data Table

property type optional description
type string no The widget type of this control
name string no The text to display for the header
width string yes "full" or "half" width in the panel
reference string yes A unique global reference to the control

##Exposed Methods ###control:UpdateValue() This method updates the name of the header with changes in its data table.

##Examples

LAM:RegisterOptionControls(panelName, {
	{
		type = "header",
		name = "My Header",
		reference = "MyAddonHeader"
	}
})
local controls = {}
controls[#controls + 1] = {
	type = "header",
	name = "My Other Header",
	width = "half"
}
LAM:RegisterOptionControls(panelName, controls)