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

Typeahead custom item template #182

Closed
kloy opened this issue Mar 1, 2013 · 5 comments
Closed

Typeahead custom item template #182

kloy opened this issue Mar 1, 2013 · 5 comments

Comments

@kloy
Copy link

kloy commented Mar 1, 2013

Based on https://gist.github.com/pkozlowski-opensource/4998969 a typeahead-item-template directive could be used to specify an items template. This is a feature that would be really great and is supported by the typeahead.js plugin.

@pkozlowski-opensource

@amfern
Copy link

amfern commented Apr 10, 2013

+1

@taudep
Copy link

taudep commented Jun 18, 2013

This would be a great feature.

In the short-term, though, is there any way I could hack to feed the directive different templates, either external, or defined hidden in a div somewhere?

@pkozlowski-opensource
Copy link
Member

@taudep For now your best call is to override the standard template:
https://github.com/angular-ui/bootstrap/blob/master/template/typeahead/typeahead.html

Sorry guys, I know this is a very needed feature but a day has only 24h... We need to find a way of sponsoring OS projects, maybe we should start using sth like https://www.bountysource.com ?

@taudep
Copy link

taudep commented Jun 18, 2013

Cool. Thanks. Customizing the HTML was the first path I started going down....but now I'm looking at trying to have a wrapped template similar to ng-repeat and see what I come up with.

Thanks.

@KendallPark
Copy link

Hey, I'm interested in using this custom template feature. How would I go about doing this?

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

5 participants