Vaadin OptionGroup set width only for one checkbox

126 views Asked by At

I have OptionGroup component and many checkboxes in there. I want to change width (or another css property) on only one checkbox.

Is it possible to do that?

1

There are 1 answers

0
Steffen Harbich On

It seems to be not possible with the current Vaadin API (7.6.6) but there is an add-on FlexibleOptionGroup which supports individual items. If your item in the OptionGroup is at a fixed position, you could use n-th element selector of CSS to change its style. The Valo theme demo shows an OptionGroup with explicit width, maybe this fits in your case.