angular / angular/components

[Sort] Implement API to clear sort

Abierto
#10,524 12 comentarios 10 reacciones 0 asignados Ver en GitHub
area: material/sort feature P3
Lenguaje dominante
TypeScript
Estrellas
25k
Forks
6.8k
Merge medio
1 d 8 h
PR fusionados (30 d)
91

Descripción

#### Bug, feature request, or proposal:
I would like to know if there is a provision available to clear the sorting set by user on a mat-table column dynamically.

#### What is the expected behavior?
Provision to clear sort order set by user on mat-table

#### What is the current behavior?
Once user applies sort on a particular column, it is maintained permanently.

#### What are the steps to reproduce?
Click on one column header of a mat-table with sorting implemented. The table will be sorted based on the column data. Now if we need to reset the sorting, we need to click on the same column header 2 more times.

#### What is the use-case or motivation for changing an existing behavior?
Our requirement is to reset the user selected sort order on every reload.

#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular CLI: 1.7.3
Node: 8.9.4
OS: win32 x64
Angular: 5.2.9

#### Is there anything else we should know?

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comienza en el punto de entrada de ordenación de mat-table y sigue cómo se mantiene el estado de ordenación seleccionado por el usuario. Define la API de clear-sorting en torno al comportamiento de restablecimiento solicitado y, después, verifica que una tabla pueda volver a su estado sin ordenar sin requerir clics repetidos en los encabezados.

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

Evaluación

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

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.