Newer Version Available

This content describes an older version of this product. View Latest

lightning:tabCreated

Indicates that a tab has been created successfully.

Response

Name Type Description
tabId string The ID of the new tab.

Example

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: