Window
The Window object is your base UI container. It hosts tabs, groupboxes and mostly everything else driven by the library.
Window

The Window object is your base UI container. It hosts tabs, groupboxes and mostly everything else driven by the library. The next step to using the library is to create a tab inside the window.
Usage
Create a window with Library:CreateWindow() and override any defaults you need:
Prop
Type
ChangeTitle
Changes the title of the window.
| Arg Idx | Argument Description | Type | Default |
|---|---|---|---|
| 1 | The new title of the window | string | nil |
SetFooter
Changes the footer of the window.
| Arg Idx | Argument Description | Type | Default |
|---|---|---|---|
| 1 | The new footer of the window | string | nil |
SetBackgroundImage
Changes the background image of the window. (Only works if BackgroundImage was set in the constructor)
| Arg Idx | Argument Description | Type | Default |
|---|---|---|---|
| 1 | The new background image of the window | string/ID | nil |
SetCornerRadius
Changes the corner radius for elements.
| Arg Idx | Argument Description | Type | Default |
|---|---|---|---|
| 1 | The new corner radius | number | nil |
Toggle
Toggles the visibility of the window.
Sidebar Layout & Resizing
Obsidian can expose a draggable handle that lets players resize the sidebar at runtime. Enable it and tweak the behaviour directly from your window configuration:
Sidebar Methods
All window instances expose helpers for responding to layout changes or driving your own resizing logic.
GetSidebarWidth
Returns the current sidebar width in pixels.
IsSidebarCompacted
Checks if the sidebar is currently in compact (icon-only) mode.
SetSidebarWidth
Programmatically resize the sidebar. Values outside the configured bounds are clamped automatically.
| Arg Idx | Argument Description | Type | Default |
|---|---|---|---|
| 1 | Desired sidebar width in pixels | number | Width |
SetCompact
Toggle compact mode explicitly. Pass true to force compact, or false to restore the last expanded width.
| Arg Idx | Argument Description | Type | Default |
|---|---|---|---|
| 1 | Whether the sidebar should stay compacted | boolean | — |
ApplyLayout
Re-apply all sidebar measurements.