extjs4 里面怎么监听滚动条?
答案:2 悬赏:20 手机版
解决时间 2021-02-27 05:57
- 提问者网友:我没有何以琛的痴心不悔
- 2021-02-27 00:21
extjs4 里面怎么监听滚动条?
最佳答案
- 五星知识达人网友:十年萤火照君眠
- 2021-02-27 00:32
设置scrollable:true.
如果内容超过panel的宽度、高度就会出现滚动条
scrollable : Boolean/String/Object
Configuration options to make this Component scrollable. Acceptable values are:
true to enable auto scrolling.
false (or null) to disable scrolling - this is the default.
x or horizontal to enable horizontal scrolling only
y or vertical to enable vertical scrolling only
Also accepts a configuration object for a Ext.scroll.Scroller if if advanced configuration is needed.
The getter for this config returns the Scroller instance. You can use the Scroller API to read or manipulate the scroll position:
如果内容超过panel的宽度、高度就会出现滚动条
scrollable : Boolean/String/Object
Configuration options to make this Component scrollable. Acceptable values are:
true to enable auto scrolling.
false (or null) to disable scrolling - this is the default.
x or horizontal to enable horizontal scrolling only
y or vertical to enable vertical scrolling only
Also accepts a configuration object for a Ext.scroll.Scroller if if advanced configuration is needed.
The getter for this config returns the Scroller instance. You can use the Scroller API to read or manipulate the scroll position:
全部回答
- 1楼网友:西风乍起
- 2021-02-27 01:01
onscroll="document.getElementById('id').scrollTop = this.scrollTop;document.getElementById('id').scrollLeft = this.scrollLeft;"
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯