R 以交互方式更改dataTableOutput中的背景颜色(高亮显示)
我有一个闪亮的R软件包的问题,无法在网上找到任何帮助,迄今为止。我正在寻找一种可能性,在一个由ui.R中的dataTableOutput实现的数据表中为背景着色。在server.R中的renderDataTable中是否有任何选项可以设置dataTableOutput中某一行的背景颜色。这应该是反应性的,所以我有索引,引用数据表中某些元素的索引应该是彩色的 服务器.RR 以交互方式更改dataTableOutput中的背景颜色(高亮显示),r,datatable,render,shiny,R,Datatable,Render,Shiny,我有一个闪亮的R软件包的问题,无法在网上找到任何帮助,迄今为止。我正在寻找一种可能性,在一个由ui.R中的dataTableOutput实现的数据表中为背景着色。在server.R中的renderDataTable中是否有任何选项可以设置dataTableOutput中某一行的背景颜色。这应该是反应性的,所以我有索引,引用数据表中某些元素的索引应该是彩色的 服务器.R indices # reactive, let's say 1,5,4,3 and this is referring to t
indices # reactive, let's say 1,5,4,3 and this is referring to the elements cat, mouse, dog, bird
output$datatable <- renderDataTable(expr = datatable, options = list(???)) # the rows with cat, mouse, dog, bird in the column n should be coloured in a different way
这不是一个简单的工作示例
谢谢你的帮助 据我所知,如果您使用默认的shiny软件包附带的datatable函数,那么就没有更改datatable背景色的余地,或者您可以尝试其他一些自定义引导主题,而不是使用默认主题 最后,您还可以尝试rCharts包附带的datatable dTable函数。背景是蓝色和白色的,我想这可能适合你的需要