Hello,
A customer have 2 applications accessible from the same menu.
We need to reposition some constants on the screen with a script.
But each application does not have the same presentation, so there will be two different skins.
Question : How to swap beetween skins ?
Thank you
Skin swap
-
- Profound User
- Posts: 62
- Joined: Sat Feb 18, 2012 12:03 pm
- First Name: Patrick
- Last Name: THOMAS
- Company Name: Oo2
- Country: France
- Contact:
-
- Experienced User
- Posts: 2711
- Joined: Wed Aug 01, 2012 8:58 am
- First Name: Scott
- Last Name: Klement
- Company Name: Profound Logic
- City: Milwaukee
- State / Province: Wisconsin
Re: Skin swap
Swapping skins is an "expensive" (in terms of performance) thing to do. The skin is actually what starts Genie and makes it all work. You could say that Genie runs inside of the skin. So in order to change the skin, you have to reload everything from the server.
So, I don't recommend swapping skins. It's better to modify one skin so that it can handle two different types of formatting.
However, if you really want to try swapping them, it can be done from JavaScript by coding:
For example, to swich to the hybrid skin:
So, I don't recommend swapping skins. It's better to modify one skin so that it can handle two different types of formatting.
However, if you really want to try swapping them, it can be done from JavaScript by coding:
Code: Select all
pui.refresh({ skin: "skin-name-here" });
Code: Select all
pui.refresh({ skin: "hybrid" });
Who is online
Users browsing this forum: No registered users and 5 guests