Newer Version Available
getAllTabInfo() for Lightning Experience
Returns information about all open tabs.
Arguments
| Name | Type | Description |
|---|---|---|
| callback | function | JavaScript method called upon completion of the method. Returns a tabInfo object containing information about all currently open workspace tabs and subtabs. |
Sample Code
This component has a button that, gets the info of all open tabs and prints the resulting tabInfo object to the developer console.
Component code: