-
FEATURED COMPONENTS
First time here? Check out the FAQ!
How can we dynamically change the css in ZK theme from class level. As per my req2uirement I have to chage the css in ZK theme after login, We will select css on the basis of loged in user.
create a class implementing ThemeProvider interface ,use getThemeURIs() method to set different CSS style.You have to create a new cookie for that theme and then refresh your UI.And retrieve those cookie in getThemeURIs(),give your CSS file path to the uri parameter.
In zk.xml you have to add a element
<desktop-config>
<theme-provider-class>package.yourclass</theme-provider-class>
</desktop-config>
see here for better understanding.
great :) works quite well
Asked: 2013-04-16 04:59:46 +0800
Seen: 75 times
Last updated: Oct 30 '14