angular / angular/components

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

Abierto
#13,465 4 comentarios 3 reacciones 0 asignados Ver en GitHub
area: material/table feature P4
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:

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!

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Empieza por localizar la implementación de MatTableDataSource y su comportamiento existente de filtrado de texto libre. Determina cómo podría proporcionarse un filtro de categoría junto con una búsqueda de texto opcional y, a continuación, verifica que la tabla pueda filtrar por la categoría seleccionada sin alterar el comportamiento cuando el texto está vacío.

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
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.