we want to bind a custom context menu with Grid. We are using Angular Wrapper with HandsonPro 1.14.0 with wrapper 1.0.0.beta2. I had gone through the blog below as well,
https://handsontable.com/blog/articles/customize-handsontable-context-menu
Tried the option as below, I could see the menu, but it is not functional:
@Input() contextMenu: any= {
items: [{
key: "delete",
name: 'Remove Table',
callback: function(key, options){console.log("remove table");this.onRemoveGrid.emit(true);}
}]
};
Wanna to fire this this.onRemoveGrid.emit(true) on clicking the option “Remove Table”.
What is the right way to do this?