Giter Site home page Giter Site logo

Comments (4)

j0an avatar j0an commented on July 23, 2024

+1

from allmighty-autocomplete.

davidmh avatar davidmh commented on July 23, 2024

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:

  1. The user writes a query on the search box
  2. The service (an ajax request for data, through the on-type function) responds with the top 10 or 20 most relevant options.
  3. 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.

davidmh avatar davidmh commented on July 23, 2024

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.

JustGoscha avatar JustGoscha commented on July 23, 2024

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)

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.