【发布时间】:2013-02-07 12:51:58
【问题描述】:
如何查看extjs中的样式属性?
要为面板设置样式,我们可以使用setBodyStyle。
设置样式后,我想检查特定属性的值。
喜欢,
var panel = Ext.getCmp('id');
if(panel.getStyles().fontSize == 24) //for example
//do this stuff
else
//do the other stuff
我使用的是 extjs 4.1.1a
【问题讨论】: