lightning:tabCreated
Indicates that a tab has been created successfully.
| Name | Type | Description |
|---|---|---|
tabId | string | The ID of the new tab. |
This example prints a line to the browser’s developer console when a tab is created, and sets the label of the tab to “New Tab” using the setTabLabel() method.
Component code:
Controller code: