Daniel Barreto 54aa741e8c Add jquery plugin jscroll for scroll ajax pagination - refs BT#5637 | 10 ani în urmă | |
---|---|---|
.. | ||
.gitignore | 10 ani în urmă | |
README.md | 10 ani în urmă | |
jquery.jscroll.js | 10 ani în urmă | |
jquery.jscroll.min.js | 10 ani în urmă | |
jscroll.jquery.json | 10 ani în urmă |
Official site at jscroll.com.
Requires jQuery v1.4.3+
Follow us on Facebook for commit updates: http://www.facebook.com/jScroll.Infinite.Scrolling
The jscroll
method is called on the selector for which you want your scrollable content contained within. For example:
$('.jscroll').jscroll();
The jscroll
method takes an optional object literal as a parameter for overriding the default options. An example of how this can be done is shown below.
$('.jscroll').jscroll({
loadingHtml: '<img src="loading.gif" alt="Loading" /> Loading...',
padding: 20,
nextSelector: 'a.jscroll-next:last',
contentSelector: 'li'
});
console
object exists.autoTrigger
of paging after the specified number of pages. Requires autoTrigger
to be true
.'<small>Loading...</small>'
) The HTML to show at the bottom of the content while loading the next set.For more information on the contentSelector option and how it loads a response fragment, see the jQuery documentation for the .load() method.