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

Set data attribute on selected input #19

Closed
gregoribic opened this issue Jun 18, 2014 · 3 comments
Closed

Set data attribute on selected input #19

gregoribic opened this issue Jun 18, 2014 · 3 comments

Comments

@gregoribic
Copy link

How can I use typeahead to set also some other data attribute on selected value. I would like to set also the document id in data-id attribute.

@doctorpangloss
Copy link
Contributor

You could use a custom template item renderer

@sergeyt
Copy link
Owner

sergeyt commented Jun 19, 2014

@doctorpangloss great advise, otherwise you could use $(yourSelementSelector) to add custom event handlers, also look at changes made in #18 - maybe it covers your use case.

@sergeyt sergeyt closed this as completed Aug 28, 2014
@mrn3
Copy link

mrn3 commented Nov 26, 2014

Is there any sample code of this?

janat08 pushed a commit to janat08/meteor-typeahead that referenced this issue Apr 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants