diff --git a/index.html b/index.html index 4418826..38a30d9 100644 --- a/index.html +++ b/index.html @@ -89,9 +89,10 @@
totalPages the number of pages (required, checked)startPage the current page that show on start(default: 1)visiblePages maximum visible pages (default: 5)totalPages the number of pages (required)startPage the current page that show on start(default: 1)visiblePages maximum visible pages (default: 5)initiateStartPageClick fire onclick event at start page on plugin initialization (default true)href template for pagination links (default false)hrefVariable variable name in href template for page number (default
{{number}})
@@ -161,6 +162,50 @@ href and hrefVariable options / Example 1Warning!
+ Page has been reload
+
We do develop not always SAP (single page app). In that case you should have use this
+ options
Piece of code:
+ $(selector).twbsPagination({
+ totalPages: 15,
+ visiblePages: 5 ,
+ href: '?a=&page={{number}}&c=d' ,
+ onPageClick: function (event, page) {
+ $('#not-spa-demo-content').text('Page ' + page);
+ }
+ });
+
+
+ href and hrefVariable options / Example 2Piece of code:
+ $(selector).twbsPagination({
+ totalPages: 15,
+ visiblePages: 5,
+ href: '#page={{pageNumber}}&c=d',
+ hrefVariable: '{{pageNumber}}',
+ onPageClick: function (event, page) {
+ ...
+ }
+ });
+
+