GWT:建议包含多个单词的框 [英] GWT: Suggest box with multiple words
问题描述
我需要建议TextBox,用户可以在其中编写一些关键字(用指定关键字在文件存档中搜索)。但是关键字可以用一些分隔符顺序输入。
例如: keyword1;关键字2; key ...
我想使用GWT进行设置。
请告诉我,如果您知道一些实现示例(可能在JavaScript / jQuery中)或如何做到这一点。
TIA
您正在寻找 SuggestBox
。但其默认的 SuggestOracle
- MultiWordSuggestOracle
只允许每个盒子有一个建议。所以你想编写你自己的自定义 SuggestOracle
。 MutipleSuggestBox 是一个基本/简单的实现这应该让你开始。有关更多信息和更多关注,请参阅带GWT的Facebook式自动填充文章。
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
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屋!