[英]How to define custom animation UI for extjs message box
I need to pop up a message box in extjs with custom UI. 我需要使用自定义UI在extjs中弹出一个消息框。 I have tried Ext.MessageBox.show and Ext.Msg.wait methods for this purpose.
我为此尝试了Ext.MessageBox.show和Ext.Msg.wait方法。 What I really need to do is to show a custom "Loading" image in place of infinitely running rectangular progress bar.
我真正需要做的是显示一个自定义的“正在加载”图像来代替无限运行的矩形进度条。 Is there any way, I can do it?
有什么办法可以做到吗? or should I take a different approach?
还是应该采用其他方法?
Please pardon my ignorance, I am a C++ programmer doing JS for the first time. 请原谅我的无知,我是第一次使用JS的C ++程序员。
Try: 尝试:
Ext.Msg.show({
cls: "my-progress-class"
});
And define a CSS rule to show your custom "please wait" image: 并定义CSS规则以显示您的自定义“请稍候”图像:
.my-progress-class {
background: url(image/wait.png) 50% 50% no-repeat;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.