【发布时间】:2017-04-29 12:06:56
【问题描述】:
我想将深色主题应用于闪亮的应用程序:
library(shinythemes)
shinyUI(fluidPage(
theme = shinytheme("cyborg"),
...)
但 DT 数据表不遵循主题颜色。
我怎样才能让它变暗?
非常感谢。
【问题讨论】:
-
我认为您应该将 DT 切换为引导样式,以便将 css 也应用于表格。在您的 DT 通话中使用
style = 'bootstrap'。 -
好的,谢谢,现在我明白了。下载 bootstrap.css 并将其复制到该目录,并使用 style = 'bootstrap' 调用 DT。谢谢
-
只需在datable调用中将样式设置为bootstrap,其余的都已经存在了。