[Table] Multiple footers/headers with different data
- Ngôn ngữ chính
- TypeScript
- Star
- 25k
- Fork
- 6.8k
- Merge trung bình
- 1 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 91
Mô tả
#### Bug, feature request, or proposal:
Feature Request
#### What is the expected behavior?
To be able to make a second footer/header in which I can use the same columns but different data for the cells then the other footer/header
#### What is the current behavior?
Currently you can have multiple mat-footer-rows on a table but it has to have matColumnDefs for each one. IE let's say I have a second footer row that I want to go into the same columns that are setup but with different data. The only way I can see to do this is to make a new array of columns, send that into that footerDef and make the matColumnDefs for those.
#### What are the steps to reproduce?
https://stackblitz.com/edit/angular-tcdbaj
#### What is the use-case or motivation for changing an existing behavior?
The use case is to have multiple footers or headers that have different data, about that column
#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 6.0.9, Newest Material, etc
#### Is there anything else we should know?
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện hành vi trong ví dụ StackBlitz được liên kết và đọc các định nghĩa header và footer của bảng Angular Material có liên quan. Công việc được xem là hoàn tất khi nhiều hàng header hoặc footer có thể sử dụng lại cùng các cột trong khi cung cấp dữ liệu ô khác nhau, và ví dụ hiện có thể hiện hành vi này.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- angular, typescript
- Lĩnh vực
- frontend
- Loại issue
- Tính năng
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100