ui.Tab
A script's menu tab from ui.tab(), holding cards in columns.
Methods
tab:card
tab:card(name [, options]) -> ui.Card| Name | Type | Description |
|---|---|---|
| name | string | Card title. |
| optionsoptional | table | {column = k, full = bool}. Default auto column, not full. |
Adds a titled group box, by default in the shortest column.
- Same-named cards share save keys and bind ids.
- Raises an error on a stale (reloaded) tab handle.
tab:columns
tab:columns(n) -> ui.Tab| Name | Type | Description |
|---|---|---|
| n | integer | Clamped to 1 to 3. |
Sets the column count; default 2.
Returns Same tab (chainable).
Does nothing on a stale handle.