Hello,
i'm trying to assign a new style to a layer via cssclass but doesn't seem to work, is that not possible?
do I have to work the old way with 'layer.loadstyle' and no- css styles ?
xml:
<layer name="menucontainer" type="container" alpha="0" autoalpha="true" flowchildren="v"childflowspacing="10" >
<layer id="menubutton" cssclass="menubutton" type="text" html="INFO" width="145" padding="8 16" align="right" onclick="menuclick" />
</layer>
js:
krpano.set('layer[menubutton].cssclass', 'menuitemselected');
style.css:
.menubotton {
color: red;
}
.menuitemselected{
color: black;
}
krpano 1.21 (build 2023-04-30)
Danke!