combo - fulltext search

Hi, is it possible to search inside combo options with fulltext? Not only from begining of the string…

Hi,

yes, it is possible. You may redefine filter template. The default is

filter:function(item,value){
if (item.value.toString().toLowerCase().indexOf(value.toLowerCase())===0) return true;
return false;
});

You may set the new one as follows:

{
view:“combo”,
id:“combo1”,
filter:function(item,value){
if (item.value.toString().toLowerCase().indexOf(value.toLowerCase())!=-1) return true;
return false;
},

}

or

$$(‘combo1’).define(“filter”,function(item,value){
if (item.value.toString().toLowerCase().indexOf(value.toLowerCase())!=-1) return true;
return false;
});

Hi, you are great… I love this framework and your support/forum…

thanks