Shrink DT::dataTableOutput Size

后端 未结 2 1266
南方客
南方客 2020-12-06 00:35

I have a shiny interface, and I use DT::dataTableOutput and DT::renderDataTable a lot. However, I wonder if there\'s a way to shrink the datatable\

相关标签:
2条回答
  • 2020-12-06 01:22
    div(DT::dataTableOutput("table"), style = "font-size:50%")
    

    for the smaller font(in UI)

    0 讨论(0)
  • 2020-12-06 01:26

    Try adding width: 75% to your style parameter of the div:

    div(DT::dataTableOutput("table"), style = "font-size: 75%; width: 75%")
    
    0 讨论(0)
提交回复
热议问题