Is there a way to get the width of all the columns? I was experimenting with this:
var table = new Tabulator("#example-table", { columnResized:function(column){ var columns = table.getColumns() for (i = 0; i < columns.length; i++) { // columns[i].width isn't valid, is there something else that can be used? } }, }); `
To get the entire column layout, use:
var columns = table.getColumnLayout() for (i = 0; i < columns.length; i++) { columns[i].width = ... // or columns[i]["width"] }
2.1m questions
2.1m answers
60 comments
57.0k users