We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.ui.
Interface ComboBox.ItemStyleGenerator
-
All Superinterfaces:
Enclosing class:
public static interface ComboBox.ItemStyleGenerator extends Serializable
ItemStyleGenerator can be used to add custom styles to combo box items shown in the popup. The CSS class name that will be added to the item style names is v-filterselect-item-[style name].
Since:
7.5.6
See Also:
-
-
Method Detail
-
getStyle
String getStyle(ComboBox source, Object itemId)
Called by ComboBox when an item is painted.
Parameters:
source
- the source combo boxitemId
- The itemId of the item to be painted. Can benull
if null selection is allowed.Returns:
The style name to add to this item. (the CSS class name will be v-filterselect-item-[style name]
-
-