Late to the party, but just had the same question.
From the documentation (v4.9):
var table = new Tabulator("#example-table", {
columnMaxWidth:300, //maximum column width of 300px
columns:[
{title:"name", field:"name", maxWidth:false} //remove max width on this column
]
});
If you use autoColumns
(which automatically adds columns from data field names) you need to use autoColumnsDefinitions
(insted of columns
).
var table = new Tabulator("#example-table", {
columnMaxWidth: 300, //maximum column width of 300px
autoColumns: true, //create columns from data field names,
autoColumnsDefinitions: [
{ field: "Foo", maxWidth: false }, //don't limit width of Foo column
{ field: "Bar", maxWidth: false }
],
});
read more