Project

General

Profile

Feature #3420

Automatic ID population

Added by Anonymous almost 8 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
07/03/2014
Due date:
% Done:

0%

Estimated time:

Description

I think it would be nice if, when using HTML templates a programmer can define how the Id tag is assigned to an element. So that when a WWidget is bound to an element in a XHTML template, the Id assigned is the placemarker provided in the XHTML template.

Eg the WPushButton widget bound to ${button-exampleID} would be automatically given the <button id="button-exampleID" .../>

#1

Updated by Koen Deforche over 7 years ago

  • Status changed from New to InProgress
  • Assignee set to Korneel Dumon
  • Target version set to 3.3.4

I would suggest to have the following options:

  • no ID implications of placeholder name
  • setObjectName() using the placeholder name (this becomes a prefix of the id)
  • setId() using the placeholder name (with the caveat that you can instantiate your template only once!)

Koen

#2

Updated by Koen Deforche over 7 years ago

  • Assignee changed from Korneel Dumon to Koen Deforche
#3

Updated by Koen Deforche over 7 years ago

  • Status changed from InProgress to Resolved

Added WTemplate::setWidgetIdMode()

#4

Updated by Koen Deforche over 7 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF