Divider - sirinsidiator/ESO-LibAddonMenu GitHub Wiki
The divider control is used to separate sections of your settings menu. For that purpose it creates a horizontal line.
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 |
- none -
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)