ember.js - Programatically trigger click event on EmberView -
i have ember application , using three.js , css renderer display array of views in 3d.
the problem once three.js thing, can no longer catch click event on view through controller/view or router even.
does know how programatically trigger click event on ember view? have access "data-ember-action" value , hoping use find binded event , have run.
referring last comment on capturing event in ember view, work defining function/hook on view name of event want capture, like:
app.myview = ember.view.extend({ click: function(event) { alert("clicked!"); }, doubleclick: function(event) { alert("double clicked!"); } });
more on handling events in ember can found in ember guides
hope helps
Comments
Post a Comment