Giter Site home page Giter Site logo

Comments (6)

ifurnadjiev avatar ifurnadjiev commented on June 19, 2024

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

from org.eclipse.rap.

ifurnadjiev avatar ifurnadjiev commented on June 19, 2024

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

from org.eclipse.rap.

ifurnadjiev avatar ifurnadjiev commented on June 19, 2024

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

from org.eclipse.rap.

MatthiasBoehm87 avatar MatthiasBoehm87 commented on June 19, 2024

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

from org.eclipse.rap.

ifurnadjiev avatar ifurnadjiev commented on June 19, 2024

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

from org.eclipse.rap.

MatthiasBoehm87 avatar MatthiasBoehm87 commented on June 19, 2024

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.

from org.eclipse.rap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.