Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: "Eye" icon in password text fields #4

Closed
MatthiasBoehm87 opened this issue Apr 27, 2022 · 6 comments
Closed

Feature request: "Eye" icon in password text fields #4

MatthiasBoehm87 opened this issue Apr 27, 2022 · 6 comments
Labels
enhancement New feature or request

Comments

@MatthiasBoehm87
Copy link

In many web applications it is possible to unveil the password entered into a password text field by an "eye" icon on the right side:
image
image
RAP is still missing this functionality. It would be nice, if in the future, RAP would support such an "eye" icon as well.

@mknauer mknauer added the enhancement New feature or request label Apr 27, 2022
@ifurnadjiev
Copy link
Contributor

ifurnadjiev commented May 3, 2022

There is no such built-in functionality in RAP, but it's not so hard to achieve it with client scripting. Create filed and icon in RWT. Attach client listener to the icon and change the field type from "password" to "text" and back. More information about scripting here [1].

[1] https://www.eclipse.org/rap/developers-guide/devguide.php?topic=scripting.html&version=3.20

@ifurnadjiev
Copy link
Contributor

The Nebula project has such a widget: https://wiki.eclipse.org/Nebula_PasswordRevealer

@ifurnadjiev
Copy link
Contributor

The main idea here is to use Text#setEchoChar(...) to switch between password and text mode.

@MatthiasBoehm87
Copy link
Author

OK, thank you for the information. I'll give it a try when I have the time for it.

@ifurnadjiev
Copy link
Contributor

There is a working implementation (Nebula widget) and also a simple "hand made" solution for this request. I'll close this issue as WONTFIX.

@ifurnadjiev ifurnadjiev closed this as not planned Won't fix, can't repro, duplicate, stale Jul 28, 2022
@MatthiasBoehm87
Copy link
Author

MatthiasBoehm87 commented Jul 29, 2022

The Nebula widget doesn't work, because it's for SWT, not for RWT. But I managed to implement the eye icon with RWT and some CSS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants