mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
21 lines
375 B
JavaScript
21 lines
375 B
JavaScript
module.exports = require('marko/widgets').defineComponent({
|
|
template: require.resolve('./template.marko'),
|
|
|
|
getTemplateData: function(state, input) {
|
|
return {
|
|
};
|
|
},
|
|
|
|
init: function() {
|
|
this.fooClicked = false;
|
|
this.barClicked = false;
|
|
},
|
|
|
|
handleFooClick: function() {
|
|
this.fooClicked = true;
|
|
},
|
|
|
|
handleBarClick: function() {
|
|
this.barClicked = true;
|
|
}
|
|
}); |