具有自动完成功能和类别的Wicket下拉菜单 [英] Wicket Dropdown with Autocomplete and Categories

查看:88
本文介绍了具有自动完成功能和类别的Wicket下拉菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一个带有下拉菜单的自动完成功能,其结果的分类类似于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集成:

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下拉菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆