[Tabset] NbTabset event should return a tab identifier
- 主要语言
- TypeScript
- 星标
- 8.1k
- 派生
- 1.5k
- PR 合并指标
- 30 天内没有已合并 PR
描述
### 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"
```
贡献指南
评估
这个 Issue 还没有评估数据。