Quantcast
Channel: Mendix Forum Questions
Viewing all articles
Browse latest Browse all 82398

Using the StyleSheet switcher Widget

$
0
0

Hi,

I am currently developing in 6.10.3, and struggling to get this StyleSheet switcher widget to work. The idea is to have two different stylesheets live in the application as we slowly remodel different parts of it. So upon landing on the homepage you would receive style sheet A, and then after navigating to a newly remodeled page, you would receive style sheet B. 

The issue that I am running into, is once a user has style sheet A and then navigates to a page that needs style sheet B, the widget is just adding the style sheet B without clearing out style sheet A. 

Does anyone know if its possible to accomplish what I'm trying to do with this widget? Or if the intended use of it is to only be able to load a certain style sheet upon log in, and  not be able to flip flop within the applicatiton?

 

 

 

EDIT:

 

Thank you guys for your help. I figured out the issue had to do with the return value being the same as the default library. 

 

So when I want style sheet A,  I have a microflow that returns the string "lib-a", and the default library is "lib-b".

When I want style sheet B, I return "lib-b", and set the default to "lib-a".

 

Not too sure why this fixed the issue but it works now. 


Viewing all articles
Browse latest Browse all 82398

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>