Windows Window Controls
Import
Section titled “Import”import { startWindowsWindowControls } from "webotron/plugins/windows-window-controls";Entry Point
Section titled “Entry Point”startWindowsWindowControls(view, options?)
const controls = await startWindowsWindowControls(view, { title: "webotron", showMinimizeButton: true, showMaximizeButton: true,});
await controls.stop();Options
Section titled “Options”| Option | Type | Purpose |
|---|---|---|
title | string | Title text shown in custom controls area. |
handleHeightPx | number | Drag handle height. |
topOffsetPx | number | Top offset for control region. |
showMinimizeButton | boolean | Show/hide minimize control. |
showMaximizeButton | boolean | Show/hide maximize control. |
What It Does
Section titled “What It Does”- Adds minimize and maximize control.
- Supports custom title bar behavior and drag handling.
- Targets Windows-specific scenarios only.