One problem I run into a decent amount is an inability to create reactive events that extend from Template.[template].events({})
. For example, I might want to do something like this:
Template.orderList.events({
'scroll .ion-content': _.throttle(function() {
// some code here to create an infinite scrolling effect.
}, 300),
'resize': _.throttle(function() {
// change around display in some way or another.
}, 200)
});
It seems like the maps have a very specific set of events you can use. Ideally, this would be more extensible to add in some keyed events. Eg:
_.extend(Template.events, {
'resize': function() {
window.addEventListener('resize', function() {
// fire template event
})
}
});
Is it possible to extend these events?