All Projects → themeteorites → blaze-magic-events

themeteorites / blaze-magic-events

Licence: other
A new way of binding event handlers to html elements for Meteor's Blaze.

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to blaze-magic-events

meteor-blaze-bs4
Generic Bootstrap 4 components library for Meteor Blaze.
Stars: ✭ 20 (-23.08%)
Mutual labels:  meteor, blaze, meteor-blaze
Meteor Autoform
AutoForm is a Meteor package that adds UI components and helpers to easily create basic forms with automatic insert and update events, and automatic reactive validation.
Stars: ✭ 1,453 (+5488.46%)
Mutual labels:  meteor, blaze
fragments
Organise your bookmarks into boards
Stars: ✭ 56 (+115.38%)
Mutual labels:  meteor, blaze
blaze-integration
Vue integration with Meteor's Blaze rendering engine.
Stars: ✭ 24 (-7.69%)
Mutual labels:  meteor, blaze
MeteorCandy-meteor-admin-dashboard-devtool
The Fast, Secure and Scalable Admin Panel / Dashboard for Meteor.js
Stars: ✭ 50 (+92.31%)
Mutual labels:  meteor, blaze
awesome-blaze
🔥A curated list of awesome things related to Blaze
Stars: ✭ 29 (+11.54%)
Mutual labels:  meteor, blaze
meteor-autoform-bs-datetimepicker
Custom bootstrap-datetimepicker input type with timezone support for AutoForm
Stars: ✭ 18 (-30.77%)
Mutual labels:  meteor, blaze
meteor-video-chat
Simple id based video calling in meteor
Stars: ✭ 33 (+26.92%)
Mutual labels:  meteor, blaze
meteor-server-autorun
Server-side Tracker.autorun
Stars: ✭ 36 (+38.46%)
Mutual labels:  meteor
meteor-postcss
PostCSS for Meteor
Stars: ✭ 68 (+161.54%)
Mutual labels:  meteor
accounts-react
Simple and intuative accounts view layer for react in meteor
Stars: ✭ 51 (+96.15%)
Mutual labels:  meteor
meteor-vuetify
Experimenting with using Vuetify on a Meteor project.
Stars: ✭ 18 (-30.77%)
Mutual labels:  meteor
Meteor-Files-Demos
Demos for ostrio:files package
Stars: ✭ 51 (+96.15%)
Mutual labels:  meteor
meteor-apollo2
An example showing how to use Apollo 2.0 with GraphQL server + subscriptions
Stars: ✭ 20 (-23.08%)
Mutual labels:  meteor
meteor-google-spreadsheets
Google Spreadsheets for Meteor
Stars: ✭ 53 (+103.85%)
Mutual labels:  meteor
meteor-control-mergebox
Control mergebox of publish endpoints
Stars: ✭ 28 (+7.69%)
Mutual labels:  meteor
polytunes
An collaborative music game using Meteor and Web Audio
Stars: ✭ 23 (-11.54%)
Mutual labels:  meteor
Dermatron
Dermatology focused medical records software, augmented with computer vision and artificial intelligence [Meteor packaged with Electron]
Stars: ✭ 19 (-26.92%)
Mutual labels:  meteor
meteor-stat
Get a simple analysis of your Meteor app
Stars: ✭ 22 (-15.38%)
Mutual labels:  meteor
Meteor-logger
🧾 Meteor isomorphic logger. Store application logs in File (FS), MongoDB, or print in Console
Stars: ✭ 51 (+96.15%)
Mutual labels:  meteor

blaze-magic-events

A new way of binding event handlers to html elements for Meteor's Blaze.

note: all code is ES6

Template

<template name="helloworld">
  <button onclick={{sayHi}}>Say Hi!</button>
  <button onclick={{reset}}>reset</button>
  <button onclick={{say name "hi"}}>say "hi" (using args)</button>
  <p></p>
</template>

Event handlers

  Template.helloworld.events({
    sayHi (e, t) {
      console.log('event and templateInstance params', e, t)
      t.$('p').html('hi there from sayHi() handler!')
    },
    reset (e, t) {
      t.$('p').html('')
    },
    say (e, t, who, what) {
      t.$('p').html(`${who} says ${what}`)
    },
  })
  
  Template.helloworld.helpers({
    name () {
      return 'template'
    }
  })

Enjoy! Feedback welcome. Example app given.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].