Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
component.js
component.json
dependencies.html
example.html
picture.jpg
readme.md

readme.md

j-InfiniteScroll

Configuration:

  • parent {String} a parent element due to height of container (default: parent)
  • margin {Number} a margin for height (default: 0 px)
  • padding {Number} a bottom scroll padding for performing of reading (default: 50 px)
  • autoscroll {Number} automatically scrolls container if the content is added (default: 100 px)
  • exec {String} a link to the method which is executed if the scrollbar is at the end, look into the implementation below:
function method_append(next, element, init) {
	// @next {Function(new_content)}
	// @element {jQuery}
	// @init {Boolean} Is the component initialized?

	// element.append(...);
	// or
	next('NEW_HTML_CONTENT_or_RAW_NODE_ELEMENT');
}

Author

You can’t perform that action at this time.