浏览代码

Update pagination examples

zhixin 6 年之前
父节点
当前提交
9115fb575c
共有 2 个文件被更改,包括 25 次插入2 次删除
  1. 5 0
      site/_includes/scripts.html
  2. 20 2
      site/docs/api/table-options.md

+ 5 - 0
site/_includes/scripts.html

@@ -4,6 +4,11 @@
 
 
 {%- if page.layout == "docs" -%}
 {%- if page.layout == "docs" -%}
 <script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
 <script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
+<script>
+$(function () {
+  $('.bd-content.api a').attr('target', '_blank')
+})
+</script>
 {%- endif -%}
 {%- endif -%}
 
 
 <script src="{{ site.baseurl }}/assets/js/docs.min.js?m=1"></script>
 <script src="{{ site.baseurl }}/assets/js/docs.min.js?m=1"></script>

+ 20 - 2
site/docs/api/table-options.md

@@ -528,7 +528,7 @@ The table options are defined in `jQuery.fn.bootstrapTable.defaults`.
 
 
 - **Default:** `'client'`
 - **Default:** `'client'`
 
 
-- **Example:** [Side Pagination](https://examples.bootstrap-table.com/#options/side-pagination.html)
+- **Example:** [Client Side Pagination](https://examples.bootstrap-table.com/#options/client-side-pagination.html) and [Server Side Pagination](https://examples.bootstrap-table.com/#options/server-side-pagination.html)
 
 
 ## totalRows
 ## totalRows
 
 
@@ -582,6 +582,8 @@ The table options are defined in `jQuery.fn.bootstrapTable.defaults`.
 
 
 - **Default:** `[10, 25, 50, 100]`
 - **Default:** `[10, 25, 50, 100]`
 
 
+- **Example:** [Page List](https://examples.bootstrap-table.com/#options/page-list.html)
+
 ## paginationHAlign
 ## paginationHAlign
 
 
 - **Attribute:** `data-pagination-h-align`
 - **Attribute:** `data-pagination-h-align`
@@ -594,6 +596,8 @@ The table options are defined in `jQuery.fn.bootstrapTable.defaults`.
 
 
 - **Default:** `'right'`
 - **Default:** `'right'`
 
 
+- **Example:** [Pagination H Align](https://examples.bootstrap-table.com/#options/pagination-h-align.html)
+
 ## paginationVAlign
 ## paginationVAlign
 
 
 - **Attribute:** `data-pagination-v-align`
 - **Attribute:** `data-pagination-v-align`
@@ -602,10 +606,12 @@ The table options are defined in `jQuery.fn.bootstrapTable.defaults`.
 
 
 - **Detail:**
 - **Detail:**
 
 
-  Indicate how to align the pagination. `'top'`, `'bottom'`, `'both'` (put the pagination on top and bottom)  can be used.
+  Indicate how to vertical align the pagination. `'top'`, `'bottom'`, `'both'` (put the pagination on top and bottom)  can be used.
 
 
 - **Default:** `'bottom'`
 - **Default:** `'bottom'`
 
 
+- **Example:** [Pagination V Align](https://examples.bootstrap-table.com/#options/pagination-v-align.html)
+
 ## paginationDetailHAlign
 ## paginationDetailHAlign
 
 
 - **Attribute:** `data-pagination-detail-h-align`
 - **Attribute:** `data-pagination-detail-h-align`
@@ -618,6 +624,8 @@ The table options are defined in `jQuery.fn.bootstrapTable.defaults`.
 
 
 - **Default:** `'left'`
 - **Default:** `'left'`
 
 
+- **Example:** [Pagination H Align](https://examples.bootstrap-table.com/#options/pagination-h-align.html)
+
 ## paginationPreText
 ## paginationPreText
 
 
 - **Attribute:** `data-pagination-pre-text`
 - **Attribute:** `data-pagination-pre-text`
@@ -630,6 +638,8 @@ The table options are defined in `jQuery.fn.bootstrapTable.defaults`.
 
 
 - **Default:** `'‹'`
 - **Default:** `'‹'`
 
 
+- **Example:** [Pagination Text](https://examples.bootstrap-table.com/#options/pagination-text.html)
+
 ## paginationNextText
 ## paginationNextText
 
 
 - **Attribute:** `data-pagination-next-text`
 - **Attribute:** `data-pagination-next-text`
@@ -642,6 +652,8 @@ The table options are defined in `jQuery.fn.bootstrapTable.defaults`.
 
 
 - **Default:** `'›'`
 - **Default:** `'›'`
 
 
+- **Example:** [Pagination Text](https://examples.bootstrap-table.com/#options/pagination-text.html)
+
 ## paginationSuccessivelySize
 ## paginationSuccessivelySize
 
 
 - **Attribute:** `data-pagination-successively-size`
 - **Attribute:** `data-pagination-successively-size`
@@ -654,6 +666,8 @@ The table options are defined in `jQuery.fn.bootstrapTable.defaults`.
 
 
 - **Default:** `5`
 - **Default:** `5`
 
 
+- **Example:** [Pagination Index Number](https://examples.bootstrap-table.com/#options/pagination-index-number.html)
+
 ## paginationPagesBySide
 ## paginationPagesBySide
 
 
 - **Attribute:** `data-pagination-pages-by-side`
 - **Attribute:** `data-pagination-pages-by-side`
@@ -666,6 +680,8 @@ The table options are defined in `jQuery.fn.bootstrapTable.defaults`.
 
 
 - **Default:** `1`
 - **Default:** `1`
 
 
+- **Example:** [Pagination Index Number](https://examples.bootstrap-table.com/#options/pagination-index-number.html)
+
 ## paginationUseIntermediate
 ## paginationUseIntermediate
 
 
 - **Attribute:** `data-pagination-use-intermediate`
 - **Attribute:** `data-pagination-use-intermediate`
@@ -678,6 +694,8 @@ The table options are defined in `jQuery.fn.bootstrapTable.defaults`.
 
 
 - **Default:** `false`
 - **Default:** `false`
 
 
+- **Example:** [Pagination Index Number](https://examples.bootstrap-table.com/#options/pagination-index-number.html)
+
 ## search
 ## search
 
 
 - **Attribute:** `data-search`
 - **Attribute:** `data-search`