feat(Tabs): Extend Tabs customization in the mat-tab-header
- 主要语言
- TypeScript
- 星标
- 25k
- 派生
- 6.8k
- 平均合并
- 1 天 8 小时
- 30 天内合并 PR
- 91
描述
### Feature Description
Currently, the mat tab component does not have any way to customize the contents of the `mat-tab-header` except for `mat-tab`. And there is no way to add a custom ng-content since mat-tab-header is not accessible like mat-tab-group or mat-tab.
I would like to customize mat-tab-header (which is only a viewable element in devtools and not accessible to the developer) so that I can extend the ui to look like a firefox or chrome browser tab area.

As you can see in the tab area of a browser, there is obviously tabs but also buttons at the sides. For example, for chrome, there is tabs sections, the plus button, and then outside of the tabs section the dropdown menu and the minimize/max and close buttons.
Another example is https://www.telerik.com/products/winforms/tabbedform.aspx under the Overview section or https://docs.devexpress.com/WindowsForms/115183/controls-and-libraries/forms-and-user-controls/tabbed-form
Currently the tab component looks like the top section of the below picture:

I'd like to be able to put components like buttons or dropdown menu in the tab component but outside of the pagination buttons (as shown in the bottom section of the above picture)
### Use Case
Case: I would like to be able to add a button to view all the tabs in a vertical scroll down style like chrome's dropdown menu button beside the minimize button on the right. Maybe expand it even more by adding other buttons to close all tabs or other functionalities. (basically make it look like the pictures/links mentioned under the 'feature description section of this feature request.)
Currently, the workaround would be to add dropdown menu as a tab item. this is not preferred as when there is paging, that dropdown menu tab item will move as well. And it will behave like a tab item instead of a button.
In addition, the dropdown button in the tab item will also be between the two pagination buttons when it should not as the dropdown button should be stationary independent from the tab section+paging.
贡献指南
调研方向
首先阅读现有的 mat-tab-header、mat-tab 和 mat-tab-group 组件,以了解 header 和 pagination 是如何组合的。确定一个 API,用于将自定义按钮或其他内容放置在分页 tab 项之外,然后验证在 tab 翻页时添加的内容仍保持固定,并且所请求的浏览器样式控件可以放置在那里。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- angular, typescript
- 领域
- frontend
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100