getAllTabInfo() for Lightning Experience
Returns information about all open tabs. This method works only in Lightning console apps.
None.
This component has a function that returns the information on all tabs.
For another example that uses getAllTabInfo(), see focusTab().
To make your component available for use in a Lightning console app, specify the lightning__AppPage target in the component’s configuration file.
This component has a button that, when pressed, gets the info of all open tabs and prints the resulting tabInfo object.
Component code:
Controller code:
This method returns a promise that, upon success, resolves to an array of tabInfo objects. 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.