|
@@ -10,10 +10,10 @@
|
|
|
data-mobile-responsive="true">
|
|
data-mobile-responsive="true">
|
|
|
<thead>
|
|
<thead>
|
|
|
<tr>
|
|
<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>
|
|
</tr>
|
|
|
</thead>
|
|
</thead>
|
|
|
<tbody>
|
|
<tbody>
|
|
@@ -22,9 +22,9 @@
|
|
|
<td>all.bs.table</td>
|
|
<td>all.bs.table</td>
|
|
|
<td>name, args</td>
|
|
<td>name, args</td>
|
|
|
<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>
|
|
</td>
|
|
|
</tr>
|
|
</tr>
|
|
|
<tr>
|
|
<tr>
|
|
@@ -32,9 +32,9 @@
|
|
|
<td>click-row.bs.table</td>
|
|
<td>click-row.bs.table</td>
|
|
|
<td>row, $element</td>
|
|
<td>row, $element</td>
|
|
|
<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>
|
|
</td>
|
|
|
</tr>
|
|
</tr>
|
|
|
<tr>
|
|
<tr>
|
|
@@ -42,9 +42,76 @@
|
|
|
<td>dbl-click-row.bs.table</td>
|
|
<td>dbl-click-row.bs.table</td>
|
|
|
<td>row, $element</td>
|
|
<td>row, $element</td>
|
|
|
<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>
|
|
row: the record corresponding to the clicked row, <br>
|
|
|
- $element: the tr element.
|
|
|
|
|
|
|
+ $element: the td element.
|
|
|
</td>
|
|
</td>
|
|
|
</tr>
|
|
</tr>
|
|
|
<tr>
|
|
<tr>
|