Skip to content
On this page

@bridge/tab

Module that allows access to bridge.'s tab system.

Variables

ContentTab

Const ContentTab: any

link https://github.com/bridge-core/editor/blob/main/src/components/TabSystem/CommonTab.ts


FileTab

Const FileTab: any

link https://github.com/bridge-core/editor/blob/main/src/components/TabSystem/FileTab.ts

Functions

openFilePath

openFilePath(filePath, selectTab): Promise<void>

Given a file path relative to the project root, open the corresponding file inside of bridge.'s tab system

Parameters

NameTypeDescription
filePathstringFile to open
selectTabbooleanWhether to automatically select the tab

Returns

Promise<void>


openTab

openTab(FileTabClass, splitScreen): Promise<any>

Useful for ContentTabs: Programmatically add the tab to the tab system

Parameters

NameType
FileTabClassany
splitScreenboolean

Returns

Promise<any>


register

register(FileTabClass): IDisposable

Register new FileTabs to be picked up by the isTabFor tab system method

Parameters

NameTypeDescription
FileTabClassanyFileTab class

Returns

IDisposable

Released under the GPL-3.0 License.