easyui的combotree之模糊过滤
来源:互联网 发布:tensorflow下载地址 编辑:程序博客网 时间:2024/06/02 03:34
不想说了,直接上代码
$(document).ready(function () { $("#item").combotree({ url: '../../Handler/DetectLine/GetDetStaTreeDataHandler.ashx', valueField: 'id', textField: 'text', editable: true, keyHandler: { enter: function () { var q = $('#item).combotree('getText'); var t = $(this).combotree('tree'); var nodes = t.tree('getChildren'); for (var i = 0; i < nodes.length; i++) { var node = nodes[i]; if (node.text.indexOf(q) >= 0) { $(node.target).show(); } else { $(node.target).hide(); } } var opts = $(this).combotree('options'); if (!opts.hasSetEvents) { opts.hasSetEvents = true; var onShowPanel = opts.onShowPanel; opts.onShowPanel = function () { var nodes = t.tree('getChildren'); for (var i = 0; i < nodes.length; i++) { $(nodes[i].target).show(); } onShowPanel.call(this); }; $(this).combo('options').onShowPanel = opts.onShowPanel; } } } }); });
0 0
- easyui的combotree之模糊过滤
- EasyUI支持模糊查询的Combotree
- jQuery EasyUI Combotree 实现ComboBox的内容过滤
- easyUI comboTree的实现
- easyui的combobox、combotree
- 【EasyUI】combotree和combobox模糊查询
- 【EasyUI】combotree和combobox模糊查询
- easyui combotree 动态模糊查询 后台 数据库
- 0018-【EasyUI】combotree和combobox模糊查询
- 【EasyUI】combotree和combobox模糊查询
- 【EasyUI】combotree和combobox模糊查询
- EasyUI combotree实现模糊筛选功能
- jquery easyui combobox模糊过滤
- 【easyui】combotree类似combobox模糊查询功能,动态加载数据
- easyUI ComboTree
- EasyUI combotree
- Easyui combotree
- easyui中combotree根据关键字进行本地过滤
- python实现-恒定数量进程池的echo server模型 基于multiprocessing
- 期货里的bid和offer以及自动撮合交易
- IE9以下版本浏览器不兼容JavaScript功能解决方案合集
- 电子地图的概念
- db2expln 查看执行plan
- easyui的combotree之模糊过滤
- WebRTC音视频同步机制实现分析
- 3345 数据结构实验之二叉树六:哈夫曼编码
- iOS:GPUImage强大的图像处理框架
- SVN问题之——org.apache.subversion.javahl.ClientException: Attempted to lock an already-locked dir
- DOS下查看端口占用-netstat -ano
- 开源区块链项目推荐
- Python 装饰器
- 313. Super Ugly Number