1

Combobutton zclass

asked 2015-06-22 15:30:25 +0800

BrunoPereira gravatar image BrunoPereira
11 1

Hi all,

I was trying to create my own style for the combobutton. In order to achieve this I set the zclass attribute in the zul for the new style...however when the zul is rendered, the zk seems to be ignoring the 'zclass' attribute.

I create a basic sample in fiddle: htt://zkfiddle.org/sample/15c60hj/6-Combobutton-zclass. As you can see when running the html class associated with the component is the default style "z-combobutton" and not the one specified in zul. However when running the same fiddle in version 6 (6.5.7) the class specified in the zul is take in consideration... but not in version 7++.

Could you provide me some help? It's a bug?

Thanks, Bruno

delete flag offensive retag edit

Comments

for me it looks like a bug, I can't even find any reference to your zclass in the fiddle, while it should be working.

chillworld ( 2015-06-24 14:55:56 +0800 )edit

6 Answers

Sort by ยป oldest newest most voted
0

answered 2015-06-24 14:25:13 +0800

julioucla gravatar image julioucla
1

Use this. You especify zk class.

<style>

.z-combobutton-text, .z-menuitem-text, .z-menu-text{
    color:red !important;
}

</style>

link publish delete flag offensive edit
0

answered 2015-06-26 11:33:49 +0800

BrunoPereira gravatar image BrunoPereira
11 1

I intend to create a new style. And be able to use style 1 or 2 for the combobutton, so overwriting the default style isn't a option :(

But thanks for the suggestion.

link publish delete flag offensive edit
0

answered 2015-06-26 14:41:20 +0800

claudioveryant gravatar image claudioveryant
9 1

updated 2015-06-26 14:43:12 +0800

Using ZK 7 and setting "sclass" not "zclass":

<style>
.onestyle .z-combobutton-text, .z-menuitem-text, .z-menu-text {
    color:red !important;
}
.twostyle .z-combobutton-text, .z-menuitem-text, .z-menu-text {
   color:green !important;   
   font-family: Tall Paul;
   font-size: 45px;
}
</style>

<combobutton label="menu popup" sclass="onestyle">
...
</combobutton>

<combobutton label="menu popup" sclass="twostyle">
...
</combobutton>
link publish delete flag offensive edit

Comments

Thanks, the style I intend to create is a little more complex than the sample I provide. But it could be achievable by the way you mention,although it will take me more time to keep overwriting all the required classes :(

BrunoPereira ( 2015-06-29 12:07:06 +0800 )edit
0

answered 2015-06-29 11:43:35 +0800

durniczeq gravatar image durniczeq
105 1
http://www.kredyt-dla-cie...

thanks for this

link publish delete flag offensive edit
0

answered 2015-07-01 11:41:28 +0800

mortadela gravatar image mortadela
1
http://www.portfelfinanso...

i ll use it my own :)

link publish delete flag offensive edit
0

answered 2015-07-01 15:56:02 +0800

kiullkaszka gravatar image kiullkaszka
1

This is so amazing!

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-06-22 15:30:25 +0800

Seen: 37 times

Last updated: Jul 01 '15

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