Thann / backbone_scrollBottom

Simple Backbone view addon that triggers an event when a view has been scrolled all the way down.

Home Page:https://thann.gitlab.io/backbone_scrollBottom

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Backbone_scrollBottom

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);
    });
  },
});

Example

See test/app.js for an example. demo

Run test server with npm run test then navigate to localhost:3069.

About

Simple Backbone view addon that triggers an event when a view has been scrolled all the way down.

https://thann.gitlab.io/backbone_scrollBottom

License:The Unlicense


Languages

Language:JavaScript 94.3%Language:HTML 5.0%Language:CSS 0.8%