Each component of easyui has properties, methods and events. Users can extend them easily.
The properties is defined in jQuery.fn.{plugin}.defaults. For example, the dialog's properties is defined in jQuery.fn.dialog.defaults.
The events(callback functions) is defined in jQuery.fn.{plugin}.defaults also.
The calling method syntax: $('selector').plugin('method', parameter);
Where:
The methods is defined in jQuery.fn.{plugin}.methods. Each method has two parameters: jq and param. The first parameter 'jq' is required, which refers to that jQuery object. The second parameter 'param' refers to the really parameter that pass through the method. For example, to extend a method named 'mymove' for the dialog component, the code looks like this:
Now you can call 'mymove' method to move the dialog to specified position: