lundi 19 octobre 2015

currently clicked item in action

How can i get the currently clicked item in a ember action?

<button {{action 'open'}}></button>

actions: {
  open: function() {
    // How get the button?
  }
}

I was trying to pass event and catch with $(e.eventTarget) but e is undefined.




Aucun commentaire:

Enregistrer un commentaire