R Shiny set DataTable column width

前端 未结 2 642
攒了一身酷
攒了一身酷 2020-11-30 04:51

I am trying to set the width of columns in a DataTable rendered in Shiny and am not able to implement it using the aoColumnDefs options. Has anyone tried this before ? My ta

2条回答
  •  攒了一身酷
    2020-11-30 04:55

    By the way, in case you're like me and never used DataTables before version 1.10 came out -- The examples above confused me at first, because they use the notation that was used in version 1.9 but 1.10 introduces new notation: http://datatables.net/upgrade/1.10-convert

    I've been using the new syntax, i.e.,

    columnDefs instead of aoColumnDefs http://datatables.net/reference/option/columnDefs

    width instead of sWidth http://datatables.net/reference/option/columns.width etc.

提交回复
热议问题