SMART datagrid v.1 > Classes > EditOptions
如果为true,用户就可以通过输入Ctrl+Z、Ctrl+Y键,运行撤销、重做。
即使undoable或undoable为true,如果这个属性为false,用户就无法运行撤销、重做。 也可以使用无关UI的、数据组的撤消功能。
默认值为true.
grid.setOptions({
edit: {
undoable: true
}
});
grid.setEditOptions({
undoable: true
});
grid.editOptions().setUndoable(true);