[Sort] Implement API to clear sort
- Vorherrschende Sprache
- TypeScript
- Sterne
- 25k
- Forks
- 6.8k
- Ø Merge
- 1 T. 8 Std.
- Gemergte PRs (30 T.)
- 91
Beschreibung
#### 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?
Beitragsleitfaden
Rechercherichtung
Beginne am Einstiegspunkt für die Sortierung von mat-table und verfolge, wie der vom Benutzer ausgewählte Sortierstatus beibehalten wird. Definiere die API zum Aufheben der Sortierung entsprechend dem angeforderten Zurücksetzverhalten und überprüfe anschließend, dass eine Tabelle in ihren unsortierten Zustand zurückkehren kann, ohne wiederholte Klicks auf die Kopfzeilen zu erfordern.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- angular, typescript
- Bereich
- frontend
- Issue-Typ
- Feature
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 38/100