mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
18 lines
316 B
JavaScript
18 lines
316 B
JavaScript
function Widget(config) {
|
|
this.label = config.label;
|
|
this.name = 'app-bar';
|
|
|
|
var el = this.el;
|
|
|
|
this.appendHtml = function(html) {
|
|
el.innerHTML += html;
|
|
};
|
|
}
|
|
|
|
Widget.prototype = {
|
|
emitTestEvent: function() {
|
|
this.emit('testEvent', 'a', 'b');
|
|
}
|
|
};
|
|
|
|
exports.Widget = Widget; |