I used to collapse the columns by default using this approach: collapseSection
But… If you call updateSettings then you need to call collapseSection again.
If you have to change several times the settings, the performance become very bad.
` afterSelection: function(row1,col1,row2,col2) {
console.log(row1,col1,row2,col2);
var cellMeta = hotRegisterer.getInstance(‘hotAnalysis’).getCellMeta(row2,col2);
if(cellMeta.prop == ‘machineProposal’) {
hotRegisterer.getInstance(‘hotAnalysis’).updateSettings({fillHandle: false});
hotRegisterer.getInstance(‘hotAnalysis’).getPlugin(‘collapsibleColumns’).collapseSection({row: -(vm.tableHeaders.length - 1), col: 1 + fixedColumns.length});
} else {
hotRegisterer.getInstance(‘hotAnalysis’).updateSettings({fillHandle: ‘vertical’});
hotRegisterer.getInstance(‘hotAnalysis’).getPlugin(‘collapsibleColumns’).collapseSection({row: -(vm.tableHeaders.length - 1), col: 1 + fixedColumns.length});
}
}`