Sie sind nicht angemeldet.

261

Dienstag, 10. Oktober 2023, 20:02

changing 'cssclass' of layer possible?

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="BAUPHASEN-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!

262

Montag, 16. Oktober 2023, 21:47

is this a bug?

EDIT: Ignore this. I'm not sure why the below was happening before but today, saving the tour.xml file using a 3rd part xml editor does not reset the menu thumbnails.


When setting the startup view for each scene via krpano tools, the menu thumbnails automatically update to the correct view. Saving the tour.xml file keeps the thumbnails views as set via the startup view tool.

However, if I then save the tour.xml file using a 3rd part xml editor (I'm using XML Notepad) the menu thumbnails revert back to their default view. In previous versions this did not happen.

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »thomasmcvea« (Gestern, 11:26)


Ähnliche Themen