I'm reading an object to populate my grid. Previously, the grid was populated by an array of arrays. When switching to an object, I've lost the add and remove column funcitonality, even though it is there in my handontable initialiser.
Is this expected behaviour?
Added "allowInsertColumn" to the setup too, that didn't work.
I get this functionality from the contextmenu setup as per below;
contextMenu: {
items: {
row_above: {name: 'add step above'},
row_below: {name: 'add step below'},
col_right: {name: 'add datagroup right'},
col_left: {name: 'add datagroup left'},
remove_row: {name: 'remove step '},
remove_col: {name: 'remove datagroup'}
}
},
Handsontable's 'add column on left/right' option works by executing the
alter()method. In the documentation it is said thatSo if you want to allow users to add column you'd need to run
updateSettings()on thecolumns.Here's a simplest form of it (surely you'd want something more than an empty object to be added)