UNPKG

marko-widgets

Version:

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

13 lines (11 loc) 291 B
module.exports = require('marko-widgets').defineComponent({ template: require('./template.marko'), init: function(widgetConfig) { this.name = widgetConfig.name; }, getWidgetConfig: function(input) { return { name: input.name }; } });