Skip to content

April 26, 2012

1

Create a password prompt dialog box on ExtJs 4

by Joe Kuan

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';
About these ads
1 Comment Post a comment
  1. Jeff Sinclair
    Nov 13 2012

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

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Note: HTML is allowed. Your email address will never be published.

Subscribe to comments

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: