Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

extjs

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

like image 682
sample Avatar asked Dec 17 '22 15:12

sample


2 Answers

To make all messages wider try this:

Ext.MessageBox.minWidth = 300;
like image 146
Dasha Salo Avatar answered Dec 19 '22 04:12

Dasha Salo


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
}
like image 25
Ferd Avatar answered Dec 19 '22 04:12

Ferd