@quantlab/handsontable
Version:
Spreadsheet-like data grid editor that provides copy/paste functionality compatible with Excel/Google Docs
19 lines (16 loc) • 343 B
JavaScript
;
exports.__esModule = true;
exports.default = undoItem;
var KEY = exports.KEY = 'undo';
function undoItem() {
return {
key: KEY,
name: 'Undo',
callback: function callback() {
this.undo();
},
disabled: function disabled() {
return this.undoRedo && !this.undoRedo.isUndoAvailable();
}
};
}