Actions
Feature #3420
closedAutomatic ID population
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" .../>
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
Updated by Koen Deforche about 10 years ago
- Assignee changed from Korneel Dumon to Koen Deforche
Updated by Koen Deforche almost 10 years ago
- Status changed from InProgress to Resolved
Added WTemplate::setWidgetIdMode()
Updated by Koen Deforche almost 10 years ago
- Status changed from Resolved to Closed
Actions