[Tabset] NbTabset event should return a tab identifierΒ #694
Description
Issue type
I'm submitting a ...
- bug report
- feature request
Issue description
NbTabsetComponent's onChangeTab event should return a tab identifier
Current behavior:
Currently onChangeTab returns certainly attributes about Tabs components, but it would be nice if it can return an identifier of the changed tab as:
<nb-tab tabId="1">
So you can define a number, string, constant or whatever for identifying that tab, and do something different on the parent depending on the tab clicked.
Expected behavior:
NbTabComponent should has a number, string, constant or whatever for identifying that tab, and do something different on the parent depending on the tab clicked.
Steps to reproduce:
Pass an NbTabsetComponent's onChangeTab event and on the return $event it should have an "tabId" or an identifier of this tab.
Other information:
Angular, Nebular
"@angular": "6.1.0"
"@nebular/theme": "2.0.0-rc.9"