feat(table): add ability to customize the CSS class generation for columns
- 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ả
### Feature Description
Currently, if we have column say, `bankAccount`, the generated class name would be `cdk-column-bankAccount`/`mat-column-bankAccount`, but then when I use this kind of selector in my scss, I get some lint warnings, as we're supposed to use kebab-case, not camelCase... so we have to keep silencing the warnings everytime we have to do this. What we want to propose is to have an option to customize this css class generation (if possibly, globally).
### Use Case
We want to control my table styles without relying on camelCased selectors.
So, instead of this:
https://github.com/angular/components/blob/59002e1649123922df3532f4be78c485a73c5bc1/src/cdk/table/cell.ts#L144
We'd love to have an option to implement my own css class generator.
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng cách đọc mã tạo class được liên kết trong `src/cdk/table/cell.ts` và trường hợp sử dụng của issue. Kết quả được yêu cầu là một tùy chọn, có thể ở phạm vi global, để tùy chỉnh các class CSS cột được tạo; issue không chỉ định API hoặc các test của tùy chọn 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ó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- 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