Project

General

Profile

Actions

Feature #12881

closed

Feature #7894: Add more HTML5 input types

Add a standalone WPasswordEdit

Added by Matthias Van Ceulebroeck about 2 years ago. Updated 2 months ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
08/06/2024
Due date:
% Done:

100%

Estimated time:

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
Actions #1

Updated by Romain Mardulyn about 2 years ago

  • Status changed from New to InProgress
Actions #2

Updated by Romain Mardulyn almost 2 years ago

  • Status changed from InProgress to Review
  • Assignee deleted (Romain Mardulyn)
Actions #3

Updated by Matthias Van Ceulebroeck almost 2 years ago

  • Assignee set to Matthias Van Ceulebroeck
Actions #4

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
Actions #5

Updated by Matthias Van Ceulebroeck about 1 year ago

  • Status changed from Implemented @Emweb to Implemented @Test
Actions #6

Updated by Matthias Van Ceulebroeck about 1 year ago

  • Status changed from Implemented @Test to Closed
Actions #7

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 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

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?

Actions #8

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).

Actions

Also available in: Atom PDF