Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add remote sources support for typeahead #1336

Closed
marcboeker opened this issue Jan 28, 2012 · 108 comments
Closed

Add remote sources support for typeahead #1336

marcboeker opened this issue Jan 28, 2012 · 108 comments

Comments

@marcboeker
Copy link

Hi Mark,

the new typeahead component is awesome. But I often have to implement an autocomplete that is fetching data from a remote source. Would it be possible to add a callback, that I can use to query the remote server and return a set of items that match the entered query?

function(query) {
    // Do some fetching and return an array of items.
}

The jQuery UI autocompleter offers returning an array of objects. This is very helpful, as you would often like to display a human friendly title to the user and set an ugly ID in the background as the field's value.

[{title: 'Look at me', value: '12345xyz'}, {title: 'Foo Bar', value: '654321abc'}]

I know, this increases the complexity of the typeahead component, but makes it on the other side very useful.

Thanks Marc

@fat
Copy link
Member

fat commented Jan 28, 2012

That's not something I'm likely going to get in for 2.0 - but maybe the next release

@andriijas
Copy link
Contributor

I think its very good ideas but given the pressure they are under currently to release 2.0 tomorrow and lots of other issues on current 2.0 I think its better to slate this for a later release.

@Merg1255
Copy link

yes it would be nice for a next version.

@andriijas
Copy link
Contributor

That said there is an open merge request of this at #1433 so I think there is a good chance getting it in sooner than later :)

@holic
Copy link
Contributor

holic commented Feb 2, 2012

+1

15 similar comments
@stefanozoffoli
Copy link

+1

@dbpolito
Copy link

dbpolito commented Feb 2, 2012

👍

@BobWalsh
Copy link

BobWalsh commented Feb 2, 2012

+1

@mattkennedy
Copy link

+1

@t1mmen
Copy link

t1mmen commented Feb 3, 2012

+1

@S33G
Copy link

S33G commented Feb 3, 2012

+1

@huzzi
Copy link

huzzi commented Feb 3, 2012

+1

@suigintou
Copy link

+1

@bretrzaun
Copy link

+1

@epochwolf
Copy link

+1

@nishadmusthafa
Copy link

+1

@derrickontiveros
Copy link

+1

@pochy
Copy link

pochy commented Feb 7, 2012

+1

@octohq
Copy link

octohq commented Feb 7, 2012

+1

@krmcbride
Copy link

+1

@andriijas
Copy link
Contributor

cmon @fat - i think enough people have +1'd this to get to know if it deserves the 2.1 label or if it's going to be later.

thanks!

@fat
Copy link
Member

fat commented Feb 8, 2012

lol there is no 2.1 label! but i'm hoping to do lots of ajaxy stuff for 2.1.0 (not to be confused with 2.0.1) :)

@andriijas
Copy link
Contributor

lol my bad, i swear i've seen it but it was probably a dream.

@rasheqrahman
Copy link

+1

@riccardodivirgilio
Copy link

+1!

1 similar comment
@jenwilhelm
Copy link

+1!

@andriijas
Copy link
Contributor

@and7ey
Copy link

and7ey commented Feb 11, 2012

+1 ))

@emeraldjava
Copy link

+1

1 similar comment
@JustinDrake
Copy link

+1

@rebeling
Copy link

+1 I love working with bootstrap - but for this 'new source data update' I had to use jquery.ui and manipulate via bootstrap CSS ...works, but would be awesome to have this feature in future. Great job and happy coding ;)

@eguevara2012
Copy link

Hello! I have a problem on the line:
i = data.results.length;
Firebug says "data.results is undefined ", I must change something in code?
Thanks!

@tarator
Copy link

tarator commented May 10, 2012

+1

7 similar comments
@dennisoderwald
Copy link

+1

@eguevara2012
Copy link

+1

@confact
Copy link

confact commented May 11, 2012

+1

@ayush
Copy link

ayush commented May 16, 2012

+1

@orloffv
Copy link

orloffv commented May 17, 2012

+1

@Nullpo
Copy link

Nullpo commented May 19, 2012

+1

@keverw
Copy link

keverw commented May 20, 2012

+1

@andriijas
Copy link
Contributor

Anyone using jquery chosen plugin with bootstrap for typeahead like features might be interested in https://github.com/andriijas/chosen-bootstrap-fontawesome

@mathielen
Copy link

+1

1 similar comment
@cemo
Copy link

cemo commented May 30, 2012

+1

@resba
Copy link

resba commented May 30, 2012

Guys, seriously. This issue has enough +1s and I want to keep up with it without having the +1 notifications bogging down my inbox.

@add1ct3dd
Copy link

^ Remove notifications for the issue :)

It's clear that many people want this.

@bsdis
Copy link

bsdis commented Jun 2, 2012

+1

@fat
Copy link
Member

fat commented Jun 3, 2012

You'll be able to easily do this in 2.1 thanks to @mlmorg #3682

@fat fat closed this as completed Jun 3, 2012
@holic
Copy link
Contributor

holic commented Jun 4, 2012

Thanks @fat and @mlmorg!

@ysmirnov
Copy link

+1

2 similar comments
@acuencadev
Copy link

+1

@allan852
Copy link

+1

@andriijas
Copy link
Contributor

you guys may want to check out http://ivaynberg.github.com/select2/

@pushpinderbagga
Copy link

👍

2 similar comments
@thiagovidal
Copy link

+1

@misterx
Copy link

misterx commented Jan 15, 2013

👍

@twbs twbs locked and limited conversation to collaborators Jun 9, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests