【问题标题】:how to use scrollx in shiny DT (renderDataTable)如何在闪亮的 DT (renderDataTable) 中使用 scrollx
【发布时间】:2017-05-05 05:51:24
【问题描述】:

我想在闪亮的 DataTable 中使用 scrollx 选项,因为有很多字段。
(参考:https://datatables.net/examples/basic_init/scroll_x.html

我该如何使用?我找不到任何例子。

【问题讨论】:

    标签: datatable shiny shiny-server dt


    【解决方案1】:

    我找到了!在mainPanel unable work in Shiny Dashboard

    只需添加如下选项列表

    output$actCam <- renderDataTable({
            datatable(summaryDay[campaignid %in% act_idx,], 
                      options = list(scrollX=TRUE, scrollCollapse=TRUE))
        })
    

    【讨论】:

      猜你喜欢
      • 2020-09-18
      • 2016-01-02
      • 1970-01-01
      • 2017-05-25
      • 2018-05-02
      • 2019-12-19
      • 2021-11-21
      • 2019-05-03
      • 2014-07-06
      相关资源
      最近更新 更多