sample
sample

Reputation: 61

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

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

Upvotes: 4

Views: 11814

Answers (4)

Mohammed_Moulla
Mohammed_Moulla

Reputation: 55

you need to call the function setWidth like :

Ext.Msg.setMinWidth(600)

Upvotes: 0

Tommi
Tommi

Reputation: 8608

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

Upvotes: 1

Ferd
Ferd

Reputation: 216

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
}

Upvotes: 1

Dasha Salo
Dasha Salo

Reputation: 5169

To make all messages wider try this:

Ext.MessageBox.minWidth = 300;

Upvotes: 10

Related Questions