angular / angular/components

feat(MatPaginator): Allow custom content in paginator

Đang mở
#22,611 4 bình luận 5 reaction 0 người được giao Xem trên GitHub
area: material/paginator feature 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ả

Hey there,

#### Feature Description

Add a ng-content tag in the left part of the paginator for custom content. Users could then add additional information like this:

```

Stuff displayed on the left side!

```

#### Use Case

The paginator, depending on the use case, can get quite wide. All controls are aligned to the right side. On the left side, there is a lot of space, which might be used for other information. E.g, imagine a table that lets the user select rows. In the bottom left, one could show the number of selected items - something like this:

![image](https://user-images.githubusercontent.com/39462297/116786103-49392000-aa9d-11eb-9299-10946dc9fdcf.png)

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ại điểm vào của component MatPaginator và kiểm tra cách template của nó bố trí các phần bên trái và bên phải. Thêm hỗ trợ cho nội dung tùy chỉnh được projection ở bên trái, sử dụng ví dụ trong issue làm mục tiêu sử dụng, và xác minh rằng các control paginator hiện có vẫn tiếp tục được căn chỉnh ở bên phả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ó
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

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.