UNPKG

marko-widgets

Version:

Module to support binding of behavior to rendered UI components rendered on the server or client

18 lines (14 loc) 314 B
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;