-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Could someone help me with creating a CategoryBar like component by using ComponentRenderer not dsp.
Thanks
Marius
Hi,
There are some sample code in zkmax.jar,
you can download the source code by SVN,
https://sourceforge.net/scm/?type=svn&group_id=152762
Please refer to the class files in zkmax/src/org/zkoss/zkmax/zul/render folder.
I have implemented the ComponentRender interface, and i've done something like this:
Toolbarbutton but = new Toolbarbutton("cartman", "/img/cartman.jpg");
but.setMold("class:org.zktest.ToolbarbuttonFancy");
Where
org.zktest.ToolbarbuttonFancy implements ComponentRender
But i'm receiving an exception. I know that my approach is wrong, but i don't know how to modify the look of the Toolbarbutton.
Hi,
The parameter of setMold method for component is not corrent,
please refer to the page,
http://docs.zkoss.org/wiki/Style_Guide
Toolbarbutton has only one mold "default"
Hi,
It seems you need to create a new component,
component developer's guide may help,
http://www.zkoss.org/doc/compdevguide/
To make things simple,
you could customize it as a macro component if possible,
http://www.zkoss.org/zkdemo/userguide/#m1
hi,
I am also working on creating a CategoryBar like component and didn't get any idea how to implement on it ...
It would be most appreciate if anyone can share more infomation or sample code on it.
Thanks a lot!
/Angus
Hi Angus,
You can download the source of ZKDEMO and dig in the index.zul file.
/Jumper
Asked: 2009-05-18 10:58:59 +0800
Seen: 504 times
Last updated: Jul 24 '09