Newer Version Available
getTabInfo() for Lightning Experience
Returns information about the specified tab. This method works only in
Lightning console apps.
Arguments
| Name | Type | Description |
|---|---|---|
| tabId | string | ID of the tab for which to retrieve the information. |
Sample Code
This component has a button that, when pressed, opens a tab and uses the getTabInfo() method to print the new tab’s tabInfo to the developer console.
Component code:
Controller code:
Response
This method returns a promise that, upon success, resolves to a
tabInfo object representing the specified tab.
A
tabInfo object is a JSON array of
information about a workspace tab, with nested arrays of information on each subtab.
This is the structure of a tabInfo
object.