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

Suggestion: Setting to change "value" key #61

Closed
scott-laursen opened this issue Feb 27, 2013 · 4 comments
Closed

Suggestion: Setting to change "value" key #61

scott-laursen opened this issue Feb 27, 2013 · 4 comments
Assignees
Milestone

Comments

@scott-laursen
Copy link

Use case: I am using an existing API to fetch data for the typeahead. The data from the API does not contain a key called "value". It does however have another meaningful key called "name" I would like to use.

Suggestion: To have a property where we can set the value key, so we do not have to write wrappers for existing API's.

$(element).typeahead([{
    name: 'source1',
    remote: '/api/search?q=%QUERY',
    valueKey: 'name'
}]);
@jharding
Copy link
Contributor

👍

@vskarich
Copy link
Collaborator

I can tackle this.

@ghost ghost assigned vskarich Feb 28, 2013
@adardesign
Copy link
Contributor

Yea, I guess it should allow to set a Datums (not only the value key) the same as a custom template can already be provided as a option...

@jharding
Copy link
Contributor

jharding commented Mar 3, 2013

Delaying this to v0.9.

@ghost ghost assigned jharding Mar 13, 2013
@jharding jharding mentioned this issue Mar 13, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants