UNPKG

marko-widgets

Version:

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

14 lines (12 loc) 321 B
module.exports = require('marko-widgets').defineComponent({ template: require('./template.marko'), getWidgetConfig: function() { return { name: 'app-foo' }; }, init: function(widgetConfig) { this.widgetConfig = widgetConfig; window.fooWidget = this; } });