core-cde
Version:
25 lines • 675 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.BaseWidget = void 0;
const events_1 = require("events");
/**
* Базовый класс виджета
*/
class BaseWidget {
constructor(type, id) {
this.type = type;
this.id = id;
/**
* Событие для отсылки сообщение виджету
*/
this.$eventChangeState = new events_1.EventEmitter();
}
setSelect(val) {
this._selected = val;
}
get isSelect() {
return this._selected;
}
}
exports.BaseWidget = BaseWidget;
//# sourceMappingURL=BaseWidget.js.map