开发者

How to increase width of Ext.Msg.Confirm message box

How to increase width 开发者_Go百科of Ext.Msg.Confirm message box.


To make all messages wider try this:

Ext.MessageBox.minWidth = 300;


I agree with Ext.MessageBox.minWidth = 300; please vote him up. I don't have the rep yet to vote that answer up myself. The first answer simply pointed to docs that no longer exist for ExtJS 3, and points to a method show() that may not be in use.

The answer #2 works perfectly for me, since I came here with the same question:

Ext.MessageBox.minWidth = 300;
Ext.MessageBox.confirm('Warning', 'Are you sure?', function(btn)
{
    // this will execute if the user clicks Yes
}


By defining the width option of ExtJS.MessageBox.show() method.


you need to call the function setWidth like :

Ext.Msg.setMinWidth(600)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜