Skip to main content

itemsCount

shows the total number of selected options

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

Example

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

Related sample: Combobox. Items Count

As a function takes one parameter:

  • count - (number) the number of options

and should return a template for displaying a result.

note

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

Change log:

added in v6.4