问题描述
我需要一个带有下拉菜单的自动完成功能,其结果的分类类似于HTML select-带有键盘导航的optgroup.
I need an autocomplete with a dropdown with results categorised like in HTML select - optgroup with keyboard navigation.
我尝试基于以下方式实现带有组的检票选择组件:在Wicket中使用分隔符DropDownChoice (带有用于搜索的文本字段),但不能通过向下箭头"跳转到该选项.
I tried to implement a wicket Select component with groups based on this: Separator in a Wicket DropDownChoice with a textfield for search, but can't jump to select with "Arrow down".
还有其他想法吗?
推荐答案
我认为您最好的选择是Select2(示例: https://select2.github.io/examples.html#themes-templating-response-design )及其Wicket集成: https://github.com/wicketstuff/core/tree/master/select2-parent
I think you best option is Select2 (example: https://select2.github.io/examples.html#themes-templating-responsive-design) and its Wicket integration: https://github.com/wicketstuff/core/tree/master/select2-parent
这篇关于具有自动完成功能和类别的Wicket下拉菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!