Skip to content
sirinsidiator edited this page May 3, 2018 · 2 revisions

The divider control is used to separate sections of your settings menu. For that purpose it creates a horizontal line.

A sample Divider control

Data Table

property type default required description
type string - yes The widget type of this control ("divider")
height number 10 no The height and resulting strength of the divider
alpha number 0.25 no The alpha value of the divider between 0 and 1
width string "full" no "full" or "half" width in the panel
reference string - no A unique global reference to the control

Exposed Methods

- none -

Examples

LAM:RegisterOptionControls(panelName, {
	{
		type = "divider",
		reference = "MyAddonDivider"
	}
})
local controls = {}
controls[#controls + 1] = {
	type = "divider",
	height = 15,
	alpha = 0.5,
	width = "half"
}
LAM:RegisterOptionControls(panelName, controls)