浏览代码

#901: Update events docs.

zhixin 10 年之前
父节点
当前提交
a3b1787f0a
共有 3 个文件被更改,包括 123 次插入56 次删除
  1. 24 24
      docs/_i18n/en/documentation/events.md
  2. 20 20
      docs/_i18n/es/documentation/events.md
  3. 79 12
      docs/_i18n/zh-cn/documentation/events.md

+ 24 - 24
docs/_i18n/en/documentation/events.md

@@ -28,30 +28,6 @@
         </td>
     </tr>
     <tr>
-        <td>onClickCell</td>
-        <td>click-cell.bs.table</td>
-        <td>field, value, row, $element</td>
-        <td>
-        Fires when user click a cell, the parameters contains: <br>
-        field: the field name corresponding to the clicked cell<br>
-        value: the data value corresponding to the clicked cell<br>
-        row: the record corresponding to the clicked row, <br>
-        $element: the td element.
-        </td>
-    </tr>
-    <tr>
-        <td>onDblClickCell</td>
-        <td>dbl-click-cell.bs.table</td>
-        <td>field, value, row, $element</td>
-        <td>
-        Fires when user double click a cell, the parameters contains: <br>
-        field: the field name corresponding to the clicked cell<br>
-        value: the data value corresponding to the clicked cell<br>
-        row: the record corresponding to the clicked row, <br>
-        $element: the td element.
-        </td>
-    </tr>
-    <tr>
         <td>onClickRow</td>
         <td>click-row.bs.table</td>
         <td>row, $element</td>
@@ -72,6 +48,30 @@
         </td>
     </tr>
     <tr>
+        <td>onClickCell</td>
+        <td>click-cell.bs.table</td>
+        <td>field, value, row, $element</td>
+        <td>
+        Fires when user click a cell, the parameters contains: <br>
+        field: the field name corresponding to the clicked cell, <br>
+        value: the data value corresponding to the clicked cell, <br>
+        row: the record corresponding to the clicked row, <br>
+        $element: the td element.
+        </td>
+    </tr>
+    <tr>
+        <td>onDblClickCell</td>
+        <td>dbl-click-cell.bs.table</td>
+        <td>field, value, row, $element</td>
+        <td>
+        Fires when user double click a cell, the parameters contains: <br>
+        field: the field name corresponding to the clicked cell, <br>
+        value: the data value corresponding to the clicked cell, <br>
+        row: the record corresponding to the clicked row, <br>
+        $element: the td element.
+        </td>
+    </tr>
+    <tr>
         <td>onSort</td>
         <td>sort.bs.table</td>
         <td>name, order</td>

+ 20 - 20
docs/_i18n/es/documentation/events.md

@@ -27,6 +27,26 @@
         args: datos del evento.</td>
     </tr>
     <tr>
+        <td>onClickRow</td>
+        <td>click-row.bs.table</td>
+        <td>row, $element</td>
+        <td>
+        Se ejecuta cuando el usuario le da click a una fila, los parámetros contienen: <br>
+        row: el registro que corresponde con la fila a la que se le dio click, <br>
+        $element: el elemento tr.
+        </td>
+    </tr>
+    <tr>
+        <td>onDblClickRow</td>
+        <td>dbl-click-row.bs.table</td>
+        <td>row, $element</td>
+        <td>
+        Se ejecuta cuando el usuario le da click a una fila, los parámetros contienen: <br>
+        row: el registro que corresponde con la fila a la que se le dio click, <br>
+        $element: el elemento tr.
+        </td>
+    </tr>
+    <tr>
         <td>onClickCell</td>
         <td>click-cell.bs.table</td>
         <td>field, value, row, $element</td>
@@ -51,26 +71,6 @@
         </td>
     </tr>
     <tr>
-        <td>onClickRow</td>
-        <td>click-row.bs.table</td>
-        <td>row, $element</td>
-        <td>
-        Se ejecuta cuando el usuario le da click a una fila, los parámetros contienen: <br>
-        row: el registro que corresponde con la fila a la que se le dio click, <br>
-        $element: el elemento tr.
-        </td>
-    </tr>
-    <tr>
-        <td>onDblClickRow</td>
-        <td>dbl-click-row.bs.table</td>
-        <td>row, $element</td>
-        <td>
-        Se ejecuta cuando el usuario le da click a una fila, los parámetros contienen: <br>
-        row: el registro que corresponde con la fila a la que se le dio click, <br>
-        $element: el elemento tr.
-        </td>
-    </tr>
-    <tr>
         <td>onSort</td>
         <td>sort.bs.table</td>
         <td>name, order</td>

+ 79 - 12
docs/_i18n/zh-cn/documentation/events.md

@@ -10,10 +10,10 @@
        data-mobile-responsive="true">
     <thead>
     <tr>
-        <th>Option Event</th>
-        <th>jQuery Event</th>
-        <th>Parameter</th>
-        <th>Description</th>
+        <th>Option 事件</th>
+        <th>jQuery 事件</th>
+        <th>参数</th>
+        <th>描述</th>
     </tr>
     </thead>
     <tbody>
@@ -22,9 +22,9 @@
         <td>all.bs.table</td>
         <td>name, args</td>
         <td>
-        Fires when all events trigger, the parameters contains: <br>
-        name: the event name, <br>
-        args: the event data.
+        所有的事件都会触发该事件,参数包括:<br>
+        name:事件名,<br>
+        args:事件的参数。
         </td>
     </tr>
     <tr>
@@ -32,9 +32,9 @@
         <td>click-row.bs.table</td>
         <td>row, $element</td>
         <td>
-        Fires when user click a row, the parameters contains: <br>
-        row: the record corresponding to the clicked row, <br>
-        $element: the tr element.
+        当用户点击某一行的时候触发,参数包括:<br>
+        row:点击行的数据,<br>
+        $element:tr 元素。
         </td>
     </tr>
     <tr>
@@ -42,9 +42,76 @@
         <td>dbl-click-row.bs.table</td>
         <td>row, $element</td>
         <td>
-        Fires when user click a row, the parameters contains: <br>
+        当用户双击某一行的时候触发,参数包括:<br>
+        row:点击行的数据,<br>
+        $element:tr 元素。
+        </td>
+    </tr>
+    <tr>
+        <td>onClickCell</td>
+        <td>click-cell.bs.table</td>
+        <td>field, value, row, $element</td>
+        <td>
+        当用户点击某一列的时候触发,参数包括:<br>
+        field:点击列的 field 名称,<br>
+        value:点击列的 value 值,<br>
+        row:点击列的整行数据,<br>
+        $element:td 元素。
+        </td>
+    </tr>
+    <tr>
+        <td>onDblClickCell</td>
+        <td>dbl-click-cell.bs.table</td>
+        <td>field, value, row, $element</td>
+        <td>
+        当用户双击某一列的时候触发,参数包括:<br>
+        field:点击列的 field 名称,<br>
+        value:点击列的 value 值,<br>
+        row:点击列的整行数据,<br>
+        $element:td 元素。
+        </td>
+    </tr>
+    <tr>
+        <td>onSort</td>
+        <td>sort.bs.table</td>
+        <td>name, order</td>
+        <td>
+        Fires when user sort a column, the parameters contains: <br>
+        name: the sort column field name<br>
+        order: the sort column order.
+        </td>
+    </tr>
+    <tr>
+        <td>onCheck</td>
+        <td>check.bs.table</td>
+        <td>row</td>
+        <td>
+        Fires when user check a row, the parameters contains: <br>
+        row: the record corresponding to the clicked row.
+        </td>
+    </tr>
+    <tr>
+        <td>onUncheck</td>
+        <td>uncheck.bs.table</td>
+        <td>row</td>
+        <td>
+        Fires when user uncheck a row, the parameters contains: <br>
+        row: the record corresponding to the clicked row.
+        </td>
+    </tr>
+    <tr>
+        <td>onCheckAll</td>
+        <td>check-all.bs.table</td>
+        <td>rows</td>
+        <td>
+        Fires when user check all rows, the parameters contains: <br>
+        rows: array of records corresponding to newly checked rows.
+        </td>
+        Fires when user double click a cell, the parameters contains: <br>
+        field: the field name corresponding to the clicked cell<br>
+        value: the data value corresponding to the clicked cell<br>
         row: the record corresponding to the clicked row, <br>
-        $element: the tr element.
+        $element: the td element.
         </td>
     </tr>
     <tr>