-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello, i don t want my upload button look like mold = trendy. i want the mold = os... how can i fix this?
greets
You can specify a library property:
http://books.zkoss.org/wiki/ZK_Configuration_Reference/zk.xml/The_Library_Properties/class.mold
Regards,
Simon
please tell me, i dont have a chance to set the style of my upload button in mold = os ???
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
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
Asked: 2011-03-19 14:50:34 +0800
Seen: 826 times
Last updated: Mar 31 '11