GWT:带有多个单词的建议框 [英] GWT: Suggest box with multiple words
问题描述
我需要提出建议 TextBox,用户可以在其中编写一些关键字(使用指定的关键字搜索文件存档).但是可以使用一些分隔符顺序输入关键字.
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.
例如:keyword1;关键字 2;关键...
我想用 GWT 制作它.
I want to make it with GWT.
请告诉我您是否知道一些实现示例(可能是 JavaScript/jQuery)或如何制作.
Please, tell me if you know some implementation examples (may be in JavaScript/jQuery) or how to make this.
TIA
推荐答案
您正在寻找 SuggestBox
.但它的默认 SuggestOracle
- MultiWordSuggestOracle
每个框只允许一个建议".所以您想编写自己的自定义SuggestOracle
.MutipleSuggestBox 是一个基本/简单的实现这应该让你开始.如需更多见解和更多精彩内容,请参阅Facebook 风格的 GWT 自动完成 文章.
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.
这篇关于GWT:带有多个单词的建议框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!