-
Notifications
You must be signed in to change notification settings - Fork 0
/
options.html
127 lines (123 loc) · 3.71 KB
/
options.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>Add To Cart Demo</title>
<link rel="stylesheet" type="text/css" href="../css/bootstrap.css" />
<script type="text/javascript" src="../vendor/jquery.min.js"></script>
<script type="text/javascript" src="../vendor/jquery.ui.widget.min.js"></script>
<link rel="stylesheet" type="text/css" href="../css/prettify.css" />
<script type="text/javascript" src="../vendor/prettify.js"></script>
</head>
<body>
<div class="container-fluid">
<div class="subnav subnav-fixed">
<ul class="nav nav-pills">
<li class="active"><a href="#overview">Overview</a></li>
<li class=""><a href="#tables">Options</a></li>
<li class=""><a href="#forms">Methods</a></li>
<li class=""><a href="#buttons">Events</a></li>
<li class=""><a href="#icons">Examples</a></li>
<li class=""><a href="#icons">Default Functionality</a></li>
</ul>
</div>
<div class="row-fluid">
<div class="span3">
<div class="well sidebar-nav">
<ul class="nav nav-list">
<li class="nav-header">Pagination Documentation</li>
<li class="active"><a href="">Overview</a></li>
<li><a href="">Options</a></li>
<li><a href="">Methods</a></li>
<li><a href="">Events</a></li>
<li class="nav-header">Examples</li>
<li><a href="">Default Functionality</a></li>
</ul>
</div>
</div>
<div class="span9">
<div class="hero-unit">
<h1>Pagination Options</h1>
<p>Pagination widget has the following configuration options:</p>
<p>
<ul class="unstyled">
<li>containerClass: pagination</li>
<li>pageCount: 0</li>
<li>currentPage: 1</li>
<li>pageLimit: 1</li>
<li>activeClass: active</li>
<li>disabledClass: disabled</li>
<li>previousBtn: ← Previous</li>
<li>nextBtn: Next →</li>
<li>hideEmpy: true</li>
<li>connectWith: null</li>
</ul>
<pre class="prettyprint linenums lang-html">
<div id="myPaginationContainer> </div></pre>
</p>
<p>
To initialize the plugin writh the following code: </p>
<pre class="prettyprint linenums">
<script type="text/javascript">
$("#myPaginationContainer").pagination({ pageCount: 20 });
<script></pre>
<p>
Optionally currentPage can be passed to start from a specific page. If currentPage is not specified widget will start from page 1: </p>
<pre class="prettyprint linenums">
<script type="text/javascript">
$("#myPaginationContainer").pagination({ pageCount: 20, currentPage: 4 });
<script></pre>
<p><a href="#" class="btn btn-primary btn-small">View Examples</a></p>
</div>
<div class="row-fluid" style="height: 60px;">
<div class="span3">
<h4>Product 1</h4>
</div>
<div class="span3">
<h4>Product 2</h4>
</div>
<div class="span3">
<h4>Product 3</h4>
</div>
<div class="span3">
<h4>Product 4</h4>
</div>
</div>
<div class="row-fluid" style="height: 60px;">
<div class="span3">
<h4>Product 1</h4>
</div>
<div class="span3">
<h4>Product 2</h4>
</div>
<div class="span3">
<h4>Product 3</h4>
</div>
<div class="span3">
<h4>Product 4</h4>
</div>
</div>
<div class="row-fluid" style="height: 60px;">
<div class="span3">
<h4>Product 1</h4>
</div>
<div class="span3">
<h4>Product 2</h4>
</div>
<div class="span3">
<h4>Product 3</h4>
</div>
<div class="span3">
<h4>Product 4</h4>
</div>
</div>
</div>
</div>
</div>
<<script type="text/javascript">
$(function() {
prettyPrint();
});
</script>
</body>
</html>