free table column editor

This commit is contained in:
Jan Prochazka
2020-10-26 18:47:02 +01:00
parent c80510c37b
commit 6e4a53a2ab
5 changed files with 167 additions and 4 deletions

View File

@@ -22,4 +22,16 @@ export default class FreeTableGrider extends Grider {
static factoryDeps({ modelState, dispatchModel }) {
return [modelState, dispatchModel];
}
undo() {
this.dispatchModel({ type: 'undo' });
}
redo() {
this.dispatchModel({ type: 'redo' });
}
get canUndo() {
return this.modelState.canUndo;
}
get canRedo() {
return this.modelState.canRedo;
}
}