feat(Paginator): Option to hide the navigation when there is a single page

Đang mở
#34,022 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
54/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
angular, typescript
Lĩnh vực
frontend

Hướng nghiên cứu

Start with the Paginator component and its public API and tests; the issue does not name specific files, so locate them in the repository. Check how navigation visibility relates to the single-page state while preserving the row-count text. Done means an option can hide navigation buttons for a single page without hiding that text, with tests covering the behavior.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

area: material/paginator feature P5
Feature Description

The Paginator shows the navigation buttons even when there is only a single page. They are just disabled. If I want to hide the buttons in that case, I would have to target the internal mat-mdc-paginator-navigation-* classes, which are not public API.

Use Case

Hiding the disabled navigation buttons but keeping the useful text that shows how many rows there are

Ngôn ngữ chính
TypeScript
Star
25k
Fork
6.9k
Merge trung bình
2 ngày 7 giờ
Pull request đã merge (30 ngày)
83

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của angular/components

Tất cả issue của angular/components

Issue tương tự

Thêm issue về TypeScript

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.