Check documentation for the latest version of dhtmlxSuite filter DHTMLX Docs

filter

filters combo

void filter(function handler,boolean showList);
handlerfunctionuser-defined filter function
showListbooleanshow list after filtering (true by default)

Example

// keep options started from 'a'
var mask = "a";
myCombo.filter(function(opt){
    return opt.text.match(new RegExp("^"+mask.toLowerCase(),"i"))!=null;
}, false);

Change log

added in version 4.0
showList param added in 4.1.1

Back to top