Extjs可滚动面板 [英] Extjs scrollable panel
本文介绍了Extjs可滚动面板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个面板,我从服务器插入一些html:
I have a panel that I insert some html from server:
myPanel.update(response.responseText);
但是,如果此文本太大,则不会有滚动条导航文本。
But if this text is too big, none scrollbar appears to navigate the text.
如何在此面板中配置垂直滚动条?
How can I configure a vertical scrollbar in this panel ?
谢谢。
更新:
这是我的面板定义:
{
xtype:'panel',
width: '100%',
height: 300,
id:'mypanel'
},
推荐答案
基本上你只需添加 b
Basically you would just add the autoScroll property like
autoScroll: true
一个工作的 JSFiddle
Here's a working JSFiddle
这篇关于Extjs可滚动面板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文