@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
Name | Type | Description |
---|---|---|
filePath |
string |
File to open |
selectTab |
boolean |
Whether 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
Name | Type |
---|---|
FileTabClass |
any |
splitScreen |
boolean |
Returns
Promise
<any
>
register
▸ register(FileTabClass
): IDisposable
Register new FileTabs to be picked up by the isTabFor tab system method
Parameters
Name | Type | Description |
---|---|---|
FileTabClass |
any |
FileTab class |