typeahead.js icon indicating copy to clipboard operation
typeahead.js copied to clipboard

Wildcard token to display items

Open steswinbank opened this issue 13 years ago • 1 comments

I've seen that in issue 55 this has been mentioned, but can't see evidence of it being implemented...

Is there a way to use a wildcard to access all items in the drop-down list? Preferably all items from a particular data source? I want specific items to be displayed when a user focuses on the text input with no need to put any value into the text input. I've tried giving each datum a specific token e.g. "search" and then using the "setQuery" on the focus event to display all items with the "search" token. typeahead("setQuery", "search"); But it would be better if there was a way to do this without "search" appearing in the text input. Also, if possible, I'd like the "search" items to be always displayed at the top of the list, like a global header.

Thanks for all your help so far :)

steswinbank avatar Apr 09 '13 16:04 steswinbank

Nothing like this is currently available. Eventually I'd like to see something like this added, just not sure what the best way of going about it is.

jharding avatar Apr 09 '13 16:04 jharding