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

Abierto
#34,022 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
54/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
angular, typescript
Área
frontend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
TypeScript
Estrellas
25k
Forks
6.9k
Merge medio
2 d 7 h
PR fusionados (30 d)
83

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de angular/components

Todos los issues de angular/components

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.