Declaration of widget class

asked 2013-03-21 11:53:45 +0800

this post is marked as community wiki

This post is a wiki. Anyone with karma >100 is welcome to improve it.

updated 2013-03-21 12:08:02 +0800

AmandeepJ gravatar image AmandeepJ
15 1

Hi, I am getting cls undefined in register() function.

var cls = zk.$import(clsnm);
cls.prototype.className = clsnm;

The documentation says

Notice that the class must be declared before calling this method. In other words, zk.$import(clsnm) must return the class of the specified class name.

Where do I need to delcare class class name ?

Link of register function : http://www.zkoss.org/javadoc/6.5.1/jsdoc/zk/Widget.html#register%28_global_.String,%20boolean%29 (Link)

delete flag offensive retag edit
Be the first one to answer this question!
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




Asked: 2013-03-21 11:53:45 +0800

Seen: 10 times

Last updated: Mar 21 '13

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