You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're using Typahead for our search feature and I was wondering if there is a way that one can configure Typeahead so that as soon as a user focuses on the search bar, it will show a suggestion for "Advanced search". Then, as search results are returned from typing, the "Advanced Search" suggestion is always present?
Thanks in advance.
Leonard
The text was updated successfully, but these errors were encountered:
Hi, you can achieve this very easily with typeahead but just to be clear the behavior to display suggestion on focus hasn't been merged yet. There is a PR opened and I really hope it will be merged very soon since it is being pending there for a while and I think this is a feature that many people is demanding (including my team)
For the second requirement, to always display a fixed value regardless what the user types, you can always add a new dataSet to typeahead with a custom dataset. I did this plunkr with a working example:
Note that the source function you can do whatever you want. In our project, the source is a very complex function that can return different things depending on the current state of the widget.
And you can keep adding more and more datasets with different select handlers or styles: do you want to show before the results another fix value saying: open help or anything else, you just need to add another data set in the first place. I really love the flexibility typeahead give to you to get things like this done.
I dont think we need a new feature to do what you need.
I'm cleaning up the issues right now and since there are a couple of other issues (#62, #719) regarding default suggestions, I'm going to close this as a duplicate. Adding support for default suggestions is one of next items on my TODO list btw.
Hi guys,
We're using Typahead for our search feature and I was wondering if there is a way that one can configure Typeahead so that as soon as a user focuses on the search bar, it will show a suggestion for "Advanced search". Then, as search results are returned from typing, the "Advanced Search" suggestion is always present?
Thanks in advance.
Leonard
The text was updated successfully, but these errors were encountered: