UNPKG

marko-widgets

Version:

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

19 lines (17 loc) 426 B
module.exports = require('marko-widgets').defineComponent({ template: require('./template.marko'), getWidgetConfig: function(input) { return { string: input.name, number: 12, boolean: true, complex: { a: '<\"hello">', b: 'test' } }; }, init: function(config) { this.config = config; } });