Project

General

Profile

Actions

Feature #3420

closed
KD

Automatic ID population

Feature #3420: Automatic ID population

Added by Anonymous about 12 years ago. Updated over 11 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" .../>

KD Updated by Koen Deforche almost 12 years ago Actions #1

  • 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

KD Updated by Koen Deforche almost 12 years ago Actions #2

  • Assignee changed from Korneel Dumon to Koen Deforche

KD Updated by Koen Deforche over 11 years ago Actions #3

  • Status changed from InProgress to Resolved

Added WTemplate::setWidgetIdMode()

KD Updated by Koen Deforche over 11 years ago Actions #4

  • Status changed from Resolved to Closed
Actions

Also available in: PDF Atom