Is there a maxwidth option for setting datatable columns? I am using the adjust option to adjust the width of my columns to their content, but some of my items are a bit too long and I want to restrict the maximum that my columns adjust to.
Unfortunately, there is no maxWidth options for a column.
Any update on this? We would like to have a combination of adjust:true and maxWidth.
There are still no plans to implement it.
The workaround won't work if the datatable isn't rendered.
The only way to get it working seems to be:
if (column.maxWidth && width > column.maxWidth) width = column.maxWidth; in _setColumnWidth
Any plans to implement it? Because the overwriting won't work in productive environment
if (column.maxWidth && width > column.maxWidth) width = column.maxWidth;
It looks like you're new here. If you want to get involved, click one of these buttons!