Variable: WINDOW_CHROME_IDS
const WINDOW_CHROME_IDS: {
close: "uix-close";
content: "uix-content";
dock: "uix-dock";
minimize: "uix-minimize";
pin: "uix-pin";
title: "uix-title";
titlebar: "uix-titlebar";
window: "uix-window";
};
Defined in: chrome/markup.ts:14
Window chrome conventions.
Windows are authored in UIKitML like any other IWSDK panel - the chrome is
plain markup discovered by well-known element ids, not a parallel widget
tree. Copy WINDOW_CHROME_SNIPPET into a .uikitml file and put the
window body inside the uix-content element.
The four title-bar buttons are OFF by default: an adapter hides any button
the window has not enabled (closable, minimizable, pinnable,
dockable at spawn, or WindowManager.setChrome later) and ignores its
clicks. Keep them in the markup so they can be switched on at runtime.
Type Declaration
| Name | Type | Default value | Description | Defined in |
|---|---|---|---|---|
close | "uix-close" | 'uix-close' | Closes (destroys) the window. | chrome/markup.ts:28 |
content | "uix-content" | 'uix-content' | Collapsed while minimized. | chrome/markup.ts:30 |
dock | "uix-dock" | 'uix-dock' | Returns the window to its home (spawn region or original placement). | chrome/markup.ts:24 |
minimize | "uix-minimize" | 'uix-minimize' | Minimize/restore toggle. | chrome/markup.ts:26 |
pin | "uix-pin" | 'uix-pin' | Toggles body-follow ⇄ world-locked; label auto-syncs to PIN/UNPIN. | chrome/markup.ts:22 |
title | "uix-title" | 'uix-title' | Text element receiving UIWindow.title. | chrome/markup.ts:20 |
titlebar | "uix-titlebar" | 'uix-titlebar' | Drag surface; also focuses the window on press. | chrome/markup.ts:18 |
window | "uix-window" | 'uix-window' | Root container of the window. | chrome/markup.ts:16 |