mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
19 lines
444 B
JavaScript
19 lines
444 B
JavaScript
module.exports = require('marko/widgets/legacy').defineComponent({
|
|
template: require.resolve('./template.marko'),
|
|
getInitialState: function(input) {
|
|
return {
|
|
};
|
|
},
|
|
getTemplateData: function(state, input) {
|
|
return {
|
|
};
|
|
},
|
|
|
|
destroyButton1: function(size) {
|
|
this.getWidget('button1').destroy();
|
|
},
|
|
|
|
getButton1: function() {
|
|
return this.getWidget('button1');
|
|
}
|
|
}); |