I want to use the styleClass
property of the Togglebutton
component. As described in another post, I thought it is straight forward by using:
styleClass="test"
In my css-file I then set some attributes, like
.test { background: red; }
But this does not work. Working with style
is perfectly clear by using [style]="{'background':'red'}"
No problem with that. But styleClass
does not work. Here is the component. Any idea how to use styleClass
?