AddTab
Description
Creates a new tab and adds it to the collection of tabs.
Syntax
// shellPaneContainer points to instance of IShellPaneContainer
const result = await shellPaneContainer.AddTab(
TabId,
tabTitle,
insertBeforeTabId,
icon,
);
Parameters
Name | Type | Description |
---|---|---|
TabId | string | The id of the new tab. |
tabTitle | string | The title of the new tab. |
insertBeforeTabId | string | The id of the tab before which the new tab should be inserted. |
icon | string | Header tab image name. Can refer to built-in tab or another custom-created tab. See Using Tabs in Shell Frame Side Pane Tabs for a list of built-in tab identifiers. |
Return type
Type | Description |
---|---|
Promise < IShellPaneTab > | It returns MFCLIENTSCRIPT~ISHELLPANECONTAINER~ADDTAB. |