繁体   English   中英

有没有办法用Shiny更新的DT :: renderDataTable和DT :: dataTableOutput按列搜索?

[英]Is there a way to search by column with Shiny's updated DT::renderDataTable and DT::dataTableOutput?

Shiny似乎改变了数据表的实现。 这是什么原因?

除非我遗漏了某些东西,否则新默认值似乎是向后退一步。 首先,他们缺少表格底部的特定于列的搜索框。 有没有办法取代这个功能?

它当然仍然存在,它似乎不再是默认值。

library(shiny)
runApp(shinyApp(
  ui = fluidPage(
    DT::dataTableOutput("table")
  ),
  server = function(input, output, session) {
    output$table <- DT::renderDataTable(cars, filter = "top")
  }
))

我刚刚访问了https://rstudio.github.io/DT/上的数据表网站文档,并在首页上说明了如何使用filter参数

确保您使用的是最新版本的闪亮和DT(使用GitHub版本,因为在过去的两周内完成了大量工作)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM