Divider
Properties
Property | Type | Optional | Description |
---|---|---|---|
text | string | yes | Text displayed in the divider |
dashed | boolean | yes | Weather line is dashed |
orientation | string: left, right, center | yes | Position of the title inside the divider |
orientationMargin | number | yes | The margin between the title and its closest border |
plain | boolean | yes | Weather text is shown as plain text |
type | string: horizontal, vertical | yes | The direction of the divider |
[events] | function | yes | Please read the events page |
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:

Text
The text displayed inside the divider.

Dashed
If true the line is dashed.

Orientation
The position of the title inside the divider.

Orientation Margin
The margin between the title and its closet border.

Plain
If true the text is shown as a plain text.

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