Ext.emptyFn makes that nothing happens when you push the OK button, but hiding the alert window again.
Printable View
Ext.emptyFn makes that nothing happens when you push the OK button, but hiding the alert window again.
Ext.Msg.show({ title:'Address', message:'Please enter your address:', width:300, buttons:Ext.MessageBox.OKCANCEL, multiLine:true, prompt :{ maxlength :180, autocapitalize :true}, fn:function(buttonId){ console.log('You pressed the "'+ buttonId +'" button.');}});Insert the "multinLine: true" param.