Feature #12881
closedFeature #7894: Add more HTML5 input types
Add a standalone WPasswordEdit
100%
Description
In an effort to support more native types (see #7894), we already introduces a couple entries, and are working on some more.
One such widget would be WPasswordEdit. This will essentially be the same as a WLineEdit in EchoMode::Password. However, this is somewhat forced into the WLineEdit interface. It would be cleaner to extract this.
The setEchoMode would become deprecated.
This widget will already be able to both work in the existing framework as it is, as well as offer a native variant.
The native variant offloads some functionality onto the browser. See a list of potentially viable attributes: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/password.
Some attributes to consider are:
- inputmode
- minlength
- maxlength
- pattern
- required
- autocomplete
Updated by Romain Mardulyn about 2 years ago
- Status changed from New to InProgress
Updated by Romain Mardulyn almost 2 years ago
- Status changed from InProgress to Review
- Assignee deleted (
Romain Mardulyn)
Updated by Matthias Van Ceulebroeck almost 2 years ago
- Assignee set to Matthias Van Ceulebroeck
Updated by Matthias Van Ceulebroeck about 1 year ago
- Status changed from Review to Implemented @Emweb
- Assignee changed from Matthias Van Ceulebroeck to Romain Mardulyn
- Target version changed from future to 4.12.0
- % Done changed from 0 to 100
Updated by Matthias Van Ceulebroeck about 1 year ago
- Status changed from Implemented @Emweb to Implemented @Test
Updated by Matthias Van Ceulebroeck about 1 year ago
- Status changed from Implemented @Test to Closed
Updated by Emeric Poupon 2 months ago
Matthias Van Ceulebroeck wrote:
In an effort to support more native types (see #7894), we already introduces a couple entries, and are working on some more.
One such widget would be
WPasswordEdit. This will essentially be the same as aWLineEditinEchoMode::Password. However, this is somewhat forced into theWLineEditinterface. It would be cleaner to extract this.
ThesetEchoModewould become deprecated.This widget will already be able to both work in the existing framework as it is, as well as offer a native variant.
The native variant offloads some functionality onto the browser. See a list of potentially viable attributes: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/password.
Some attributes to consider are:
- inputmode
- minlength
- maxlength
- pattern
- required
- autocomplete
Hello!
The EchoMode is very handy to handle an extra "reveal" button (switch from regular and password modes)
It looks like it is not possible to do this with the new password widget?
Updated by Romain Mardulyn 2 months ago
Hi Emeric,
This is indeed something that would be useful. I added a new ticket for it (see #14582).