Pixabay / jQuery-autoComplete

An extremely lightweight completion suggester plugin for jQuery that is used in production on Pixabay.com.
321 stars 116 forks source link

Support for Groupings and/or JSON #13

Open MonrealRyan opened 9 years ago

MonrealRyan commented 9 years ago

Hi,

i was on my research for finding a good and light weight plugin for an auto-complete and it looks like this is good for my project i want to ask if it support a groupings and/or JSON format. Thank you.

SimonSteinberger commented 9 years ago

I don't really understand the question. Can you explain that in more detail or with an example, please?

MonrealRyan commented 9 years ago

@SimonSteinberger - is there a Groupings/Categories feature in this plugin?

and in your example you give array: ['ActionScript', 'AppleScript', 'Asp', 'Assembly', 'BASIC', 'Batch', 'C', 'C++', 'CSS', 'Clojure', 'COBOL', 'ColdFusion', 'Erlang', 'Fortran', 'Groovy', 'Haskell', 'HTML', 'Java', 'JavaScript', 'Lisp', 'Perl', 'PHP', 'PowerShell', 'Python', 'Ruby', 'Scala', 'Scheme', 'SQL', 'TeX', 'XML'];

what if in JSON:

e.g: [{ id: 1, value: 'ActionScript'}] is this possible?

is that make a sense? sorry for my bad english. thank you.

SimonSteinberger commented 9 years ago

Hi Monreal,

got it. I think it's a nice feature, but one of our main goals for this plugin is to keep it extremely lightweight and efficient. I guess this feature would require quite some extra code and I'm not sure how many people would actually make use of it.

If others also wish to have this included, we can do it - or if we get a pull request that doesn't involve too much overhead, it's also okay. Keeping this ticket open to see what others say ...

Thanks for your suggestions in any case.

MonrealRyan commented 9 years ago

Thank you for the info :+1: