0

Create a span element after a checkbox in a script tag

asked 2015-04-24 01:33:40 +0800

cvalentina gravatar image cvalentina
3 1

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.

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-05-05 02:33:31 +0800

cvalentina gravatar image cvalentina
3 1

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

link publish delete flag offensive edit
Your answer
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
1 follower

RSS

Stats

Asked: 2015-04-24 01:33:40 +0800

Seen: 18 times

Last updated: May 05 '15

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