Meteor-Community-Packages / meteor-autocomplete

Client/server autocompletion designed for Meteor's collections and reactivity.
https://atmospherejs.com/mizzao/autocomplete
MIT License
350 stars 109 forks source link

support for non-collection source #89

Open pociej opened 9 years ago

pociej commented 9 years ago

Maybe i missed something in documentation , but i looks like that source have to be collection which looks really strange. Why not not allow custom array ?

mizzao commented 9 years ago

There are a lot of JS libraries that allow autocomplete for arbitrary arrays. This was designed for Meteor, so it's built around collection.

pociej commented 9 years ago

sure there are. And i understand your goal. Anyway here is lot of use cases , when one need to add some other options to dropdown created basing on collection.

dcworldwide commented 9 years ago

I had a similiar req for emojis. I buffered my emoji array into a collection. I'm not sure how much overhead it adds...but it works.

mizzao commented 9 years ago

In #88 I suggested using a null collection on the client if you want to just use an array of something for local search.