Introduction"
Line 7: | Line 7: | ||
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. | 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. | ||
− | ZK Client Engine is based on [http://jquery.com/ jQuery] | + | = jQuery = |
+ | ZK Client Engine is based on [http://jquery.com/ jQuery], so you can use '''<tt>jq</tt>''' or '''<tt>$</tt>''' as a jQuery object like: | ||
+ | |||
+ | <source lang='javascript'> | ||
+ | $( "div" ).click(function() { | ||
+ | //... | ||
+ | }); | ||
+ | |||
+ | jq(mySelector).css( "background-color" ); | ||
+ | </source> | ||
+ | |||
+ | For API details, please refer to [http://docs.jquery.com/Main_Page jQuery Documentation] for details. | ||
+ | |||
+ | You can know the bundled jQuery version by entering <tt>jq.fn.jquery</tt> in Console tab of a developer tool. | ||
{{ZKClient-sideReferenceHeadingToc}} | {{ZKClient-sideReferenceHeadingToc}} | ||
{{ZKClient-sideReferencePageFooter}} | {{ZKClient-sideReferencePageFooter}} |
Revision as of 02:03, 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.
You can know the bundled jQuery version by entering jq.fn.jquery in Console tab of a developer tool.