Skip to content

@jsvision/ui / TabViewOptions

Interface: TabViewOptions ​

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

Constructor options for TabView.

Properties ​

active ​

readonly active: Signal<number>

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

Caller-owned active-index signal; clamped to the tab count at render time.


onChange? ​

readonly optional onChange?: (index) => void

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

Fired when the effective active index changes.

Parameters ​

index ​

number

Returns ​

void


onClose? ​

readonly optional onClose?: (tab, index) => void

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

Fired after a tab is removed via its × close mark.

Parameters ​

tab ​

Tab

index ​

number

Returns ​

void


tabs ​

readonly tabs: Signal<Tab[]>

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

Caller-owned reactive tab list.