自定义Ext.Msg.confirm确认对话框?

Ext.Msg.confirm的按钮是yes 和 no

我要怎么样才能把他修改为 ok 和 cancel?
[b]问题补充:[/b]
没有办法,我必须使用confirm方法,但是又得修改它的按钮,哥们帮 帮忙吧,谢谢了!

[code="js"]Ext.onReady(function() {
Ext.MessageBox.confirm = function(title, msg, fn, scope) {
this.show({
title : title,
msg : msg,
buttons : this.OKCANCEL,
fn : fn,
scope : scope,
icon : this.QUESTION
});
return this;
}
Ext.Msg.confirm('标题', '消息');
});[/code]

没有放好:)

修改它做什么?官方都已经封装好了?就应该是Yes 和 NO 这两个按钮才比较合适嘛!
你要是不喜欢他,你完全可以使用Ext.Msg.show()这个方法,这个更加灵活一些!

哎,我还是帮你实现吧!
[code="js]
Ext.onReady(function() {
Ext.MessageBox.confirm = function(title, msg, fn, scope) {
this.show({
title : title,
msg : msg,
buttons : this.OKCANCEL,
fn : fn,
scope : scope,
icon : this.QUESTION
});
return this;
}
Ext.Msg.confirm('标题', '消息');
});
[/code]