mardi 29 août 2017

Add new element to DOM on action in Ember

What would be a proper way to dynamically add a new element to DOM in Ember? For example a tooltip. Currently I render all tooltips right away, but they're hidden and only shown on mouse over, which takes time to render anyways. I could use jquery or plain JS to append element on event and it would probably work, but would it be the most efficient way to do so? Also would be nice to still be able to use a template, so code wouldn't be too large.




Aucun commentaire:

Enregistrer un commentaire