Skip to content

Commit d917981

Browse files
committed
updated readme to include prev option in example
1 parent 76d3136 commit d917981

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ Infinite Ajax Scroll works on a container with item elements which get appended.
4949
</div>
5050

5151
<div class="pagination">
52-
<a href="page2.html" class="next">Next</a>
52+
<a href="page1.html" class="prev">Prev</a>
53+
<span class="current">1</span>
54+
<a href="page3.html" class="next">Next</a>
5355
</div>
5456
```
5557

@@ -62,6 +64,7 @@ import InfiniteAjaxScroll from '@webcreate/infinite-ajax-scroll';
6264
let ias = new InfiniteAjaxScroll('.container', {
6365
item: '.item',
6466
next: '.next',
67+
prev: '.prev',
6568
pagination: '.pagination'
6669
});
6770
```

0 commit comments

Comments
 (0)