Project

General

Profile

Actions

Feature #12881

closed
MV RM

Feature #7894: Add more HTML5 input types

Add a standalone WPasswordEdit

Feature #12881: Add a standalone WPasswordEdit

Added by Matthias Van Ceulebroeck about 2 years ago. Updated 3 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

RM Updated by Romain Mardulyn about 2 years ago Actions #1

  • Status changed from New to InProgress

RM Updated by Romain Mardulyn about 2 years ago Actions #2

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

MV Updated by Matthias Van Ceulebroeck about 2 years ago Actions #3

  • Assignee set to Matthias Van Ceulebroeck

MV Updated by Matthias Van Ceulebroeck about 1 year ago Actions #4

  • 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

MV Updated by Matthias Van Ceulebroeck about 1 year ago Actions #5

  • Status changed from Implemented @Emweb to Implemented @Test

MV Updated by Matthias Van Ceulebroeck about 1 year ago Actions #6

  • Status changed from Implemented @Test to Closed

EP Updated by Emeric Poupon 3 months ago Actions #7

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?

RM Updated by Romain Mardulyn 3 months ago Actions #8

Hi Emeric,

This is indeed something that would be useful. I added a new ticket for it (see #14582).

Actions

Also available in: PDF Atom