UNPKG

marko-widgets

Version:

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

21 lines (17 loc) 375 B
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; } });