0

Upload Button mold trendy

asked 2011-03-19 14:50:34 +0800

moloch gravatar image moloch
606 1 13

Hello, i don t want my upload button look like mold = trendy. i want the mold = os... how can i fix this?

greets

delete flag offensive retag edit

8 Replies

Sort by ยป oldest newest

answered 2011-03-19 20:36:51 +0800

SimonPai gravatar image SimonPai
1696 1

You can specify a library property:

http://books.zkoss.org/wiki/ZK_Configuration_Reference/zk.xml/The_Library_Properties/class.mold

Regards,
Simon

link publish delete flag offensive edit

answered 2011-03-21 02:44:46 +0800

moloch gravatar image moloch
606 1 13

i know this feature. but i don t want my upload button to have the trendy style. and with this feature i just can style all other buttons.
or i don t understand your answer. excuse me.

please help

link publish delete flag offensive edit

answered 2011-03-21 03:20:51 +0800

SimonPai gravatar image SimonPai
1696 1

Ah, sorry, I overlooked your question. When the button is for upload, it has to be in trendy mold. (This is due to browser/HTML limitation.)

Simon

link publish delete flag offensive edit

answered 2011-03-21 07:07:03 +0800

moloch gravatar image moloch
606 1 13

ok. so what i have to do? i want all my buttons to have the same style but not the trendy style.

link publish delete flag offensive edit

answered 2011-03-23 03:50:35 +0800

moloch gravatar image moloch
606 1 13

updated 2011-03-23 03:51:03 +0800

please tell me, i dont have a chance to set the style of my upload button in mold = os ???

link publish delete flag offensive edit

answered 2011-03-23 04:43:07 +0800

mjablonski gravatar image mjablonski
1284 3 5
http://www.jease.org/

It's not possible, you can test it yourself:

<button label="Upload" mold="os" />
<button label="Upload" mold="os" upload="true"/>

As soon as you use the upload-functionality, the button needs to be displayed in trendy-mold due to browser-limitations.

Cheers, Maik

link publish delete flag offensive edit

answered 2011-03-24 03:10:10 +0800

moloch gravatar image moloch
606 1 13

but i don t understand why! what has the style from a button to do with the functionality ?
and now i have to live with to different styles of button in one form when i use standard mold="os"?

link publish delete flag offensive edit

answered 2011-03-31 03:16:47 +0800

SimonPai gravatar image SimonPai
1696 1

In native HTML, we handle upload functionality using a <input type="file"/> element, which consists of a textfield and a button. (You must have seen it in some websites.)

In ZK when we specify upload="true" on a zul trendy Button, it is smart enough to put a hidden <input type="file" /> along with a <form /> element inside the button. But the OS button directly uses native HTML button, so there is no chance to put it inside a OS Button. Trendy and OS buttons differ not only in CSS, but also the whole DOM structure.

Simon

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: 2011-03-19 14:50:34 +0800

Seen: 825 times

Last updated: Mar 31 '11

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