浏览代码

Update docs

zhixin 7 年之前
父节点
当前提交
3ea8cbabc5

+ 32 - 33
docs/_i18n/en/documentation/table-options.md

@@ -177,13 +177,13 @@ The table options are defined in `jQuery.fn.bootstrapTable.defaults`.
         <td>String</td>
         <td>undefined</td>
         <td>
-        	A URL to request data from remote site.
-        	<br/>Note that the required server response format is different depending on whether the 'sidePagination'
-        	option is specified. See the following examples:
-        	<ul>
-        		<li><a href="https://github.com/wenzhixin/bootstrap-table-examples/blob/master/json/data1.json">Without server-side pagination</a></li>
-        		<li><a href="https://github.com/wenzhixin/bootstrap-table-examples/blob/master/json/data2.json">With server-side pagination</a></li>
-        	</ul>
+            A URL to request data from remote site.
+            <br/>Note that the required server response format is different depending on whether the 'sidePagination'
+            option is specified. See the following examples:
+            <ul>
+                <li><a href="https://github.com/wenzhixin/bootstrap-table-examples/blob/master/json/data1.json">Without server-side pagination</a></li>
+                <li><a href="https://github.com/wenzhixin/bootstrap-table-examples/blob/master/json/data2.json">With server-side pagination</a></li>
+            </ul>
         </td>
     </tr>
     <tr>
@@ -272,14 +272,13 @@ The table options are defined in `jQuery.fn.bootstrapTable.defaults`.
         <td>String</td>
         <td>'client'</td>
         <td>
-        	Defines the side pagination of table, can only be 'client' or 'server'.
-        	Using 'server' side requires either setting the 'url' or 'ajax' option.
-        	<br/>Note that the required server response format is different depending on whether
-        	the 'client' or 'server' option is specified. See the following examples:
-        	<ul>
-        		<li><a href="https://github.com/wenzhixin/bootstrap-table-examples/blob/master/json/data1.json">Without server-side pagination</a></li>
-        		<li><a href="https://github.com/wenzhixin/bootstrap-table-examples/blob/master/json/data2.json">With server-side pagination</a></li>
-        	</ul>
+            Defines the side pagination of the table, can only be 'client' or 'server'.
+            Using 'server' side requires either setting the 'url' or 'ajax' option.
+            <br/>Note that the required server response format is different depending on whether the 'client' or 'server' option is specified. See the following examples:
+            <ul>
+                <li><a href="https://github.com/wenzhixin/bootstrap-table-examples/blob/master/json/data1.json">Without server-side pagination</a></li>
+                <li><a href="https://github.com/wenzhixin/bootstrap-table-examples/blob/master/json/data2.json">With server-side pagination</a></li>
+            </ul>
         </td>
     </tr>
     <tr>
@@ -347,7 +346,7 @@ The table options are defined in `jQuery.fn.bootstrapTable.defaults`.
         <td>false</td>
         <td>Enable the strict search.</td>
     </tr>
-	<tr>
+    <tr>
         <td>searchText</td>
         <td>data-search-text</td>
         <td>String</td>
@@ -684,23 +683,23 @@ function rowStyle(row, index) {
         </td>
     </tr>
     <tr>
-	<td>footerStyle</td>
-	<td>data-footer-style</td>
-	<td>Function</td>
-	<td>{}</td>
-	<td>
-	        The footer style formatter function, takes two parameters: <br>
-	        row: the row record data.<br>
-	        index: the row index.<br>
-	        Support classes or css. Example usage:<br>
-		<pre>
-		function footerStyle(value, row, index) {
-		  return {
-		    css: { "font-weight": "bold" }
-		  };
-		}
-		</pre>
-	</td>
+    <td>footerStyle</td>
+    <td>data-footer-style</td>
+    <td>Function</td>
+    <td>{}</td>
+    <td>
+            The footer style formatter function, takes two parameters: <br>
+            row: the row record data.<br>
+            index: the row index.<br>
+            Support classes or css. Example usage:<br>
+        <pre>
+        function footerStyle(value, row, index) {
+          return {
+            css: { "font-weight": "bold" }
+          };
+        }
+        </pre>
+    </td>
     </tr>
    </tbody>
 </table>

+ 3 - 3
docs/_i18n/en/donate.md

@@ -1,5 +1,5 @@
-Bootstrap Table is a free plug-in which be made in my spare time.
+Bootstrap Table is a free plug-in which is made in my spare time.
 
-If your project get the help from Bootstrap Table, you can donate to Bootstrap Table.
+If your project gets the help from Bootstrap Table, you can donate to Bootstrap Table.
 
-With your help, I believe that I will continue to strive to let Bootstrap Table be better.
+With your help, I believe that I will continue to strive to let Bootstrap Table be better.

+ 4 - 4
docs/_i18n/en/faq/faq.md

@@ -2,9 +2,9 @@
 
 ---
 
-### When resize the window, the table header does not adjust automatically, how to solve it?
+### When resizing the window, the table header does not adjust automatically, how to solve it?
 
-When you set the `height` of bootstrap table, the `fixed header` feature is automatically enabled, that is what cause the problem, you need to listen the `resize` event of window and use the `resetView` method to solve this problem, code example:
+When you set the `height` of the bootstrap table, the `fixed header` feature is automatically enabled, that is what causes the problem, you need to listen to the `resize` event of the window and use the `resetView` method to solve this problem, code example:
 
 ```js
 $(function () {
@@ -52,8 +52,8 @@ onClickRow: function (row, $element) {
 
 ---
 
-### How can I support development of bootstrap-table?
+### How can I support the development of bootstrap-table?
 
-All your ideas and feedback are very appreciated! Please feel free to open issues on GitHub or send me email.
+All your ideas and feedback are very appreciated! Please feel free to open issues on GitHub or send me an email.
 
 I'm also grateful for your donations: <a href="/donate">{% t pages.donate.title %}</a>

+ 1 - 1
docs/_i18n/en/getting-started/download.md

@@ -8,7 +8,7 @@ Bootstrap table (currently v{{ site.current_version }}) has a few easy ways to q
 
 ## Source code
 
-Source css, JavaScript, locales, and extensions, along with our docs.
+Source CSS, JavaScript, locales, and extensions, along with our docs.
 
 <a href="{{ site.master_zip }}" class="btn btn-lg btn-outline" role="button">Download source</a>
 

+ 3 - 3
docs/_i18n/en/getting-started/usage.md

@@ -2,7 +2,7 @@
 
 ---
 
-Include Bootstrap library (if your project doesn't use it already) and `bootstrap-table.css` in the head tag your html document.
+Include Bootstrap library (if your project doesn't use it already) and `bootstrap-table.css` in the head tag your HTML document.
 
 ```html
 <link rel="stylesheet" href="bootstrap.min.css">
@@ -51,7 +51,7 @@ Activate bootstrap table without writing JavaScript. Set `data-toggle="table"` o
 </table>
 ```
 
-We can also use remote url data by setting `data-url="data1.json"` on a normal table.
+We can also use remote URL data by setting `data-url="data1.json"` on a normal table.
 
 ```html
 <table data-toggle="table" data-url="data1.json">
@@ -110,7 +110,7 @@ $('#table').bootstrapTable({
 });
 ```
 
-We can also use remote url data by setting `url: 'data1.json'`.
+We can also use remote URL data by setting `url: 'data1.json'`.
 
 ```js
 $('#table').bootstrapTable({

+ 2 - 2
docs/_i18n/en/getting-started/whats-include.md

@@ -2,7 +2,7 @@
 
 ---
 
-The Bootstrap table source code download includes the precompiled CSS, JavaScript, locales, extensions, and provides both compiled and minified variations, along with documentation. More specifically, it includes the following and more:
+The Bootstrap table source code download includes the pre-compiled CSS, JavaScript, locales, extensions, and provides both compiled and minified variations, along with documentation. More specifically, it includes the following and more:
 
 ```bash
 bootstrap-table/
@@ -19,4 +19,4 @@ bootstrap-table/
     └── bootstrap-table.js
 ```
 
-The `src/`, `locale/`, and `extensions/` are the source code for our CSS, JS. The `dist/` folder includes everything compiled and minified with `src/`. The `docs/` folder includes the source code for our documentation. Beyond that, any other included file provides support for packages, license information, and development.
+The `src/`, `locale/`, and `extensions/` are the source code for our CSS, JS. The `dist/` folder includes everything compiled and minified with `src/`. The `docs/` folder includes the source code for our documentation. Beyond that, any other included file provides support for packages, license information, and development.