EasyUI Forum
April 16, 2024, 06:48:33 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: feature request: combobox defaults  (Read 11547 times)
chrwei
Full Member
***
Posts: 219


View Profile Email
« on: August 15, 2013, 08:02:56 AM »

I'd like to request that the autocomplete feature default to case insensitive.  I feel it makes more sense in the way people expect these things to work.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: August 16, 2013, 06:44:35 PM »

Please override the $.fn.combobox.defaults.filter function to do so.
Code:
<script>
  $.fn.combobox.defaults.filter = function(q){
var opts = $(this).combobox('options');
return row[opts.textField].toLowerCase().indexOf(q.toLowerCase()) == 0;
  };
</script>
Logged
chrwei
Full Member
***
Posts: 219


View Profile Email
« Reply #2 on: August 19, 2013, 02:05:13 PM »

I understand how to override it.  I think it would benefit the project in general to make this the default behavior.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!