Skip to main content


sets a custom function for filtering Combo Box options

filter?: (item: any, target: string) => boolean;


function mySearch(item, target) {    // your filtering logic here            }var combo = new dhx.Combobox("combo_container", {    filter: mySearch});

Related sample: Combobox. Custom Filter

A custom function takes two parameters:

item(object) an item of data collection
target(string) the string to compare to

and should return true/false to specify whether an item should be displayed in the filtered list of options.