Dhaulagiri / ember-cli-twitter-typeahead

An ember cli typeahead component based on Twitter's jquery typeahead
MIT License
28 stars 14 forks source link

filterContent Not Called #7

Closed attila226 closed 8 years ago

attila226 commented 9 years ago

When I run the sample app, the filterContent function is never called. In fact I can remove the function from the model, and there's no errors.

The documentation isn't very clear, so perhaps this is a misunderstanding of it's use, but I'm assuming that it should be called at some point.

daltonamitchell commented 9 years ago

Had the same issue. Reading through the source I found a valueToken prop that's not mentioned but seems necessary. It specifies the property to pass into your filter. Try adding valueToken='name' as an example if you're filtering by name.

Dhaulagiri commented 8 years ago

Yes, you must specify valueToken