Comments (4)
+1
from allmighty-autocomplete.
I think there's another way to look at the problem. Maybe trying to read that many items at the same time, to just show 10 of them, it's a bit of unnecessary processing.
Let's remember the basic autocomplete functionality:
- The user writes a query on the search box
- The service (an ajax request for data, through the on-type function) responds with the top 10 or 20 most relevant options.
- If those options are not the ones the user is looking for, he can keep writing to narrow the results.
Getting only the items you actually need seems like the way to go, booth for the client and the server side.
I think for this particular case, the limit should come from the server, or the equivalent source you are using.
Edit: I just realised that maybe I'm not seeing the entire picture on your case, could you give us some context?
from allmighty-autocomplete.
I'm closing since I don't think that issue it's related to the functionality of this directive.
If you can provide us with a justifiable example, please reopen this issue.
from allmighty-autocomplete.
You could also use something like bindonce (https://github.com/Pasvaz/bindonce) if you want to show all the results.
Or customize the template to do what you want.
from allmighty-autocomplete.
Related Issues (20)
- Not losing focus
- Support ng-disabled
- Pass id into on-type
- work like gmail or another email client
- Is it possible to show all list on initial focus or when suggestion is null?
- ng-enter search
- Closes the scrollable list of items if you click on scroll button HOT 2
- Read-Only & Disabled?
- suggestion problem
- Doesn't with array of objects HOT 1
- Add input-type=search (configureable)
- Disable spellcheck on mobile devices
- want to clear value in input type HOT 1
- How i can get the value ?
- tabindex not working
- Can multiple select?
- How I use ng-change?
- what modification required for using within ng-repeat
- getting console error on typing in autocomplete text box HOT 1
- any body implemented Add new item when no result found HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from allmighty-autocomplete.