Skip to main content

Format

Format API

Properties

Separator

Widget
Format.Separator: Iris.Separator

A vertical or horizonal line, depending on the context, which visually seperates widgets.

hasChildren = false
hasState = false

Indent

WidgetHasChildren
Format.Indent: Iris.Indent

Indents its child widgets.

hasChildren = true
hasState = false
Arguments = {
    Width: number? = Iris._config.IndentSpacing -- indent width ammount.
}

SameLine

WidgetHasChildren
Format.SameLine: Iris.SameLine

Positions its children in a row, horizontally.

hasChildren = true
hasState = false
Arguments = {
    Width: number? = Iris._config.ItemSpacing.X, -- horizontal spacing between child widgets.
    VerticalAlignment: Enum.VerticalAlignment? = Enum.VerticalAlignment.Center -- how widgets vertically to each other.
    HorizontalAlignment: Enum.HorizontalAlignment? = Enum.HorizontalAlignment.Center -- how widgets are horizontally.
}

Group

WidgetHasChildren
Format.Group: Iris.Group

Layout widget which contains its children as a single group.

hasChildren = true
hasState = false
Show raw api
{
    "functions": [],
    "properties": [
        {
            "name": "Separator",
            "desc": "A vertical or horizonal line, depending on the context, which visually seperates widgets.\n\n```lua\nhasChildren = false\nhasState = false\n```\n    ",
            "lua_type": "Iris.Separator",
            "tags": [
                "Widget"
            ],
            "source": {
                "line": 256,
                "path": "lib/API.lua"
            }
        },
        {
            "name": "Indent",
            "desc": "Indents its child widgets.\n\n```lua\nhasChildren = true\nhasState = false\nArguments = {\n    Width: number? = Iris._config.IndentSpacing -- indent width ammount.\n}\n```\n    ",
            "lua_type": "Iris.Indent",
            "tags": [
                "Widget",
                "HasChildren"
            ],
            "source": {
                "line": 274,
                "path": "lib/API.lua"
            }
        },
        {
            "name": "SameLine",
            "desc": "Positions its children in a row, horizontally.\n\n```lua\nhasChildren = true\nhasState = false\nArguments = {\n    Width: number? = Iris._config.ItemSpacing.X, -- horizontal spacing between child widgets.\n    VerticalAlignment: Enum.VerticalAlignment? = Enum.VerticalAlignment.Center -- how widgets vertically to each other.\n    HorizontalAlignment: Enum.HorizontalAlignment? = Enum.HorizontalAlignment.Center -- how widgets are horizontally.\n}\n```\n    ",
            "lua_type": "Iris.SameLine",
            "tags": [
                "Widget",
                "HasChildren"
            ],
            "source": {
                "line": 294,
                "path": "lib/API.lua"
            }
        },
        {
            "name": "Group",
            "desc": "Layout widget which contains its children as a single group.\n\n```lua\nhasChildren = true\nhasState = false\n```\n    ",
            "lua_type": "Iris.Group",
            "tags": [
                "Widget",
                "HasChildren"
            ],
            "source": {
                "line": 309,
                "path": "lib/API.lua"
            }
        }
    ],
    "types": [],
    "name": "Format",
    "desc": "Format API\n    ",
    "source": {
        "line": 243,
        "path": "lib/API.lua"
    }
}