Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add 'visiblePages' example
  • Loading branch information
Eugene Simakin committed Jan 5, 2014
1 parent 60015ce commit 511d8a6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
14 changes: 14 additions & 0 deletions index.html
Expand Up @@ -128,6 +128,20 @@ <h4>URL page link</h4>
href: <span class="s">'?page={{number}}'</span>
});</code></pre>

<h4>Visible pages option</h4>

<p>The max number of visible pages specifies via <code>visiblePages</code> option. The following example
shows the 10 visible pages:</p>
<pre><code class="highlight"> $(selector).twbsPagination({
totalPages: <span class="il">35</span>,
visiblePages: <span class="il">10</span>,
});</code></pre>

<p>Note: this is normal size (without <code>pagination-sm</code>)</p>
<div class="text-center">
<ul id="visible-pages-example"></ul>
</div>

</section>

<aside id="sidebar">
Expand Down
5 changes: 5 additions & 0 deletions js/main.js
Expand Up @@ -13,5 +13,10 @@ $(document).ready(function () {
}
});

$('#visible-pages-example').twbsPagination({
totalPages: 35,
visiblePages: 10
});

});

0 comments on commit 511d8a6

Please sign in to comment.