Browse Source

Updated docs for footer use

Yoni Jah 10 years ago
parent
commit
462f363f53

+ 18 - 0
docs/_i18n/en/documentation/column-options.md

@@ -69,6 +69,13 @@ The column options is defined in `jQuery.fn.bootstrapTable.columnDefaults`.
         <td>Indicate how to align the table header. 'left', 'right', 'center' can be used.</td>
     </tr>
     <tr>
+        <td>falign</td>
+        <td>data-falign</td>
+        <td>String</td>
+        <td>undefined</td>
+        <td>Indicate how to align the table footer. 'left', 'right', 'center' can be used.</td>
+    </tr>
+    <tr>
         <td>valign</td>
         <td>data-valign</td>
         <td>String</td>
@@ -130,6 +137,17 @@ The column options is defined in `jQuery.fn.bootstrapTable.columnDefaults`.
         index: the row index.</td>
     </tr>
     <tr>
+        <td>footerFormatter</td>
+        <td>data-footer-formatter</td>
+        <td>Function</td>
+        <td>undefined</td>
+        <td>
+        The context (this) is the column Object.
+        The function, take one parameter: <br>
+        data: Array of all the  data rows. <br>
+        the function should return a string with the text to show in the footer cell.
+    </tr>
+    <tr>
         <td>events</td>
         <td>data-events</td>
         <td>Object</td>

+ 7 - 0
docs/_i18n/en/documentation/table-options.md

@@ -245,6 +245,13 @@ The table options is defined in `jQuery.fn.bootstrapTable.defaults`.
         <td>False to hide the table header.</td>
     </tr>
     <tr>
+        <td>showFooter</td>
+        <td>data-show-footer</td>
+        <td>Boolean</td>
+        <td>false</td>
+        <td>If true shows summery footer row</td>
+    </tr>
+    <tr>
         <td>showColumns</td>
         <td>data-show-columns</td>
         <td>Boolean</td>