-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Example code:
<zk> <style> .mybandbox .z-bandbox .z-bandbox-inp { background: #F0F } .mycombobox .z-combobox .z-combobox-inp { background: #F0F } </style> <window title="Style Demo" border="normal"> <grid id="receiptsGrid" sclass="mybandbox"> <columns> <column label="" /> <column label="" /> </columns> <rows> <row> <bandbox buttonVisible="false"> <bandpopup></bandpopup> </bandbox> <combobox buttonVisible="false"> <comboitem label="" /> <comboitem label="" /> </combobox> </row> <row> <bandbox buttonVisible="false"> <bandpopup></bandpopup> </bandbox> <combobox buttonVisible="false"> <comboitem label="" /> <comboitem label="" /> </combobox> </row> </rows> </grid> </window> </zk>
I have declared two styles, one for bandbox and the other for combobox.
But, in the grid how can I specify both in sclass attribute?
Otherwise, can I have two sets under a single style name?
I tried as below, but it doesn't works for me:
<style> .mybandbox .z-bandbox .z-bandbox-inp .z-combobox .z-combobox-inp { background: #F0F } </style>
Note: I know that, I can individually specify the sclass to individual components in the grid. But, I want to check whether there is any other efficient way of doing the same.
Thanks.
I have solved by referring two styles divided by space as you mentioned.
Sorry, I posted without removing the style names.
I have updated my previous post.
Thank you.
Thank you, comanche :)
That's the thing am exactly looking for.
I have achieve this by setting the style as default as shown below:
<style> .z-bandbox .z-bandbox-inp { background: #F0F } .z-combobox .z-combobox-inp { background: #F0F } </style>
But, I have bandbox and combobox outside the grid, which should not be affected by my custom style.
Thanks.
Asked: 2009-09-10 13:08:17 +0800
Seen: 685 times
Last updated: Sep 10 '09