开发者

creating jscrollpane-arrows outsite jspContainer

开发者 https://www.devze.com 2023-02-18 18:32 出处:网络
Is there an easy way to cre开发者_运维知识库ate the arrows outside the jspcontainter and horizontally arranged for a vertical scroll bar? As the container has overflow:hidden with positioning the arro

Is there an easy way to cre开发者_运维知识库ate the arrows outside the jspcontainter and horizontally arranged for a vertical scroll bar? As the container has overflow:hidden with positioning the arrows cannot be displayed outside.

I tried to clone the arrows with jquery clonefunction, but the js hangs up scrolling up again. Is there a way to add default-behavior to custom controls outside the container with the api?


The best way to do this would be to not show arrows on the jScrollPane itself and then create different elements outside and position them as you like. You could then add a click handler to these new elements and in it use the jScrollPane API and the scrollByY method to make the jscrollpane scroll when they are clicked on...

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号