[Table] Feature Request: Make it easier to provide custom data filters to MatTableDataSource
- 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?
I'd like to be able to provide custom data filters.
#### What is the current behavior?
I can only affect how the free text search is executed
#### What are the steps to reproduce?
#### What is the use-case or motivation for changing an existing behavior?
I have a select box, name "Category" that contains a list of categories. User can select one category from this list. The table should filter to show only items in that category.
I also have free form text search and the user may or may not enter something there. (If the free text is empty, the datasource currently does no filtering.)
#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
All
#### Is there anything else we should know?
Thank you for the awesome framework!
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng cách xác định phần triển khai của MatTableDataSource và hành vi lọc văn bản tự do hiện có của nó. Xác định cách có thể cung cấp bộ lọc danh mục cùng với chức năng tìm kiếm văn bản tùy chọn, sau đó xác minh rằng bảng có thể lọc theo danh mục đã chọn mà không làm thay đổi hành vi khi văn bản trống.
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