close

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

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

Parameters

tab

The tab to close.

preserveFocus

When true focus will remain in its current position. If false it will jump to the next tab.


abstract fun close(tabGroup: ReadonlyArray<TabGroup>, preserveFocus: Boolean = definedExternally): PromiseLike<JsBoolean>(source)

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

Parameters

tabGroup

The tab group to close.

preserveFocus

When true focus will remain in its current position.