PDA

View Full Version : [CLOSED] Remove show password trigger



RCN
Feb 03, 2015, 3:17 PM
Ext.Net provides RemoveClearTrigger:



The RemoveClearTrigger property of TextField removes the clear trigger that appears by default for all input types in Internet Explorer 10. This default IE10 behavior can be an annoying visual element for end users of your Ext.NET application, so we decided to introduce a dedicated property to make removal painless.


But i would like to know whether you could provide a painless way to remove "Show Password" trigger.

http://forums.ext.net/attachment.php?attachmentid=20151&stc=1


<!DOCTYPE html>
<html>
<head runat="server">
</head>
<body>
<form runat="server">
<ext:ResourceManager runat="server" />
<ext:TextField InputType="Password" runat="server" />
</form>
</body>
</html>

geoffrey.mcgill
Feb 04, 2015, 2:06 AM
A new RemoveShowPasswordTrigger property has been added in Svn commit #6301.

If RemoveShowPasswordTrigger is set to True, it will remove the show password trigger that appears by default for password fields in Internet Explorer 10+. Default value is False.

This new property will be publicly available in the upcoming Ext.NET 3.1.0 release.


<%@ Page Language="C#" %>

<!DOCTYPE html>

<html>
<head runat="server">
<title>Ext.NET Example</title>
</head>
<body>
<form runat="server">
<ext:ResourceManager runat="server" />

<ext:TextField
runat="server"
InputType="Password"
RemoveShowPasswordTrigger="true"
/>
</form>
</body>
</html>

RCN
Feb 04, 2015, 2:16 AM
Awesome Geoffrey. I am gonna review it.

RCN
Feb 04, 2015, 2:42 AM
Geoffrey, at this time i am not able to test at version 10, but at version 11 it does not work as expected.

20271

RCN
Feb 04, 2015, 3:22 AM
In the morning i am gonna review it on IE 10.

geoffrey.mcgill
Feb 04, 2015, 3:37 AM
Confirmed. The property is not getting serialized to the initialization config. Should be an easy fix.

I'll fix this right away and commit to Svn.

RCN
Feb 04, 2015, 3:45 AM
Thank you Geoffrey. Please keep me posted.

geoffrey.mcgill
Feb 04, 2015, 12:44 PM
The new property should be working for you in Svn now.

RCN
Feb 04, 2015, 1:04 PM
I am gonna review it.

RCN
Feb 04, 2015, 2:40 PM
Geoffrey, unfortunately not yet. Tested at revision #6306.

geoffrey.mcgill
Feb 04, 2015, 6:45 PM
Hello Raphael,

I apologise for the issues. Upon investigation we discovered there was problem with the build process on my machine and the combined .css files were not getting compiled properly.

We have fixed the build issue and updated Svn with the correct .css files.

The new property should be working well now.

RCN
Feb 04, 2015, 7:08 PM
I apologise for the issues. Upon investigation we discovered there was problem with the build process on my machine and the combined .css files were not getting compiled properly.

Don't worry.


I will review it right away.

RCN
Feb 04, 2015, 7:34 PM
Geoffrey, i reviewed and it's working as expected.

In addition, i would like to share how to apply it globally, if needed.


Ext.override(Ext.form.TextField, {
removeShowPasswordTrigger: true
});


Once again, thank you.

RCN
Feb 04, 2015, 7:37 PM
Geoffrey, please mark this thread as closed.

geoffrey.mcgill
Feb 08, 2015, 7:03 PM
This new feature is now logged in our GitHub Issue tracker.

https://github.com/extnet/Ext.NET/issues/684