Giter Site home page Giter Site logo

Comments (3)

Siyfion avatar Siyfion commented on May 19, 2024

Sorry, I'm struggling to understand your use-case in this scenario.

You can attach more than one Bloodhound object to a single typeahead control on initialisation. However, you are saying that you wish to switch suggestion engines half-way through the typeahead receiving input?

Can you provide an example of why you'd need this functionality, over say, two separate typeahead controls, or a single bloodhound object with all combinations of both numbers and letters, or a simple text input with a Regex validation?

from angular-typeahead.

redskins80 avatar redskins80 commented on May 19, 2024

I have two bloodhound objects... And yes.. I wish to switch objects half
way.. I'm trying to implement a kind of search where different backends are
queried depending on the suggestion selected before. In my use case, a
previous suggestion selected has some semantic meaning and cannot be
clubbed with another set of suggestions as you suggest. Based on the
previous suggestion selected, another backend is queried and I want the
suggestions of that to be isolated and shown with the type ahead.

I hope you understand my case.
I have already figured out a hacky way to make this work... Basically, i
created another isolation scope in the directive and sent the
numbers.ttAdapter from the controller to the directive. But I was wondering
if there could be a nicer method that could perform this.
On 18 Mar 2014 17:15, "Simon Mansfield" [email protected] wrote:

Sorry, I'm struggling to understand your use-case in this scenario.

You can attach more than one Bloodhound object to a single typeahead
control on initialisation. However, you are saying that you wish to switch
suggestion engines half-way through the typeahead receiving input?

Can you provide an example of why you'd need this functionality, over say,
two separate typeahead controls, or a single bloodhound object with all
combinations of both numbers and letters, or a simple text input with a
Regex validation?

Reply to this email directly or view it on GitHubhttps://github.com//issues/27#issuecomment-37923664
.

from angular-typeahead.

Siyfion avatar Siyfion commented on May 19, 2024

I'm afraid that this isn't a use-case that I can easily support, as Twitter Typeahead simply isn't designed to be used in this way.

from angular-typeahead.

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.