Browse Source

Fix #19: update the docs.

zhixin 11 years ago
parent
commit
197fec868d
2 changed files with 11 additions and 3 deletions
  1. 8 2
      docs/docs.js
  2. 3 1
      docs/documentation.html

+ 8 - 2
docs/docs.js

@@ -286,8 +286,14 @@ $(function () {
             data: [
                 {
                     name: 'onClickRow',
-                    parameter: 'row',
-                    description: 'Fires when user click a row, the parameters contains: <br />row: the record corresponding to the clicked row.'},
+                    parameter: 'row, $element',
+                    description: 'Fires when user click a row, the parameters contains: <br />row: the record corresponding to the clicked row, <br>$element: the tr element.'
+                },
+                {
+                    name: 'onDblClickRow',
+                    parameter: 'row, $element',
+                    description: 'Fires when user click a row, the parameters contains: <br />row: the record corresponding to the clicked row, <br>$element: the tr element.'
+                },
                 {
                     name: 'onSort',
                     parameter: 'name, order',

+ 3 - 1
docs/documentation.html

@@ -139,6 +139,7 @@
         idField: undefined,
         cardView: false,
         clickToSelect: false,
+        singleSelect: false,
         toolbar: undefined,
 
         rowStyle: function(row, index) {return {};},
@@ -159,7 +160,8 @@
             return 'No matching records found';
         },
 
-        onClickRow: function(item) {return false;},
+        onClickRow: function(item, $element) {return false;},
+        onDblClickRow: function(item, $element) {return false;},
         onSort: function(name, order) {return false;},
         onCheck: function(row) {return false;},
         onUncheck: function(row) {return false;},