Close menu when clicking on export, dates and canvas

This commit is contained in:
l_samenv
2024-08-30 10:36:56 +02:00
parent 07f4e69a94
commit dc241ce246
2 changed files with 11 additions and 3 deletions

View File

@ -1,11 +1,13 @@
class ActionEntry extends HTMLElement{
constructor(title, actionCallback){
constructor(title, actionCallback, hideMenuCallback){
super();
this.title = title;
this.actionCallback = actionCallback;
this.hideMenuCallback = hideMenuCallback;
}
performActionCallback(){
this.hideMenuCallback();
this.actionCallback()
}