Feature #3420
Added by Anonymous about 8 years ago.
Updated over 7 years ago.
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" .../>
- 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
- Assignee changed from Korneel Dumon to Koen Deforche
- Status changed from InProgress to Resolved
Added WTemplate::setWidgetIdMode()
- Status changed from Resolved to Closed
Also available in: Atom
PDF