A simple example so you can understand me:
<template name="button">
<button>
//some content
</button>
</template>
then when i click it how to customize it using JS
Template.button.events({
'click': function (e, t) {
var b = e.currentTarget;
// what i must do here ?
}
});
Template.button.events({
'click button': function (e, t) {
let b = e.target
b.style.width="100px"
}
})