h2oai / wave

Realtime Web Apps and Dashboards for Python and R
https://wave.h2o.ai
Apache License 2.0
3.9k stars 327 forks source link

Allow show/hide functionality for passwords in ui.textbox() #1977

Closed n-srinidhi closed 8 months ago

n-srinidhi commented 1 year ago

Is your feature request related to a problem? Please describe

While building Login Forms using h2o.ai Wave, There is a password property in ui.textbox(). However, unlike login forms on web apps on the internet, there is no option to make the icon of the field clickable in order to toggle between the show text and hide text option for the password field.

Describe the solution you'd like

It would be nice to have an inbuilt functionality to show/hide the text being typed in password style textboxes. Or atleast make the icons within a textbox clickable so we it can be implemented through code.

Describe alternatives you've considered

A simple workaround right now is to add a button alongside the textbox to toggle between showing and hiding the typed text. However, it isn't very flattering from a UX perspective, as the button is selected on hover and the boundaries of the textbox is also visible.

i-m-karanagarwal commented 1 year ago

I would like to work on this issue. Please assign it to me.