dojo小例子(30)FilteringSelect至少输入3个字才会触发查询
发布时间:2020-12-16 21:23:56 所属栏目:百科 来源:网络整理
导读:declare("MyFilteringSelect",FilteringSelect,{// custom min input character count to trigger searchminKeyCount: 3,// override search method,count the input length_startSearch: function (/*String*/key) { if (!key || key.length this.minKeyCou
declare("MyFilteringSelect",FilteringSelect,{ // custom min input character count to trigger search minKeyCount: 3,// override search method,count the input length _startSearch: function (/*String*/key) { if (!key || key.length < this.minKeyCount) { this.closeDropDown(); return; } this.inherited(arguments); } }); 原文参考http://stackoverflow.com/questions/15949425/dijit-filteringselect-with-min-length searchDelay Delay in milliseconds between when user types something and we start searching based on that valuesearchDelay可以设置search开始的间隔时间,也基本能避免每输入一个字/字符就触发查询 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |