angular / angular/components

[Table] Feature Request: Make it easier to provide custom data filters to MatTableDataSource

Aperta
#13,465 4 commenti 3 reazioni 0 assegnatari Vedi su GitHub
area: material/table feature P4
Lingua principale
TypeScript
Stelle
25k
Fork
6.8k
Merge medio
1g 8h
PR unite (30g)
91

Descrizione

#### Bug, feature request, or proposal:

Feature Request

#### What is the expected behavior?

I'd like to be able to provide custom data filters.

#### What is the current behavior?

I can only affect how the free text search is executed

#### What are the steps to reproduce?

#### What is the use-case or motivation for changing an existing behavior?

I have a select box, name "Category" that contains a list of categories. User can select one category from this list. The table should filter to show only items in that category.

I also have free form text search and the user may or may not enter something there. (If the free text is empty, the datasource currently does no filtering.)

#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?

All

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

Thank you for the awesome framework!

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia individuando l’implementazione di MatTableDataSource e il comportamento esistente del filtro di testo libero. Determina come potrebbe essere fornito un filtro per categoria insieme a una ricerca testuale facoltativa, quindi verifica che la tabella possa filtrare in base alla categoria selezionata senza alterare il comportamento con testo vuoto.

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

Valutazione

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

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.