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

Offen
#34,022 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
54/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
angular, typescript
Bereich
frontend

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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

Vorherrschende Sprache
TypeScript
Sterne
25k
Forks
6.9k
Ø Merge
2 T. 7 Std.
Gemergte PRs (30 T.)
83

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus angular/components

Alle Issues in angular/components

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.