Close menu when clicking on export, dates and canvas
This commit is contained in:
@ -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()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user