#518 closed defect (wontfix)
Unable to change widget ID on the fly
Reported by: | Owned by: | anonymous | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Widgets | Version: | 0.2 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Widget id is not properly renamed using dojo.widget.byId('widgetId').widgetId or .id. The following function needs to be added to dojo.js to enable proper renaming on the fly.
this.renameWidgetId = function(strOldId, strNewId) {
var objWidget = this.widgetIds[strOldId]; delete this.widgetIds[strOldId]; this.widgetIds[strNewId] = objWidget; objWidget.id = strNewId; objWidget.widgetId = strNewId;
}
Change History (3)
comment:1 Changed 15 years ago by
Milestone: | 0.2.2release → 0.3release |
---|
comment:2 Changed 15 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
We're not opposed to adding something like this if someone can give a use case or scenario for it. For now we're closing as won't fix
Note: See
TracTickets for help on using
tickets.
moving to correct milestone
Also: why would you be changing the widget ID? What's the benefit?