Browse Source

Added the new methods to the documentation

Dennis Hernández 10 years ago
parent
commit
c27c9c7231

+ 20 - 0
docs/_i18n/en/documentation/methods.md

@@ -283,5 +283,25 @@ The calling method syntax: `$('#table').bootstrapTable('method', parameter);`.
         <td>cookie name</td>
         <td>Delete a cookie created. You must use: 'sortOrder', 'sortName', 'pageNumber' or 'pageList'.</td>
     </tr>
+    <tr>
+        <td>expandRow</td>
+        <td>index</td>
+        <td>Expand the row that has the index passed by parameter if the detail view option is set to True.</td>
+    </tr>
+    <tr>
+        <td>collapseRow</td>
+        <td>index</td>
+        <td>Collapse the row that has the index passed by parameter if the detail view option is set to True.</td>
+    </tr>
+    <tr>
+        <td>expandAllRows</td>
+        <td>is subtable</td>
+        <td>Expand all rows if the detail view option is set to True.</td>
+    </tr>
+    <tr>
+        <td>collapseAllRows</td>
+        <td>is subtable</td>
+        <td>Collapse all rows if the detail view option is set to True.</td>
+    </tr>
     </tbody>
 </table>

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

@@ -274,5 +274,25 @@ Sintaxis para llamar a un método: `$('#table').bootstrapTable('method', paramet
         <td>cookie name</td>
         <td>Elimina una cookie creada. Debe usar: 'sortOrder', 'sortName', 'pageNumber' o 'pageList'.</td>
     </tr>
+    <tr>
+        <td>expandRow</td>
+        <td>index</td>
+        <td>Expande la fila que tiene el index pasado por parámetro si la opción detail view está en True.</td>
+    </tr>
+    <tr>
+        <td>collapseRow</td>
+        <td>index</td>
+        <td>Colapsa la fila que tiene el index pasado por parámetro si la opción detail view está en True.</td>
+    </tr>
+    <tr>
+        <td>expandAllRows</td>
+        <td>is subtable</td>
+        <td>Expande todas las filas si la opción detail view está en True..</td>
+    </tr>
+    <tr>
+        <td>collapseAllRows</td>
+        <td>is subtable</td>
+        <td>Colapsa todas las filas si la opción detail view está en True.</td>
+    </tr>
     </tbody>
 </table>

+ 20 - 0
docs/_i18n/zh-cn/documentation/methods.md

@@ -278,5 +278,25 @@ The calling method syntax: `$('#table').bootstrapTable('method', parameter);`.
         <td>cookie name</td>
         <td>Delete a cookie created. You must use: 'sortOrder', 'sortName', 'pageNumber' or 'pageList'.</td>
     </tr>
+    <tr>
+        <td>expandRow</td>
+        <td>index</td>
+        <td>Expand the row that has the index passed by parameter if the detail view option is set to True.</td>
+    </tr>
+    <tr>
+        <td>collapseRow</td>
+        <td>index</td>
+        <td>Collapse the row that has the index passed by parameter if the detail view option is set to True.</td>
+    </tr>
+    <tr>
+        <td>expandAllRows</td>
+        <td>is subtable</td>
+        <td>Expand all rows if the detail view option is set to True.</td>
+    </tr>
+    <tr>
+        <td>collapseAllRows</td>
+        <td>is subtable</td>
+        <td>Collapse all rows if the detail view option is set to True.</td>
+    </tr>
     </tbody>
 </table>