Introduction"
Robertwenzel (talk | contribs) m (→jQuery) |
|||
Line 20: | Line 20: | ||
For API details, please refer to [http://docs.jquery.com/Main_Page jQuery Documentation] for details. | For API details, please refer to [http://docs.jquery.com/Main_Page jQuery Documentation] for details. | ||
− | + | To obtain the jQuery version bundled with your ZK version enter <tt>jq.fn.jquery</tt> into Console tab of a developer tool. | |
{{ZKClient-sideReferenceHeadingToc}} | {{ZKClient-sideReferenceHeadingToc}} | ||
{{ZKClient-sideReferencePageFooter}} | {{ZKClient-sideReferencePageFooter}} |
Revision as of 02:20, 14 November 2016
ZK Client-side Reference is the reference for client-side programming, including component development.
Client-side programming is optional to application developers. However, if you'd like to have more control of the client, please refer to the General Control and Customization sections. The other sections are more for component development.
If you would like to develop a component, you should read ZK Component Development Essentials first for introduction. Then, you could reference this book if there is an issue.
jQuery
ZK Client Engine is based on jQuery, so you can use jq or $ as a jQuery object like:
$( "div" ).click(function() {
//...
});
jq(mySelector).css( "background-color" );
For API details, please refer to jQuery Documentation for details.
To obtain the jQuery version bundled with your ZK version enter jq.fn.jquery into Console tab of a developer tool.