angular / angular/components

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

Ouverte
#13,465 4 commentaires 3 réactions 0 personnes assignées Voir sur GitHub
area: material/table feature P4
Langage dominant
TypeScript
Étoiles
25k
Forks
6.8k
Merge moyen
1 j 8 h
PR mergées (30 j)
91

Description

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

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Commencez par localiser l’implémentation de MatTableDataSource et son comportement existant de filtrage en texte libre. Déterminez comment un filtre de catégorie pourrait être fourni en complément d’une recherche textuelle facultative, puis vérifiez que le tableau peut filtrer selon la catégorie sélectionnée sans perturber le comportement lorsque le texte est vide.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
angular, typescript
Domaine
frontend
Type d'issue
Fonctionnalité
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.