0

Tabbox mold accordion: problems in changing style

asked 2008-12-09 13:44:34 +0800

Emanuele gravatar image Emanuele
117 1

Hi eveyone, I'm trying to change the style of a tabbox with mold="accordion". My code is something like this:

		<style>
			.z-tab-accordion-text{
				color:red; 
				font-size:16pt;
			}
		</style>
		<tabbox mold="accordion">
			<tabs>
                        ...
			</tabs>
			<tabpanels>
                        ...
                        </tabpanels>
                </tabbox>


... but it doesn't work. Where is the mistake?

Thanks

delete flag offensive retag edit

4 Replies

Sort by ยป oldest newest

answered 2008-12-10 01:06:52 +0800

RyanWu gravatar image RyanWu
533 2
about.me/flyworld

it works good for me
following is my code

<window title="My First Window" border="normal" width="200px">
	<style>
		.z-tab-accordion-text{ 
			color:red; font-size:16pt; 
		}
	</style>
	<tabbox mold="accordion">
		<tabs>
			<tab label="test" />
		</tabs>
		<tabpanels>
			<tabpanel></tabpanel>
		</tabpanels>
	</tabbox>
</window>

link publish delete flag offensive edit

answered 2008-12-10 10:03:28 +0800

Emanuele gravatar image Emanuele
117 1

Thank tou for your reply, Ryan. I tried your code with copy and paste (nothing modified), but it does not work for me. Which ZK version are you using? I'm using 3.5.1. I tried it with IE and also with Mozilla...

link publish delete flag offensive edit

answered 2008-12-10 16:54:01 +0800

Emanuele gravatar image Emanuele
117 1

I tried the following code on ZK Live Demo:

<hbox>
        <style>
		.z-tab-accordion-text{ 
			color:red; font-size:16pt; 
		}
	</style>

	<tabbox width="250px">
		<tabs>
			<tab label="Tab 1" closable="true"/>
			<tab label="Tab 2" closable="true"/>
			<tab label="Tab 3" closable="true"/>
			<tab label="Tab 4" closable="true"/>
			<tab label="Tab 5" closable="true"/>
		</tabs>
		<tabpanels>
			<tabpanel>This is panel 1</tabpanel>
			<tabpanel>This is panel 2
		The second panel</tabpanel>
			<tabpanel>This is panel 3</tabpanel>
			<tabpanel>This is panel 4</tabpanel>
			<tabpanel>This is panel 5</tabpanel>
		</tabpanels>
	</tabbox>
	<vbox>
		<tabbox id="tb" width="400px" mold="accordion">
			<tabs>
				<tab label="Tab 1"/>
				<tab label="Tab 2"/>
			</tabs>
			<tabpanels>
				<tabpanel>
					<tabbox id="tb2" orient="vertical">
						<tabs width="20px">
							<tab label="A"/>
							<tab label="B"/>
							<tab label="C"/>
							<tab label="D"/>
							<tab label="E"/>
						</tabs>
						<tabpanels>
							<tabpanel>This is panel A</tabpanel>
							<tabpanel>This is panel B</tabpanel>
							<tabpanel>This is panel C</tabpanel>
							<tabpanel>This is panel D</tabpanel>
							<tabpanel>This is panel E</tabpanel>
						</tabpanels>
					</tabbox>
					<checkbox label="Horizonal orient" onCheck='tb2.orient=self.checked?"horizontal":"vertical"'/>
				</tabpanel>
				<tabpanel>
					This is panel 2
					The second panel
				</tabpanel>
			</tabpanels>
		</tabbox>
		<checkbox label="Use light mold" onCheck='tb.mold=self.checked?"accordion-lite":"accordion"'/>
	</vbox>
</hbox>


and it works correctly. But, if I try to run exactly the same code, with the same browser, but running on server Tomcat installed on my machine, the style does not change. Maybe a different version of Tomcat? I'm using Tomcat 5.5.

Any suggestions?

link publish delete flag offensive edit

answered 2008-12-10 17:50:07 +0800

Emanuele gravatar image Emanuele
117 1

OK!! I resolved the problem migrating to ZK 3.5.2. Evidently it was a bug contained in 3.5.1 version.

link publish delete flag offensive edit
Your reply
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

RSS

Stats

Asked: 2008-12-09 13:44:34 +0800

Seen: 227 times

Last updated: Dec 10 '08

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