Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Typeahead separate text field rendering and drop down rendering. #240

Closed
rgaskill opened this issue Mar 18, 2013 · 2 comments
Closed

Typeahead separate text field rendering and drop down rendering. #240

rgaskill opened this issue Mar 18, 2013 · 2 comments

Comments

@rgaskill
Copy link

This probably fits under #182 but I wanted to create a separate issue because it seems this task would be a smaller undertaking and possibly could be done before #182.

It would be great if you could show a label in the text field that is different from the label in the drop down. For example in the drop down you could show state code and state name

"IL (Illinois)"

but when it is selected it just showed the state code.

"IL"

The underlying selection would just be a state object.

@pkozlowski-opensource
Copy link
Member

@rgaskill I like the sound of it :-)

In fact I'm more and more leaning toward a solution where the typeahead would be just binding model and users would have to provide they own passers / formatters to manage values in the input box. But I'm not sure it will be faster than #182 :-)

Need to sleep on this one, I see the value in what you are proposing! And pull requests are always welcomed!

@jmaynier
Copy link

jmaynier commented Apr 9, 2013

+1
it is specially usefull if the label in the dropdown contains html for formatting.

codedogfish pushed a commit to codedogfish/angular-ui-bootstrap that referenced this issue Sep 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants