fires when undo/redo operations are performed
action | string | the name of the action that is undone or redone |
row | number | row number, range start |
column | number | column number, range end |
value | object | value that is changed |
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 smth
} else if(action == "grid-change"){ //add or remove row/col
//do smth
}
},
}
});
Back to top