rename menu to menuentry
This commit is contained in:
parent
ce906d42e9
commit
8627a572a4
1 changed files with 0 additions and 0 deletions
|
@ -1,24 +0,0 @@
|
|||
import Menu from '/scripts/GUI/menus.js';
|
||||
import texts from "/scripts/mapping/read.js";
|
||||
|
||||
export default class MenuEntry {
|
||||
/* Create all entries. */
|
||||
constructor() {
|
||||
// Add the context menu.
|
||||
this.menu = new Menu({title: (new texts(`entry_contextMenu`)).localized, contexts: [`all`], events: {"onClicked": this.onclick}, hidden: true});
|
||||
};
|
||||
|
||||
/*
|
||||
Enable the sidebar.
|
||||
*/
|
||||
enable () {
|
||||
this.menu.show();
|
||||
}
|
||||
|
||||
/*
|
||||
Disable.
|
||||
*/
|
||||
disable () {
|
||||
this.menu.remove();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue