0

how I can use styles for different trees?

asked 2015-02-21 16:32:17 +0800

eskaflou gravatar image eskaflou
1

Hi everybody, my question are about I can use different styles for my trees, I have two trees, the fisrt tree I use it with menus obviously this tree is in the index and the other tree I use it a modal, I execute the modal when the user wants to add another menu then he can choose the father of that menu. I want to apply the style:

span.z-tree-root-open, span.z-tree-root-close{ background-image: none; }

To avoid show the cartoons of the menu tree of the index but... When I applied this style twice trees have the same style and only I don't want show in the index but if only elsewhere.

Regards and thanks.

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-02-21 18:34:24 +0800

Darksu gravatar image Darksu
1991 1 4

Hello eskaflou,

It sounds like the components share the common styling. Another thing that you could consider is using the zclass in order to reset the styling and add a new one.

Please refer to the following url:

http://books.zkoss.org/wiki/ZKStyleCustomizationGuide/ZKCSSClassDesign/Zclass

Best Regards,

Darksu

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: 2015-02-21 16:32:17 +0800

Seen: 6 times

Last updated: Feb 21 '15

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