lundi 22 mai 2017

Ember - actions within link-to blocks

I am building a component in Ember.js which includes a table. Each tr in that table is created using so that clicking anywhere on the row will take a user to another route.

However, I'd like to make a td element in those rows clickable to open a link in a new window. I'm doing this as an action.

Right now, clicking the proper td element will both trigger the redirect and activate the action on the td element as well.

Instead, I'd like a click on the proper td element to only trigger that element's action, and ignore the event above. How would I go about doing this?

This is what my code looks like:

<table>
  
    <td>Go to link-to</td>
    <td >Send Email</td>
  
</table>




Aucun commentaire:

Enregistrer un commentaire