减少Flexdashboard中数据表的字体大小 [英] Reduce Font Size of datatable in a Flexdashboard

查看:112
本文介绍了减少Flexdashboard中数据表的字体大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个闪亮的Flexdashboard,其中一个元素是具有很多列的数据表。当前,列太多了,以至于超出了应用程序的宽度。

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.

这可能吗?

推荐答案

找到了答案。

需要将renderDataTable包装在div中。

Needed to wrap renderDataTable in a div.

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

这篇关于减少Flexdashboard中数据表的字体大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆