1

I have a angular material table with check box row. Material Table Based on check and unchecked i want to manipulate other field from selected checkbox row value.

1
  • have you checked this answer ? Commented May 9, 2019 at 8:46

1 Answer 1

2

What you can do is use the "selection" method. Using your selection model, you can then list your selected rows. in your .ts file:

selection = new SelectionModel<Your_data_model>(true, []);

then with a click button or a method of your choosing, you can display or iterated through the selected records using:

this.selection.selected

You can view the selection in your browser console:

console.log(this.selection.selected);

Hope this helps.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.