Simple Backbone view addon tha

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.

版权声明:

1、该文章(资料)来源于互联网公开信息,我方只是对该内容做点评,所分享的下载地址为原作者公开地址。
2、网站不提供资料下载,如需下载请到原作者页面进行下载。