-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to wrap the default taBind event handler? #493
Comments
I think I should implement some ng-keyup kind of interaction for the taBind directive as I don't think the event handler is accessible outside of the directive itself. |
Hey, So if we can save the keydown handler in the scope, it would be fairly easy to wrap. Do you think something along the line of scope.onKeydown = function onKeydown () {
blah blah
}
iElement.on('keydown', onKeydown); would work? Ge |
That would work in theory. If there's a way of accessing the taBind's isolated scope? I can't think of one off the top of my head. |
I was able to do that following your example code in one of the issues. So in app.configure, I bind another directive to the ta-bind element. Then Ge On Tue, Jan 20, 2015 at 4:24 PM, Simeon Cheeseman notifications@github.com
|
Ok, I've added in an events object to the taBind scope. Its now |
No worries! I have been pretty much working with my fork, so it will take Thanks for this great library! and sorry for not following up with my PR I think actually if you have time (and I understand if you are busy), it Ge On Tue, Jan 20, 2015 at 8:26 PM, Simeon Cheeseman notifications@github.com
|
Hi @SimeonC ,
I have a few custom directives inside the editor, so some of the
keydown
events in the editor needs to be handled differently.I am trying to wrap the taBind event handler but failing. Here is how I did it:
in my directive:
but I realized that the taBindHandler returned from the iElement.off() is the element itself, not an event handler. How to get the event handler instead?
Thanks!
The text was updated successfully, but these errors were encountered: