-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I have been able to hide the border for bandbox using the following style in zul file:
<style> .z-bandbox .z-bandbox-inp{ border-style : none; background: #FFF } </style>
But, I can't specify the same through java code.
I can specify multiple attributes using style as follows:
component.setStyle("border-style : none; background: #FFF");
Its default to .z-bandbox class. But, how can I specify for .z-bandbox-inp?
Otherway, can I possible to specify attributes for multiple classes in a single style statement. Such as below:
component.setStyle(".z-bandbox .z-bandbox-inp{border-style : none; background: #FFF}");
Thanks.
I have solved this, by declaring the style in the main zul page and referring my bandbox style in the java code as follows:
component.setStyle("mybandbox");
If there any other better way of doing this, then please post here.
Thanks.
please show all the whole code what you set in the main zul.
<style .myband... />
Hi terrytornado, this is the code, I have used :
<style> .mybandbox .z-bandbox .z-bandbox-inp { border-style : none; background: #FFF } </style>
Thanks.
Asked: 2009-09-04 10:57:55 +0800
Seen: 165 times
Last updated: Sep 07 '09