-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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,
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
Asked: 2015-01-16 08:48:58 +0800
Seen: 13 times
Last updated: Jan 19 '15