jeudi 4 novembre 2021

How can I deselect 2 checkboxes if they don't have one same parameter in common? (Angular Material)

I have multiple rows in a table with data pulled from a DB. The rows are created depending on the number of data you bring in from the DB. Once the data is in the table, I must select which data I want to pass to another table in another mat-card. But I must have a condition that I can select multiple checkboxes as long as they have 1 column in common. If that column doesn't match, and they are selected, an error should appear where it says that that parameter of that column does not match and it should automatically remove the selection that was made. I would greatly appreciate if your help me with this condition. Thanks!




Aucun commentaire:

Enregistrer un commentaire