Simple Backbone view addon that triggers an event when a view has been scrolled all the way down.
Install:
npm install thann/backbone_scrollbottom
Require in app & use in view:
require('backbone_scrollbottom');
const someView = Backbone.View.extend({
initialize() {
this.initScrollBottom();
this.on('scroll:bottom', (e) => {
console.log("scrollbottom!!!!", e);
});
},
});
See test/app.js for an example. demo
Run test server with npm run test
then navigate to localhost:3069.