micktaiwan / meteor-body-events

Get Template.body.events() working

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

- NOTE: This package is not maintained anymore.
- If you want to help, please reach out to gwendall.esnault@gmail.com

Meteor Body Events

Template.body.events working

Installation

meteor add gwendall:body-events

Methods

Template.body.events({
  "click .btn": function(e, data, tpl) {
    // e -> jquery event
    // data -> Blaze data context of the DOM element triggering the event handler
    // tpl -> the parent template instance for the target element
  }
})

About

Get Template.body.events() working


Languages

Language:JavaScript 100.0%