Methods
Last updated
Last updated
argument | type | description |
---|---|---|
This will bind Infinite Ajax Scroll to the scroll and resize events of the scroll container.
This will unbind Infinite Ajax Scroll from the scroll and resize events of the scroll container.
This will load the next page manually.
This wil load an url and returns a promise which represents the loaded
event.
If the request fails, the promise will be rejected with the XMLHttpRequest object.
Use this method to append an array of items to the container.
It will return a promise.
Enables the loadOnScroll
setting on runtime.
Disables the loadOnScroll
setting on runtime.
argument | type | description |
---|---|---|
argument | type | description |
---|---|---|
container
string|Element
Selector or Element of the container (see definitions/concepts)
options
object
Configuration for this instance of Infinite Ajax Scroll (see options)
url
string
Url to load
items
array
Array of element to append to the container
parent
Element|null
Container to append to. When none given it falls back to the configured container