Project

General

Profile

Actions

Feature #3420

closed

Automatic ID population

Added by Anonymous over 10 years ago. Updated almost 10 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" .../>

Actions #1

Updated by Koen Deforche about 10 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

Actions #2

Updated by Koen Deforche about 10 years ago

  • Assignee changed from Korneel Dumon to Koen Deforche
Actions #3

Updated by Koen Deforche almost 10 years ago

  • Status changed from InProgress to Resolved

Added WTemplate::setWidgetIdMode()

Actions #4

Updated by Koen Deforche almost 10 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF