Code:Ext.Msg.prompt( 'Welcome!', 'What\'s your name going to be today?', function (buttonId, value) { console.log(value); }, null, false, null, { autoCapitalize: true, placeHolder: 'First-name please...', xtype: 'passwordfield', value: 'test' } );
Old thread...
An other solution that works under Extjs 6.5.3
https://joekuan.wordpress.com/2012/0...ox-on-extjs-4/
Code:var msgbox = Ext.Msg.prompt('Password Prompt', 'Please enter a pasword'); msgbox.textField.inputEl.dom.type = 'password';