Create a password prompt dialog box on ExtJs 4
I couldn’t find a way to create a prompt message box with password input field. Ext.Msg.prompt is really another way to call Ext.Msg.show with configuration object. Unfortunately, it doesn’t support inputType config option, like the textfield component.

However, this is the only way I know of
var msgbox = Ext.Msg.prompt('Password Prompt', 'Please enter a pasword');
msgbox.textField.inputEl.dom.type = 'password';
1 Comment
Post a comment





Unfortunately the type of an IE8 textbox can not be changed.