freeze the header of rpivotTable shiny

旧街凉风 提交于 2019-12-11 15:29:09

问题


In shiny rpivotTable how can I freeze the header?

I know how to add a scroll bar in css to the pivot table, however I don't know how to freeze the header.

#PivotFinal {
  overflow-y: scroll;
}

回答1:


I figured out how to do it, in the .css file I added the below code.

table.pvtTable thead th{
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  z-index: 999;
}


来源:https://stackoverflow.com/questions/54484803/freeze-the-header-of-rpivottable-shiny

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