-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi guys, I'm trying to customize the look of checkboxes for a theme that I'm making. I've already acomplished it using regular html/javascript/css, but now I'd like to migrate it to ZK. Basically all I need is to create a new span element after the checkbox to complete my code, I found this: zkfiddle.org/sample/2i7m3o7/3-ZK-fancy-checkbox#source-1, which is mostly what I need but only works for zk <= 6. I would like to know which parts of this code need to be change in order for it to work in zk 7, I tried searching in the ZK docs another way to accomplish this, but I wasn't very succesful, please help.
I solve it! My new code is almost the same except that instead of using:
zul.wgt.Checkbox.prototype.bind_ = function (desktop) { ... }
I use:
zk.override(zul.wgt.Checkbox.prototype, checkbox, { bind: function (desktop) { ... } });
This works with ZK EE 7
Asked: 2015-04-24 01:33:40 +0800
Seen: 18 times
Last updated: May 05 '15