How to hide suggestions of a GWT suggest box?

296 views Asked by At

I want to add the functionality that whenever I press the reset button the suggestion list should get hided. I have tried the hideSuggestionList() method but it is showing as deprecated. Please help me. Thanks in advance.

1

There are 1 answers

2
Thomas Broyer On

If you don't use your own SuggestionDisplay, then this should Just Work™:

((DefaultSuggestionDisplay) suggestBox.getSuggestionDisplay()).hideSuggestions();