Skip to main content


Optional. Sets a custom function for filtering Combo Box options

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


The filter property is a custom function which 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.


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

Related sample: Combobox. Custom filter