Closed benjamin-mueller closed 6 years ago
Hi,
I think that both methods are wrongly defined .. shouldn't they be
setContextMenu(menu: string, callback: (clikedMenuId: string) => void): void; setContextMenuByJSON(menu: string, callback: (clikedMenuId: string) => void): void;
setContextMenu(menu: string, callback: (clikedMenuId: string) => void): void;
setContextMenuByJSON(menu: string, callback: (clikedMenuId: string) => void): void;
instead of
setContextMenu(menu: string, callback: (clikedMenuId: string) => {}): void; setContextMenuByJSON(menu: string, callback: (clikedMenuId: string) => {}): void; ?
setContextMenu(menu: string, callback: (clikedMenuId: string) => {}): void;
setContextMenuByJSON(menu: string, callback: (clikedMenuId: string) => {}): void;
After changing that, it worked within a angular.io driven panel ;)
Regards
Benny
What is exactly returned by the callback you are defining? Because I don't see why you could have a problem with this definition? "Strict mode"?
Closing this, because of no activity.
Hi,
I think that both methods are wrongly defined .. shouldn't they be
setContextMenu(menu: string, callback: (clikedMenuId: string) => void): void;
setContextMenuByJSON(menu: string, callback: (clikedMenuId: string) => void): void;
instead of
setContextMenu(menu: string, callback: (clikedMenuId: string) => {}): void;
setContextMenuByJSON(menu: string, callback: (clikedMenuId: string) => {}): void;
?After changing that, it worked within a angular.io driven panel ;)
Regards
Benny