DocumentationDocument
The stormTranslation. If this is not the case, please correct me. Reprinted, please keep the source!
EachEasyuiAll components have features (Property), Method (MethodAnd events (Event), Users can easily expand them.
Features
Feature inJquery. FN. {plugin}. defaults. For example,DialogFeatures inJquery. FN. Dialog. defaults.
Event
The event (callback function) is also inJquery. FN. {plugin}. defaults.
Method
Method in Jquery. FN. {plugin}. Methods . Each method has two parameters: JQ And Param . First Parameter 'Jq' Is required, it refers Jquery Object. Second Parameter 'Param' Is the real parameter passed to the method. For example Dialog Component Extension 'Mymove' Method,CodeIt looks like this:
1. $. extend ($. FN. dialog. methods, {
2. mymove: function (JQ, newposition) {
3. return JQ. each ( function () {
4. $ ( This ). dialog ( 'move ' , newposition );
5. });
6. }
7.});
now you can call 'mymove ' dialog move to a specified location:
1. $ ( '# dd' ). dialog ( 'mymove ' , {
2. left: 200,
3. top: 100
4.});
The stormTranslation. If this is not the case, please correct me. Reprinted, please keep the source!