kooshmoose
15 May 2009, 1:07 PM
I'm trying to animate the hide() method for Ext.msg but I don't quite know how to go about doing that. I've attempted to use statusModal.fadeOut() and Ext.getCmp(statusModal).fadeOut() in attempt to access the whole msg component, but nothing I'm trying seems quite right. Does anyone know how to fade out the modal?
var statusModal = Ext.Msg;
var msg = function(title,msg) {
statusModal.show({
title: title,
msg: msg,
minWidth: 200,
modal: true,
icon: Ext.Msg.INFO
});
setTimeout(fadeAway,2000);
}
function fadeAway() {
statusModal.hide();
}
msg('This is my title','This is my message');
var statusModal = Ext.Msg;
var msg = function(title,msg) {
statusModal.show({
title: title,
msg: msg,
minWidth: 200,
modal: true,
icon: Ext.Msg.INFO
});
setTimeout(fadeAway,2000);
}
function fadeAway() {
statusModal.hide();
}
msg('This is my title','This is my message');