EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: thiago_brum on May 24, 2018, 05:21:11 PM



Title: Combobox minimal user typed text length on a local mode
Post by: thiago_brum on May 24, 2018, 05:21:11 PM
How can I set the minimal user typed text length (ex: 3 characters) when the combobox is set to LOCAL mode?


Title: Re: Combobox minimal user typed text length on a local mode
Post by: jarry on May 26, 2018, 06:19:31 AM
Try to override the keyHandler.query function.
Code:
$('#cc').combobox({
keyHandler: $.extend({}, $.fn.combobox.defaults.keyHandler, {
query: function(q,e){
if (q.length>=3){
$.fn.combobox.defaults.keyHandler.query.call(this,q,e);
}
}
})
})


Title: [SOLVED] Re: Combobox minimal user typed text length on a local mode
Post by: thiago_brum on May 28, 2018, 05:25:59 AM
Perfect. Thanks!