Data Table Cell column widths

Is it possible to change the column width in the data table cell?

Long data values get truncated with an ellipsis. This is OK for a quick look at your data but very annoying if the column contains an ID string that you want to copy and paste somewhere else.

Hi @robinsummerhill ! Thanks for the feedback - this is high on our priority list, so you can look forward to draggable columns in the near future.

Thanks, and glad to see folks using the Data Table Cell!

@robinsummerhill data table columns are now resizable via dragging! This is a transient operation that will be reset when you reload, and is not shared across instances of the notebook. Hope that helps!

Mike

@mkfreeman and is it possible to set it programmatically?

colum1 width = 30%
colum2 width = 20%
colum2 width = 50%

And if I set it, I will have word wrap in the text?

Thank you

@aborruso The answer to both questions is no. If you need more control over columns you will have to use Inputs.table() instead, and either add custom CSS or custom formatters if you want lines to wrap.

Could you indicate me a sample page, in which there is a sample CSS applied by columns to Inputs.table?

Thank you very much

I have created a dedicated new topic How to format inputs.table columns, columns width and word wrap?

1 Like