anyone?To view this discussion on the web visit https://groups.google.com/d/msg/angular/-/sxYuhgMQF7gJ.
--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To post to this group, send email to ang...@googlegroups.com.
To unsubscribe from this group, send email to angular+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/angular?hl=en.
Actually I needed something more like the ng-click directive, which will allow me to attach a callback to a focus and blur event.I really couldn't find a place that explains how to write directives from the ground up, so I'm asking here.
On Monday, July 9, 2012 11:34:15 AM UTC+3, Peter Bacon Darwin wrote:
I think you'll need to write a directive. Here someone has done a simplistic one: https://gist.github.com/2588075.What are your specific requirements for these directives?
Pete
anyone?To view this discussion on the web visit https://groups.google.com/d/msg/angular/-/sxYuhgMQF7gJ.
--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To unsubscribe from this group, send email to angular+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To view this discussion on the web visit https://groups.google.com/d/msg/angular/-/IRWSNMB5BnYJ.
Hi,Perhaps this might help:
Anythings about those? I can't seem to find them in the documentation.Will I need to write a directive especially for those? If so, how?
Crap ya the syntax changed a bit quite recently. Updating the demo right now (note to self: start creating tests).The issue with the latest iteration is that you no longer have access to the event object, I'm trying to think of ways to re-allow this. In exchange, multiple keypresses are supported (CTRL+SHIFT+E) etc.
On Tuesday, July 10, 2012 6:45:40 AM UTC-7, ethermal wrote:Also noticed the blur and focus events on your demo page do not work for me in any browser. http://angular-ui.github.com/index.html'So I downloaded and tested your latest build and the blur event is called/triggered however it doesn't pass the event as a parameter as your example appears to demonstrate.$scope.blurCallback = function(e) {
alert('Hello there');
};e is undefined, should be the event
On Monday, July 9, 2012 6:21:02 PM UTC-4, ProLoser wrote:Thanks Sander! Ya I was actually going to say we already support this in AngularUI. You guys should come check it out, we try to add anything that isn't natively in AngularJS that we feel would help, in addition to other common problems people tackle.We're also constantly looking for more core contributors so if you guys end up developing your own solutions feel free to submit them!