admin管理员组文章数量:1336731
Here is My sourcecode:
Ext.create('Ext.window.Window', { id:'edit_segtype_win', title:'msg', layout: 'fit', html:data, modal:true, resizable:false, constrain:true }).show(undefined,bind_ajax_success);
When i call show(...),the window will show without any animation. I want to add some animation,such as fadein/fadeout/slidein/slideout. Can somebody help me? Thank you!
Here is My sourcecode:
Ext.create('Ext.window.Window', { id:'edit_segtype_win', title:'msg', layout: 'fit', html:data, modal:true, resizable:false, constrain:true }).show(undefined,bind_ajax_success);
When i call show(...),the window will show without any animation. I want to add some animation,such as fadein/fadeout/slidein/slideout. Can somebody help me? Thank you!
Share asked Apr 19, 2013 at 23:57 scott1028scott1028 4372 gold badges9 silver badges17 bronze badges1 Answer
Reset to default 4You can use Anim object http://docs.sencha./extjs/4.2.0/#!/api/Ext.fx.Anim to use in your Window Component like this:
var myWindow = Ext.create('Ext.window.Window', {
html:"hello world",
});
Ext.create('Ext.fx.Anim', {
target: myWindow,
duration: 1000,
from: {
width: 400, //starting width 400
opacity: 0, // Transparent
color: '#ffffff', // White
left: 0
},
to: {
width: 300, //end width 300
height: 300 // end height 300
}
});
And then, that animation is added when your call to
window.show();
本文标签: javascriptHow to set ExtJS window showhide with animationStack Overflow
版权声明:本文标题:javascript - How to set ExtJS window showhide with animation? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742296078a2448752.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论