Each easyui component has properties, methods and events, and users can easily extend them.
Characteristics
Characteristics are defined in jQuery.fn.{plugin}.defaults. For example, the properties of dialog are defined in jQuery.fn.dialog.defaults.
Event
Event (callback function) is also defined in jQuery.fn.{plugin}.defaults.
Methods
Methods are defined in jQuery.fn.{plugin}.methods. Each method has two parameters: jq and param. The first parameter 'jq' is required and refers to the jQuery object. The second parameter 'param' refers to the actual parameter passed to the method. For example, extend a method named 'mymove' to the dialog component. The code looks like this: