mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
7 lines
202 B
JavaScript
7 lines
202 B
JavaScript
module.exports = require('marko/widgets').defineComponent({
|
|
template: require.resolve('./template.marko'),
|
|
|
|
handleColorClick: function(event, el) {
|
|
this.color = el.getAttribute('data-color');
|
|
}
|
|
}); |