Useful events in Blaze with Meteor

Posted By : Balraj Singh | 12-Jan-2017

According to the docs, I should be able to handle key events like keyup, keypress, blur, focus and change in the same way as I can handle the click event.

The events keyword is used to specify that, within the coming block of code, we able to specify one or more events.

There are some usefull events in Blaze with Meteor

Template.templateName.events({
    "click #yourId": function() {
    },
    "keyup #yourId": function() {
    },
    "keypress #yourId": function() {
    },
    "blur #yourId": function() {
    },
    "focus #yourId": function() {
    },
    "change #yourId": function() {
    }
});

 

THANKS

About Author

Author Image
Balraj Singh

Balraj is a creative UI designer with experience and capabilities to build compelling UI designs for Web and Mobile Applications. Balraj likes playing tech Quiz and loves bike riding.

Request for Proposal

Name is required

Comment is required

Sending message..