Hello,
I’m triying to use the UndoRedo plugin with the angular wrapper.
In addition to Undo Redo action in the context menu I want 2 buttons in a toolbar that can perform these actions.
I try to implement these action like the following way: ( like every other plugin action)
hotSettings?: Handsontable.GridSettings = {
...
undo: true,
...
};
let hotInstance = this.hotRegisterer.getInstance(this.hotTableId);
let undoPlugin = hotInstance.getPlugin("UndoRedo");
undoPlugin.undo();
My IDE and on compilation I get the error:
Argument of type ‘“UndoRedo”’ is not assignable to parameter of type ‘“mergeCells” | “hiddenColumns” | “autoColumnSize” | “autofill” | “autoRowSize” | “basePlugin” | “bindRowsWithHeaders” | “collapsibleColumns” | “columnSorting” | “columnSummary” | … 24 more … | “trimRows”’.ts(
Would you explain me what I’m doing wrong to have this plugin works ?
My environment :
Angular 8.2.10
@handsontable/angular:5.1.0
handsontable: 7.2.1