Change the year range in a multi-year view in mat-datepicker
- 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**
The possibility to control the year range in a multi-year view in the mat-datepicker in Angular Material 7.
**What is the current behavior?**
Currently the default range of 24 years starts from 2016-2039, and each page backwards offers another 24-year range.
**Use Case**
I need to show a different year range in the multi-year view in the mat-datepicker. I need the possibility to manipulate the year range to be different than the default (which is 2016-2039 in the starting view), e.g. 2010-2033.
This will improve the UX of an application where customers mostly select years beginning from 2010 (customers now need to go to the previous page with a year range from 1992-2015.
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng cách đọc phần triển khai mat-datepicker và phạm vi kiểm thử hiện có của nó để xác định cách chế độ xem nhiều năm chọn phạm vi 24 năm ban đầu. Công việc được xem là hoàn tất khi các bên gọi có thể cấu hình một phạm vi khác và chế độ xem nhiều năm ban đầu phản ánh phạm vi đó, bao gồm ví dụ 2010–2033.
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
- 48/100