简体   繁体   中英

How to add arrow icons to expand and collapse any row in Angular Mat-Table with Expandable Rows?

I have created a mat-table with expandable rows just like this one in Angular 8:

https://stackblitz.com/angular/pmagobelkkg?file=app%2Ftable-expandable-rows-example.ts

However, as in the example above, the row will only expand when I click somewhere within that row. Is there any way to add up and down arrow icons to each row, so that ONLY when I click on the icon in each row, the row will expand?

Thank you very much!

Here's the solution of your stackblitz. Forked stackblitz

Hope it helps!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM