[Tabset] NbTabset event should return a tab identifier
- Langage dominant
- TypeScript
- Étoiles
- 8.1k
- Forks
- 1.5k
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
### Issue type
**I'm submitting a ...**
* [ ] bug report
* [x] 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:
``
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"
```
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.