Browse Source

Update docs.

zhixin 11 years ago
parent
commit
335a317f45

+ 9 - 0
docs/_i18n/es/documentation/methods.md

@@ -58,6 +58,15 @@ Sintaxis para llamar a un método: `$('#table').bootstrapTable('method', paramet
         </td>
         </td>
     </tr>
     </tr>
     <tr>
     <tr>
+        <td>insertRow</td>
+        <td>params</td>
+        <td>
+        Insert a new row, the param contains following properties:<br>
+        index: the row index to insert into.<br>
+        row: the row data.
+        </td>
+    </tr>
+    <tr>
         <td>updateRow</td>
         <td>updateRow</td>
         <td>params</td>
         <td>params</td>
         <td>
         <td>

+ 7 - 1
docs/_i18n/fr/examples/format.md

@@ -2,4 +2,10 @@
 
 
 Use `formatter` column option to format the display of bootstrap table column. _by [@wenzhixin](https://github.com/wenzhixin)_
 Use `formatter` column option to format the display of bootstrap table column. _by [@wenzhixin](https://github.com/wenzhixin)_
 
 
-<iframe width="100%" height="300" data-src="http://jsfiddle.net/wenyi/e3nk137y/21/embedded/html,js,result" allowfullscreen="allowfullscreen" frameborder="0"></iframe>
+<iframe width="100%" height="300" data-src="http://jsfiddle.net/wenyi/e3nk137y/21/embedded/html,js,result" allowfullscreen="allowfullscreen" frameborder="0"></iframe>
+
+# Show current row count using Formatter []({{ site.repo }}/blob/master/docs/_i18n/{{ site.lang }}/examples/format.md)
+
+Use `formatter` column option to display the index of the current row. _by [@DominikAngerer](https://github.com/DominikAngerer)_
+
+<iframe width="100%" height="300" data-src="http://jsfiddle.net/DominikAngerer/yx275pyd/2/embedded/" allowfullscreen="allowfullscreen" frameborder="0"></iframe>

+ 21 - 1
docs/_i18n/zh-cn/documentation/methods.md

@@ -43,12 +43,27 @@ The calling method syntax: `$('#table').bootstrapTable('method', parameter);`.
         <td>Append the data to table.</td>
         <td>Append the data to table.</td>
     </tr>
     </tr>
     <tr>
     <tr>
+        <td>prepend</td>
+        <td>data</td>
+        <td>Prepend the data to table.</td>
+    </tr>
+    <tr>
         <td>remove</td>
         <td>remove</td>
         <td>params</td>
         <td>params</td>
         <td>
         <td>
         Remove data from table, the params contains two properties: <br>
         Remove data from table, the params contains two properties: <br>
         field: the field name of remove rows. <br>
         field: the field name of remove rows. <br>
-        values: the values of remove rows.
+        values: the array of values for rows which should be removed. <br>
+        Example: $('#myTable').bootstrapTable('remove', {field: 'id', values: ["73", "74"]})
+        </td>
+    </tr>
+    <tr>
+        <td>insertRow</td>
+        <td>params</td>
+        <td>
+        Insert a new row, the param contains following properties:<br>
+        index: the row index to insert into.<br>
+        row: the row data.
         </td>
         </td>
     </tr>
     </tr>
     <tr>
     <tr>
@@ -146,5 +161,10 @@ The calling method syntax: `$('#table').bootstrapTable('method', parameter);`.
         <td>none</td>
         <td>none</td>
         <td>Go to next page.</td>
         <td>Go to next page.</td>
     </tr>
     </tr>
+    <tr>
+        <td>togglePagination</td>
+        <td>none</td>
+        <td>Toggle the pagination option.</td>
+    </tr>
     </tbody>
     </tbody>
 </table>
 </table>

+ 1 - 1
docs/_i18n/zh-cn/documentation/table-options.md

@@ -149,7 +149,7 @@ The table options is defined in `jQuery.fn.bootstrapTable.defaults`.
         <td>Function</td>
         <td>Function</td>
         <td>function(params) {<br>return params;<br>}</td>
         <td>function(params) {<br>return params;<br>}</td>
         <td>
         <td>
-        When requesting remote data, you can send additional parameters by modifying queryParams.
+        When requesting remote data, you can send additional parameters by modifying queryParams. 
         If queryParamsType = 'limit', the params object contains: <br>
         If queryParamsType = 'limit', the params object contains: <br>
         limit, offset, search, sort, order
         limit, offset, search, sort, order
         Else, it contains: <br>
         Else, it contains: <br>

+ 7 - 1
docs/_i18n/zh-cn/examples/format.md

@@ -2,4 +2,10 @@
 
 
 Use `formatter` column option to format the display of bootstrap table column. _by [@wenzhixin](https://github.com/wenzhixin)_
 Use `formatter` column option to format the display of bootstrap table column. _by [@wenzhixin](https://github.com/wenzhixin)_
 
 
-<iframe width="100%" height="300" data-src="http://jsfiddle.net/wenyi/e3nk137y/21/embedded/html,js,result" allowfullscreen="allowfullscreen" frameborder="0"></iframe>
+<iframe width="100%" height="300" data-src="http://jsfiddle.net/wenyi/e3nk137y/21/embedded/html,js,result" allowfullscreen="allowfullscreen" frameborder="0"></iframe>
+
+# Show current row count using Formatter []({{ site.repo }}/blob/master/docs/_i18n/{{ site.lang }}/examples/format.md)
+
+Use `formatter` column option to display the index of the current row. _by [@DominikAngerer](https://github.com/DominikAngerer)_
+
+<iframe width="100%" height="300" data-src="http://jsfiddle.net/DominikAngerer/yx275pyd/2/embedded/" allowfullscreen="allowfullscreen" frameborder="0"></iframe>