mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
19 lines
426 B
JavaScript
19 lines
426 B
JavaScript
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;
|
|
}
|
|
}); |