lightning:tabReplaced
Indicates that a tab has been replaced successfully.
| Name | Type | Description |
|---|---|---|
tabId | string | The ID of the replaced tab. |
This example prints a line to the browser’s developer console when a tab is replaced, and then returns that tab’s URL using the getTabURL() method.
Component code:
Controller code: