JQueryEasyUIAPI Chinese Document-Documentation document _ jquery

Source: Internet
Author: User
JQueryEasyUIAPI Chinese Document-Documentation document. If you are using jQueryEasyUI, refer. Each easyui component has properties, methods, and events, which can be easily extended.
Features
The features are defined in jQuery. fn. {plugin}. defaults. For example, the dialog feature is defined in jQuery. fn. dialog. defaults.
Event
The event (callback function) is also defined in jQuery. fn. {plugin}. defaults.
Method
The method is defined in jQuery. fn. {plugin}. methods. Each method has two parameters: jq and param. The first parameter 'jq' is required. It refers to the jQuery object. The second parameter 'param' refers to the real parameter passed to the method. For example, to extend a method named 'mymove 'to the dialog component, the code looks like this:

The Code is as follows:


$. Extend ($. fn. dialog. methods ,{
Mymove: function (jq, newposition ){
Return jq. each (function (){
$ (This). dialog ('move ', newposition );
});
}
});


Now you can call the 'mymove 'method to move the dialog to a specified position:

The Code is as follows:


$ ('# Dd'). dialog ('mymove ',{
Left: 200,
Maximum: 100
});

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.