lundi 6 novembre 2017

Ember js - Trigger click event on other element on button click

My Requirement: I am using a custom tab component which has 3-4 tabs and there is next previous buttons on tab. I want to switch tabs when clicked on next, previous buttons.

My Approach: I was trying to trigger a click event on tab when clicked on next button like generally when we click a tab the associated tab content shows.

I can do the same with jquery but how can we do this in ember? I am using ember 2.16. Can someone help with this or can suggest is there a better way to achieve the requirement.

Thanks.




Aucun commentaire:

Enregistrer un commentaire