itemsCount
Optional. Shows the total number of selected options
itemsCount?: boolean | ((count: number) => string);
Parameters:
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.
Example
const combo = new dhx.Combobox("combo_container", {
multiselection: true,
itemsCount: function (num) {
return num + (num === 1 ? " item" : " items") + " selected";
}
});
Related sample: Combobox. Items count
note
To be able to select several options you need to enable the multiselection option.
Change log:
added in v6.4