angular / angular/components

[Sort] Implement API to clear sort

Aperta
#10,524 12 commenti 10 reazioni 0 assegnatari Vedi su GitHub
area: material/sort feature P3
Lingua principale
TypeScript
Stelle
25k
Fork
6.8k
Merge medio
1g 8h
PR unite (30g)
91

Descrizione

#### 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?

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia dal punto di ingresso dell'ordinamento di mat-table e traccia il modo in cui viene mantenuto lo stato di ordinamento selezionato dall'utente. Definisci l'API di clear-sorting in base al comportamento di reimpostazione richiesto, quindi verifica che una tabella possa tornare allo stato non ordinato senza richiedere clic ripetuti sulle intestazioni.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
angular, typescript
Ambito
frontend
Tipo di issue
Funzionalità
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
38/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.