I am having the spitted header angular material table and I was looking for help to add the sticky header.I have tried to using sticky: true but somehow it is not working for my first column (as I am hiding the column.) And for the first rows. It is showing the second row.Below is my tableWhen I go with the dropdown only these headers get sticky behavior than others.Below is my stackblitz.https://stackblitz.com/edit/angular-bklajw-5foa62 解决方案 To make the top header sticky add sticky tag in that as well. It will also fixed first column sticky issue. <tr mat-header-row *matHeaderRowDef="['header-row-first-group','header-row-sec-group','header-row-third-group','header-row-forth-group','header-row-fifth-group'];sticky:true"></tr>Demo 这篇关于Angular Material Table spitted headers 添加了sticky header 功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-25 22:26
查看更多