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