Project

General

Profile

Actions

Bug #2692

closed

WFormWidget::setPlaceholderText() implement as HTML5 placeholder attribute!

Added by Stefan Ruppert about 12 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Roel Standaert
Target version:
Start date:
02/19/2014
Due date:
% Done:

0%

Estimated time:

Description

I have a WLineEdit which shows a selected text from a WSelectionBox. The

first entry of the WSelectionBox means "enter a new entry" and will

clear the contents of the WLineEdit and I expect that if the WLineEdit

is cleared the Placeholder text is shown. But when I select item 2 or 3

from the selection box and directly after that the new entry the old

text will be rendered as the Placeholder text. Here is an example:

setPlaceholderText("Enter a new name");

SelectionBox items:

"New name"

"Ruppert"

"Maier"

"Test"

If I select "Maier" from the selection box the contents of the line edit

shows the name "Maier". Then I select "New name" and the line edit will

be cleared. But now not "Enter a new name" will be rendered in light

grey color instead "Maier" is rendered in this placeholder color!

Regards,

Stefan

Actions #1

Updated by Stefan Ruppert almost 11 years ago

Hi,

I tested this bug with wt-3.3.4 and its fixed within this version.

However, HTML5 placeholder attribute is still not used...

Stefan

Actions #2

Updated by Rutger ter Borg almost 10 years ago

bump

Please add support for placeholders on input labels to Wt. I'm not fully up to speed with Wt internals, but AFAICT it requires the following changes:

DomElement:

Add PropertyPlaceholder to the Property enum

WFormWidget:

Update setPlaceHolderText

Actions #3

Updated by Koen Deforche almost 10 years ago

  • Status changed from New to InProgress
  • Assignee set to Roel Standaert
Actions #4

Updated by Roel Standaert almost 10 years ago

  • Status changed from InProgress to Implemented @Emweb
Actions #5

Updated by Koen Deforche over 9 years ago

  • Status changed from Implemented @Emweb to Closed
  • Target version set to 3.3.6
Actions

Also available in: Atom PDF