angular / angular/components

Add 3 state option to multiple select

Đang mở
#11,047 2 bình luận 8 reaction 0 người được giao Xem trên GitHub
area: material/select feature P4
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?
Be able to use `Intermediate` inside `mat-option` like you currently can inside `mat-checkbox`

checkbox with the Intermediate set to true:
![image](https://user-images.githubusercontent.com/20732674/39365105-3477c3c2-49fe-11e8-8224-184864206ef3.png)

multiple select
![image](https://user-images.githubusercontent.com/20732674/39365230-8c06f8a6-49fe-11e8-8525-1a4847fa2297.png)

#### What is the current behavior?
The multiple select can only support 2 states.

#### What is the use-case or motivation for changing an existing behaviour?
I want to provide the use a multi select with options for filtering another check box list. If option one is checked in the multi select all corresponding items from the checkbox list should be checked. If the user then unchecks one of those items the multi select should be updated to the intermediate state.

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

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu từ các điểm vào mat-select và mat-option của Angular Material, sau đó so sánh hành vi hai trạng thái hiện tại của chúng với tùy chọn Intermediate của mat-checkbox được đề cập trong issue. Công việc hoàn tất khi các tùy chọn chọn nhiều hỗ trợ trạng thái Intermediate và trạng thái được cập nhật khi các lựa chọn tương ứng thay đổ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
45/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.