[Sort] Implement API to clear sort
- 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:
I would like to know if there is a provision available to clear the sorting set by user on a mat-table column dynamically.
#### What is the expected behavior?
Provision to clear sort order set by user on mat-table
#### What is the current behavior?
Once user applies sort on a particular column, it is maintained permanently.
#### What are the steps to reproduce?
Click on one column header of a mat-table with sorting implemented. The table will be sorted based on the column data. Now if we need to reset the sorting, we need to click on the same column header 2 more times.
#### What is the use-case or motivation for changing an existing behavior?
Our requirement is to reset the user selected sort order on every reload.
#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular CLI: 1.7.3
Node: 8.9.4
OS: win32 x64
Angular: 5.2.9
#### Is there anything else we should know?
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu từ điểm vào sắp xếp của mat-table và theo dõi cách duy trì trạng thái sắp xếp do người dùng chọn. Xác định API clear-sorting theo hành vi đặt lại được yêu cầu, sau đó xác minh rằng một bảng có thể trở về trạng thái chưa sắp xếp mà không cần nhấp lặp lại vào các tiêu đề.
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ó
- 3/5
- Thời gian dự kiến
- 1-2 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
- 38/100