filter
sets a custom function for filtering Combo Box options
filter?: (item: any, target: string) => boolean;
Example
function mySearch(item, target) {
// your filtering logic here
}
const 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.