devbridge / vanilla-autocomplete Goto Github PK
View Code? Open in Web Editor NEWFast and fully-featured autocomplete library without any dependencies.
Home Page: http://devbridge.github.io/Vanilla-Autocomplete/
Fast and fully-featured autocomplete library without any dependencies.
Home Page: http://devbridge.github.io/Vanilla-Autocomplete/
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
There's no documentation on how to use this library. I tried new autocomplete but it did not work.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.