GWT: Suggest box with multiple words

邮差的信 提交于 2019-11-27 14:01:19

问题


I need to make suggestion TextBox where user can write some keywords ( to search across file archive with specified keywords ). But keywords can be entered sequentially with some delimiter.

for example: keyword1; keyword2; key...

I want to make it with GWT.

Please, tell me if you know some implementation examples (may be in JavaScript/jQuery) or how to make this.

TIA


回答1:


You are looking for the SuggestBox. But its default SuggestOracle - MultiWordSuggestOracle only allows one "suggestion" per box. So you want to write your own, custom SuggestOracle. MutipleSuggestBox is a basic/simple implementation that should get you started. For some extra insight and more eye-candy, please see the Facebook-style Autocomplete with GWT article.



来源:https://stackoverflow.com/questions/2666488/gwt-suggest-box-with-multiple-words

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!