[英]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.