Components with multiple styles

In Vaadin most components have an addStyleName functionality where you can repeatedly add different style names. In Cuba-Platform you only have setStyleName. How can you add multiple styles e.g. ValoTheme.LABEL_H4 and ValoTheme.LABEL_COLORED?


Now you can add multiple style names separated with spaces in setStyleName call or in stylename property in XML/Studio:

label.setStyleName(ValoTheme.LABEL_H4 + " " + ValoTheme.LABEL_COLORED);

We will add addStyleName / removeStyleName functionality in Release 6.4, please see attached YouTrack issue.

:ticket: See the following issue in our bug tracker: