TabGroups

interface TabGroups(source)

Represents the main editor area which consists of multiple groups which contain tabs.

Online Documentation

Properties

Link copied to clipboard
abstract val activeTabGroup: TabGroup

The currently active group.

Link copied to clipboard
abstract val all: ReadonlyArray<TabGroup>

All the groups within the group container.

Link copied to clipboard

Functions

Link copied to clipboard
abstract fun close(tabGroup: ReadonlyArray<TabGroup>, preserveFocus: Boolean = definedExternally): PromiseLike<JsBoolean>

Closes the tab group. This makes the tab group object invalid and the tab group should no longer be used for further actions.

abstract fun close(tab: ReadonlyArray<Tab>, preserveFocus: Boolean = definedExternally): PromiseLike<JsBoolean>

Closes the tab. This makes the tab object invalid and the tab should no longer be used for further actions. Note: In the case of a dirty tab, a confirmation dialog will be shown which may be cancelled. If cancelled the tab is still valid