I'm becoming a bigger fan day by day of your addon! I realized one drawback

I’m becoming a bigger fan day by day of your addon! I realized one drawback to the “normal” single-select combobox however - I like to display additional information for the items in the dropdown menu on mouseover and I realized the multiselectcombobox does not have a setRenderer functionality.

Do you know of a workaround for this with the multiselectcombobox, or is this a planned feature in the future perhaps? (I’m using the 2.4.1 version of the addon)

Example:

For a single-select combobox I could differentiate between the displays of the selected item, the items in the dropdown menu and the mouseover.

myNormalCombobox.setItemLabelGenerator(item -> item.getValue()); // display selected item as ...
myNormalCombobox.setRenderer(new ComponentRenderer<>(item -> {
Span span = new Span(item.getValue() + item.name()); // display in drop-down menu as ...
span.getElement().setProperty("title", item.getInformation()); // mouseover information
return span;
}));

Hi,

This capability is already available in the web component: https://github.com/gatanaso/multiselect-combo-box/issues/43

The demo has examples of using a custom item template or renderer: https://multiselect-combo-box.web.app/demo/

I haven’t yet added the Java API, but I believe it shouldn’t be too complicated to implement. Not sure if there is a way to work around it, in case you figure it out please let me know.

BR,

Goran