DOM Events
From Documentation
A DOM event (Event) is the DOM-level event that is usually triggered by the browser. It is usually listened by the implementation of a widget, rather than the client application.
Since ZK Client Engine intercepts most DOM events and encapsulate them into the widget events, it is suggested to listen the widget events, if possible, for better performance (by overriding the corresponding methods, such as Widget.doClick_(Event)).
How to Listen and Unlisten
There are two different approaches to listen a DOM event: Widget.domListen_(DOMElement, String, Object) and jQuery (jq).
Use domListen_ and domUnlisten_
Use jQuery
When to Listen and Unlisten
Version History
Version | Date | Content |
---|---|---|