Jscrollpane - Fires a function when isAtBottom

白昼怎懂夜的黑 提交于 2019-12-12 15:27:03

问题


I know that the jscrollpane fires a function when "isAtBottom" finally becomes true.

But what is the name of this function respectively how can I check if "isAtBottom" finally becomes true?

http://jscrollpane.kelvinluck.com/events.html


回答1:


jScrollPane doesn't fire a function for that condition, it fires an event. You can bind to the event the same way you'd bind to any other jQuery event:

$('.your-scroll-pane').bind(
    'jsp-arrow-change',
    function(event, isAtTop, isAtBottom, isAtLeft, isAtRight) {
        // Now look at the is* parameters and do what you
        // need to do. All four of the is* parameters are
        // booleans.
    }
);


来源:https://stackoverflow.com/questions/6369901/jscrollpane-fires-a-function-when-isatbottom

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!