mardi 15 janvier 2019

Based on mat-tree checkbox selection , filter table in angular6

I am using this for group checkbox in angular 6. https://stackblitz.com/angular/nkmjydodvnp?file=app%2Ftree-checklist-example.ts

Here suppose i have a json data like this.

     "data": [
          {
            "reminderName": "Cook dinner",
            "status": "some value",
          },
          {
            "reminderName": "Read the Material Design spec",
             "status": "some value1",

          }
]

And i am displaying this data in a table. So here i want is, whenever i will select "Cook dinner", only cook dinner related rows should filter from table. or if i will select both "Cook dinner" and "Read the Material Design spec" , then these two row only should show from table.

Can anyone please help me how to do this.




Aucun commentaire:

Enregistrer un commentaire