mercredi 29 avril 2015

move Up and Down with key thru a list of item (Ember.js)

what I, am trying to do is move up and down thru a list of item using my keyboard. Here is a perfect example of how to do it on jquery http://ift.tt/1DWZ6on . I want to be able to accomplish this only using ember.js

   keyDown: function (e) {
         var moveDown = 40;
         var moveUp = 38;

         if(e.keyCode === moveDown || e.keyCode === moveUp){

         }
     }




Aucun commentaire:

Enregistrer un commentaire