fires when undo/redo operations are performed
| action | string|object | the name of the action that is undone or redone |
| row | number|object | the row id |
| column | number|object | the column id |
| value | any | the value to restore |
| dir | boolean | false - undo, true - redo |
| extra | object | any additional info |
webix.ui({
view:"spreadsheet",
toolbar:"full",
data:spreadsheet_data,
on:{
onUndo(action, row, column, value, dir, extra){
if(action == "paste"){
// do something
} else if(action == "grid-change"){ // add or remove row/col
// do something
}
},
}
});
For hiding and showing rows or columns, the parameters have the following values:
The value parameter contains the previous value for undo and the new value for redo.
Back to top