Skip to content
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

trigger events instead of using callbacks #48

Closed
Neobii opened this issue May 17, 2014 · 4 comments
Closed

trigger events instead of using callbacks #48

Neobii opened this issue May 17, 2014 · 4 comments

Comments

@Neobii
Copy link
Contributor

Neobii commented May 17, 2014

Trigger a onSelectedMatch or onSelectedNoMatch event.

This way we can use helpers like this:

Template.formWithAutocomplete.events({
"onSelectedMatch" : function(e, t, doc){},
"onSelectedNoMatch" : funtion(e, t, doc){}
})
@Neobii Neobii changed the title Feature - trigger events instead of using callbacks [Feature] trigger events instead of using callbacks May 17, 2014
@mizzao mizzao changed the title [Feature] trigger events instead of using callbacks trigger events instead of using callbacks May 29, 2014
@mizzao
Copy link
Collaborator

mizzao commented Aug 4, 2014

@Neobii I just ran into this use case in my app, so hope to make a solution for it soon :)

@mizzao mizzao closed this as completed in b930996 Feb 27, 2015
@mizzao
Copy link
Collaborator

mizzao commented Feb 27, 2015

I released this in the most recent version, but didn't see a clean way to implement a noMatch event. If that's important, let's talk about it and see what we can do.

@tveeger
Copy link

tveeger commented Mar 4, 2015

can you write me an example of how to use this event?

@mizzao
Copy link
Collaborator

mizzao commented Mar 4, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants