Reduce Font Size of datatable in a Flexdashboard

最后都变了- 提交于 2020-01-25 23:39:09

问题


I'm working on a shiny flexdashboard, and one of the elements is a datatable with a lot of columns. Currently the columns are so many that they exceed the width of the app.

Instead of adding a scroll bar I would prefer to simply reduce the font used in datatable so that each column will be smaller.

Is this possible?


回答1:


Found the answer.

Needed to wrap renderDataTable in a div.

div(renderDataTable(table()),style = "font-size:80%)


来源:https://stackoverflow.com/questions/46534677/reduce-font-size-of-datatable-in-a-flexdashboard

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