PDA

View Full Version : Ext.MessageBox.prompt make like a password input?



Nikolajtesla
21 Jul 2010, 2:58 PM
Are there any ways to do
Ext.MessageBox.prompt()
look like a password input?

Because I need the input string look like ?????.

madkris
21 Jul 2010, 4:11 PM
Does it have to be a message box? Why use a window instead?

Nikolajtesla
21 Jul 2010, 4:19 PM
Of course I can use a window, but I'm just looking if there is any other solution. If there is not or they are too sophisticated, then I'll use window

senacle
24 Jun 2018, 3:12 AM
Old thread...
An other solution that works under Extjs 6.5.3

https://joekuan.wordpress.com/2012/04/26/create-a-password-prompt-dialog-box-on-extjs-4/


var msgbox = Ext.Msg.prompt('Password Prompt', 'Please enter a pasword');
msgbox.textField.inputEl.dom.type = 'password';