Giter VIP home page Giter VIP logo

vanilla-autocomplete's People

Contributors

xxvis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vanilla-autocomplete's Issues

Use array of objects

Hi, is there any way to search in multiple properties of the object?
For example i have this object:

var o = "suggestions": [{ id : 1,value:"wash",extra:"new york"}, {id:2,value:"new",extra:"washington"}, ...]

can this script search in both value and extra for the input and display all results containing the query?

So if i search for wash or new the first 2 elements will be displayed because if i search for wash that is the first element value and it exists in the second element extra, same with new.

And also a maximum number of results i think will make things faster, so if i set it to 10 the script will stop searching after the maximum number of results was reached, and also keep the DOM smaller, because if i have 100.000 objects in my array and my first result is over 40.000 it will crash the browser when adding all the options, also nobody will look through 40k results, so a maximum limit will help.

Hope you understand and sorry for my English :)

Thanks

Multiselect feature

Hi, this is a awesome library.

I'd like to suggest a new feature which would be able to Multiselect elements. Similar to Chosen, Selectize and Select2.

Attached an image from Chosen.
screen shot 2015-07-27 at 1 36 30 pm

Documentation missing

There's no documentation on how to use this library. I tried new autocomplete but it did not work.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.