Skip to main content


Optional. Shows the total number of selected options

itemsCount?: boolean | ((count: number) => string);


The itemsCount property can be specified either as a boolean value or as a function. As a function it takes one parameter:

  • count: number - the number of options

and should return a template for displaying a result.


const combo = new dhx.Combobox("combo_container", {
multiselection: true,
itemsCount: function (num) {
return num + (num === 1 ? " item" : " items") + " selected";

Related sample: Combobox. Items count


To be able to select several options you need to enable the multiselection option.

Change log:

added in v6.4