Mat-Table : Scroll a row into view in angular 2

久未见 提交于 2020-04-13 18:11:31

问题


Is it possible to scroll a specific data row into view when using the angular material mat-table cdk-table?

I'm trying to implement keyboard scrolling with no luck.


回答1:


I've it working now. Not perfect but it works.

See the example on stack blitz mentioned in my earlier message.

https://stackblitz.com/edit/mensand-rowselect?file=app%2Ftable-basic-example.html



来源:https://stackoverflow.com/questions/49697459/mat-table-scroll-a-row-into-view-in-angular-2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!