0

I want use scrollx options in shiny DataTable since there are many field.
(refer : https://datatables.net/examples/basic_init/scroll_x.html)

How can i use? I cant'n find any examples.

Rokmc1050
  • 463
  • 1
  • 6
  • 16

1 Answers1

0

I found! in mainPanel unable work in Shiny Dashboard

Just add options list like bellow

output$actCam <- renderDataTable({
        datatable(summaryDay[campaignid %in% act_idx,], 
                  options = list(scrollX=TRUE, scrollCollapse=TRUE))
    })
Community
  • 1
  • 1
Rokmc1050
  • 463
  • 1
  • 6
  • 16