Skip to main content

Divider

Properties

PropertyTypeOptionalDescription
textstringyesText displayed in the divider
dashedbooleanyesWeather line is dashed
orientationstring: left, right, centeryesPosition of the title inside the divider
orientationMarginnumberyesThe margin between the title and its closest border
plainbooleanyesWeather text is shown as plain text
typestring: horizontal, verticalyesThe direction of the divider
[events]functionyesPlease read the events page

Examples can be seen here

Children

Not supported on a divider. Use text property to give the divider a text.

Example

local divider = myUI:createElement("Divider", {
text = "This is a Divider"
})

This is how it looks in-game:

Showcase

Text

The text displayed inside the divider.

Showcase

Dashed

If true the line is dashed.

Showcase

Orientation

The position of the title inside the divider.

Showcase

Orientation Margin

The margin between the title and its closet border.

Showcase

Plain

If true the text is shown as a plain text.

Showcase

Type

The direction of the divider. There can not be a text on a vertical divider.

Showcase