akveo / akveo/nebular

[Tabset] NbTabset event should return a tab identifier

未关闭
#694 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
enhancement module:theme P3: minor
主要语言
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 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。