Skip to content

@jsvision/ui / Tab

Interface: Tab

Defined in: ui/src/tabs/tab-view.ts:36

A single tab descriptor. title carries optional ~X~ hotkey markup (e.g. '~G~eneral' marks Alt+G).

Properties

closeable?

readonly optional closeable?: boolean

Defined in: ui/src/tabs/tab-view.ts:44

When true, the label draws a ×; clicking it removes the tab and fires onClose.


content

readonly content: Group

Defined in: ui/src/tabs/tab-view.ts:40

The page shown when this tab is active. Built up-front and kept mounted while other tabs show.


disabled?

readonly optional disabled?: boolean

Defined in: ui/src/tabs/tab-view.ts:42

When true, the tab is drawn greyed, cannot be activated, and is skipped by cycling/hotkeys.


title

readonly title: string

Defined in: ui/src/tabs/tab-view.ts:38

Tab label; wrap the hotkey letter in tildes (~X~) to mark the Alt-hotkey. Sanitized on draw.