Suggestion: popupCss

It would be very useful to allow a custom CSS for the popup list on a ‘richselect’ and ‘combo’ components. It would be very easy to add this feature. Just add a line next to the ‘popupWidth’ line at 6439:

copy.css = (copy[‘popupCss’]||null);

Thanks,
Kris

Hi,

css property of Richselect is already applied to List in Popup.

Hi Alexandra,

That is true. But I needed a different css for the popup than the component. The use case is the component is part of a colored background associated with address fields. But I wanted the popup to have the typical white background and align the text in the list left justified. The list contains the two character state code and state name. Left justifying the list makes finding the two character state code easier. :slight_smile:

Thanks for your response,
Kris

Hi Kris,

Richselect parenet container has dhx_el_richselect className. Therefore, you may set different styles for this container and List items. If css property is “mycss”, there can be following rules:

/styles for richselect container/
.dhx_el_richselect.mycss{

}

/list items/
.mycss .dhx_list_item{

}