set style in combobox caption value

Is it possible to set style in combox caption value

I’m not sure if I understood correctly what you want, but you can use the addStyleName method of any component to add your own style name, which will also be shared with the component’s caption.

So if you call e.g. yourComboBox.addStyleName(“foobar”); you will get the actual widget decorated with “foobar” css class name, and its caption will have “v-caption-foobar” css class name. You can then target these from your stylesheet.