tabulator-tables
Version:
Interactive table generation JavaScript library
10 lines (9 loc) • 326 B
JavaScript
//resize columns to fit data they contain
export default function(columns, forced){
if(forced){
this.table.columnManager.renderer.reinitializeColumnWidths(columns);
}
if(this.table.options.responsiveLayout && this.table.modExists("responsiveLayout", true)){
this.table.modules.responsiveLayout.update();
}
}