【发布时间】:2017-05-05 05:51:24
【问题描述】:
我想在闪亮的 DataTable 中使用 scrollx 选项,因为有很多字段。
(参考:https://datatables.net/examples/basic_init/scroll_x.html)
我该如何使用?我找不到任何例子。
【问题讨论】:
标签: datatable shiny shiny-server dt
我想在闪亮的 DataTable 中使用 scrollx 选项,因为有很多字段。
(参考:https://datatables.net/examples/basic_init/scroll_x.html)
我该如何使用?我找不到任何例子。
【问题讨论】:
标签: datatable shiny shiny-server dt
我找到了!在mainPanel unable work in Shiny Dashboard
只需添加如下选项列表
output$actCam <- renderDataTable({
datatable(summaryDay[campaignid %in% act_idx,],
options = list(scrollX=TRUE, scrollCollapse=TRUE))
})
【讨论】: