0

how to dynamic change mold

asked 2014-04-29 16:10:16 +0800

hiepgau gravatar image hiepgau
11 2

updated 2014-04-29 18:18:37 +0800

chillworld gravatar image chillworld flag of Belgium
5357 4 9
https://github.com/chillw...

I want dynamic change mold of all control, because i call:

Library.setProperty("org.zkoss.zul.Button.mold", "trendy");
Library.setProperty("org.zkoss.zul.Menupopup.mold", "trendy");
Library.setProperty("org.zkoss.zkmax.zul.Navbar.mold", "trendy");
Library.setProperty("org.zkoss.zul.Paging.mold", "trendy");
Library.setProperty("org.zkoss.zul.Panel.mold", "trendy");

after refress i see no effect. how to dynamic change mold?

delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2014-08-17 09:59:06 +0800

Darksu gravatar image Darksu
1991 1 4

Hello hiepgau,

Please look at the link below:

http://books.zkoss.org/wiki/ZKDeveloper'sGuide/ZKinDepth/Style_Customization/Mold

You could dynamically change the mold by use of the setMold method in the Component interface.

Best Regards,

Darksu

link publish delete flag offensive edit
0

answered 2014-09-12 15:37:40 +0800

hiepgau gravatar image hiepgau
11 2

Hi @Darksu, thanks for your help. My wish is make easy way to support muilti theme. when user1 login he can select a theme1 when user2 login he can select other theme2. because mold must maintain per session. Component.setMold just change mold per component object.

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2014-04-29 16:10:16 +0800

Seen: 32 times

Last updated: Sep 12 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More