This question already has an answer here:
- R Shiny set DataTable column width 2 answers
I am building a Shiny dashboard and one panel on the dashboard is a DataTable.
Below is my code:
output$table = DT::renderDataTable(b1, selection = 'single')
The width of columns in the data table is now adjusted with the width of column name. However, some cell values are text, and those text are squeezed to display in multiple lines as they are longer than the column names.
I am wondering if there is a way to have the column width adjusted to fit the cell values in one line.
Or, is there a way to set a fixed width for the columns and get the full content of cell value by hover over?
Thanks in advance.