We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f22eb0 commit b0f6d0bCopy full SHA for b0f6d0b
_examples/pagination_example.html
@@ -0,0 +1,30 @@
1
+---
2
+layout: socket_example
3
+title: Pagination example
4
+permalink: /examples/pagination/
5
+description: An example of the pagination in TutorCruncher socket.
6
7
+{% highlight html %}
8
+<div id="pagination"></div>
9
+
10
+<!-- If you haven't called it before -->
11
+<script src="{{ site.socket_url }}"></script>
12
13
+<!-- Then -->
14
+<script>
15
+ socket('{{ site.socket_key }}', {
16
+ router_mode: 'history',
17
+ element: '#pagination',
18
+ pagination: 5
19
+ });
20
+</script>
21
+{% endhighlight %}
22
23
24
25
26
27
28
29
30
0 commit comments