0

initialize widget

asked 2015-01-16 08:48:58 +0800

idosil gravatar image idosil
1

Hi, there. I'm developing a zk native widget wich uses a 3rd party js lib. On the client side, what it the right place to initialize it? Is it the bind_ method or is there a better place (maybe a lifecycle listener exists)?

Regards,

delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2015-01-18 10:07:49 +0800

Darksu gravatar image Darksu
1991 1 4

Hello idosil,

Please refer to the following small talk:

http://books.zkoss.org/wiki/SmallTalks/2013/February/Integrate3rdPartyJavascriptLibrariesInZKUsingClientsideController

Where in the section lifecycle it states:

The DOM tree representing the visual part of widget is created and attached to html document, followed by a call to bind_ method. bind_ is where typically any widget events are registered and also widget specific initialization can be done.

Best Regards,

Darksu

link publish delete flag offensive edit
0

answered 2015-01-19 14:36:02 +0800

idosil gravatar image idosil
1

Doubt solved. Thanks, Darksu.

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-01-16 08:48:58 +0800

Seen: 13 times

Last updated: Jan 19 '15

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