Skip to content

Commit

Permalink
Update doco re server response formats required for sidePagination
Browse files Browse the repository at this point in the history
Update table options documentation to detail the server response formats required for different 'sidePagination' options.
  • Loading branch information
danielsharvey committed Aug 13, 2015
1 parent 774dfde commit 36f72b3
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions docs/_i18n/en/documentation/table-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,15 @@ The table options are defined in `jQuery.fn.bootstrapTable.defaults`.
<td>data-url</td>
<td>String</td>
<td>undefined</td>
<td>A URL to request data from remote site.</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>
</td>
</tr>
<tr>
<td>cache</td>
Expand Down Expand Up @@ -199,7 +207,16 @@ The table options are defined in `jQuery.fn.bootstrapTable.defaults`.
<td>data-side-pagination</td>
<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</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>
</td>
</tr>
<tr>
<td>pageNumber</td>
Expand Down

0 comments on commit 36f72b3

Please sign in to comment.