r - 在 renderTable 中自定义标题并使其具有反应性 R Shiny
问题描述
当我使用 paste0() 添加反应值时,它告诉我我正在尝试做一些只能在反应环境中完成的事情。有人可以告诉我如何使标题反应吗?
这段代码在 renderTable 中给出了一个小标题。如何自定义颜色、大小、字体、中心?谢谢!
shinyApp(
ui = fluidPage(
fluidRow(
column(12,
tableOutput('table')
)
)
),
server = function(input, output) {
output$table <- renderTable(iris, striped = TRUE, bordered = TRUE, hover = TRUE, spacing = 'm',
width = '75%', align = 'c', rownames = TRUE, digits = 5,
caption = "Iris",
caption.placement = getOption("xtable.caption.placement", "top"))
}
)
}
解决方案
推荐阅读
- python - DetailView 中的分页 [Django]
- mysql - mysql中的语法错误,使用create函数
- arrays - 仅使用最后一个值循环
- html - html 的 VS 代码问题
- git - 将提交推送到 AWS CodeCommit 的 GitHub 操作:主机密钥验证失败
- c - 为什么我会得到这个异常错误-抛出未处理的异常:写访问冲突。头是 0xFFFFFFFFCBB1E630
- discord.py - Discord.py 静态定时器
- javascript - 解析错误:在反应中添加条件时出现意外标记
- angular - 带有firebase实时数据库的离子无限滚动
- node.js - 默认导入 index.js 文件