【发布时间】:2011-10-10 05:07:02
【问题描述】:
如何将 loadMask 仅应用于一个元素,而不是整个浏览器的宽高?
默认
在这里,只有一个元素被屏蔽,并且一个 messageBox 在中心,在这个元素内部而不是整个显示...
有任何想法吗?
编辑:
@Molecule,谢谢,但这是从某个来源加载数据时,我需要的是:
{
xtype:"button",
text:"Alert",
handler: function(){
Ext.Msg.show({
title:'Save Changes?',
msg: 'You are closing ?',
buttons: Ext.Msg.YES,
setLoading: // here somehow only mask parent element, and position alertBox...
}
}
【问题讨论】:
-
你说的是元素,但它们是组件。
-
@Chris,是的,他们是 Components :-)