ymenu
Version:
Simple menu library for **Node.JS**.
19 lines (16 loc) • 475 B
JavaScript
const yMenu = require('../src/yMenu');
const yMenuButton = class yMenuButton extends yMenu
{
constructor(elements, functions) {
super(elements);
this.functions = functions;
}
executeFunction(args){
this.functions[this._currentPosition](args);
}
executeReturnFunction(args){
var returnValue = this.functions[this._currentPosition](args);
return returnValue;
}
}
module.exports = yMenuButton;