How to make the mat-table row selected on single or double click.
Dear Angular 4 Material Team,
I have been using Angular 5 and Angular material. Could you please provide me the code how can I change the colour of the mat-table row on single or double click on row .
Regards, Rupesh
Please keep GitHub issues for bug reports / feature requests. Better avenues for troubleshooting / questions are stack overflow, gitter, mailing list, etc. Also duplicate of #8027
Please keep GitHub issues for bug reports / feature requests. Better avenues for troubleshooting / questions are stack overflow, gitter, mailing list, etc.
@damco-rupesh You can directly apply click handlers and class/style bindings on the mat-row.
Here's an example where rows will highlight when clicked: https://stackblitz.com/edit/angular-tt9tdw?file=app/table-basic-example.html
@damco-rupesh You can directly apply click handlers and class/style bindings on the
mat-row.Here's an example where rows will highlight when clicked: https://stackblitz.com/edit/angular-tt9tdw?file=app/table-basic-example.html
Thanks much andrewsguin
Saved my time.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.