angular / angular/components

feat(date-range-picker): allow disabling one half of the range input

Đang mở
#21,773 2 bình luận 1 reaction 0 người được giao Xem trên GitHub
area: material/datepicker feature G P3
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 user should be able to disable one half of the date range input (either the start or end date) but still allow a user to select a value for the other. Currently the date range picker acts broken if we try to disable one half: https://stackblitz.com/edit/angular-aihygj?file=src/app/date-range-picker-forms-example.html

#### Use Case

This supports use cases where the user needs to select a range, but the start or end date is fixed for some reason, e.g. editing a hotel reservation where its too late to change the check in date.

Hướng dẫn đóng góp

Mở 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, tập trung vào src/app/date-range-picker-forms-example.html và entry point của date-range-picker. Theo dõi việc vô hiệu hóa một trong hai trường nhập ngày ảnh hưởng như thế nào đến việc chọn trường còn lại, sau đó xác minh rằng một ngày bắt đầu hoặc ngày kết thúc cố định vẫn cho phép chọn giá trị còn lại.

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

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.