Coder Social home page Coder Social logo

meteor-body-events's Introduction

- NOTE: This package is not maintained anymore.
- If you want to help, please reach out to [email protected]

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
  }
})

meteor-body-events's People

Contributors

gwendall avatar jackadams avatar pokutnik avatar brucejo75 avatar

Stargazers

Boris Yordanov avatar  avatar Chris Aloi avatar Vianney Lecroart avatar Oleg Dolgarev avatar Max avatar Bozhao avatar Ben Jones avatar Jindrich Bartek avatar  avatar Hamza Mousa avatar  avatar

Watchers

 avatar  avatar

meteor-body-events's Issues

Sample Code

Thanks for the Package. It would be very helpful if you can provide some sample code on how to get the data out of Jquery event or Blaze data context.

Thanks.

Why not use $.trim() instead of _.trim()?

Saves adding the underscore string library. Especially since you're already using jQuery, which has the same functionality. I'd do a PR, but it's literally just changing _ to $. (And removing the dependency on underscore string in package.js).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.