From 511d8a633ba7cb08109f6c1b14cddb674e001fe4 Mon Sep 17 00:00:00 2001 From: Eugene Simakin Date: Sun, 5 Jan 2014 10:46:17 +0400 Subject: [PATCH] Add 'visiblePages' example --- index.html | 14 ++++++++++++++ js/main.js | 5 +++++ 2 files changed, 19 insertions(+) diff --git a/index.html b/index.html index cc30cff..150f26e 100644 --- a/index.html +++ b/index.html @@ -128,6 +128,20 @@

URL page link

href: '?page={{number}}' }); +

Visible pages option

+ +

The max number of visible pages specifies via visiblePages option. The following example + shows the 10 visible pages:

+
    $(selector).twbsPagination({
+        totalPages: 35,
+        visiblePages: 10,
+    });
+ +

Note: this is normal size (without pagination-sm)

+
+ +
+