Setting column width in Shiny app table

Hi, I'm grooming a table for publication of a searchable database. However some columns need to be significantly wider and the following code is not making any difference. Can you think why and what I could do to increase these 2 fields (Summary and Title)?

Also: fixedHeader = TRUE
and
scrollX = TRUE
are not working.
Thank you!
... # Render DataTable
output$vidTable <- renderDT({
datatable(filteredData(),
options = list(
pageLength = 10,
fixedHeader = TRUE,
scrollX = TRUE,
columnDefs = list(
list(width = '400px', targets = which(names(filteredData()) == "Summary")),
list(width = '250px', targets = which(names(filteredData()) == "Title"))

try with options autoWidth= TRUE

Didn't work, thanks though

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.