Skip to content

[Table] Multiple parameters filter using a separator (eg : value1+value2) #10756

@WizardPC

Description

@WizardPC

Bug, feature request, or proposal:

Proposal, having a native filter predicate wich work on multiple columns.

What is the expected behavior?

Having the native possibility to use the pattern "filter1+filter2+..." to further reduce the results of the datatable.
new

What is the current behavior?

Using one parameter is okay, but if i want to add another parameter (separated by blank, coma, +...) it doesn't return any lines.
actual

What are the steps to reproduce?

I have made a filterPredicate doing the job :
https://stackblitz.com/edit/sb-issue-multiple-filter

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

Improve user experience.

Is there anything else we should know?

Actually it's possible to acheive this behavior with the filterPredicate, but for me it will be better if the use of + become native to Angular Material, many website as this behavior.

Perhaps it can be another separator too or a parameterisation. What do you think ?

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

See SB.

Metadata

Metadata

Assignees

Labels

P5The team acknowledges the request but does not plan to address it, it remains open for discussionarea: material/tablefeatureThis issue represents a new feature or feature request rather than a bug or bug fix

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions