Opened 14 years ago

Closed 13 years ago

Last modified 12 years ago

#518 closed defect (wontfix)

Unable to change widget ID on the fly

Reported by: joey@… 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 13 years ago by alex

Milestone: 0.2.2release0.3release

moving to correct milestone

Also: why would you be changing the widget ID? What's the benefit?

comment:2 Changed 13 years ago by Dustin Machi

Resolution: wontfix
Status: newclosed

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

comment:3 Changed 12 years ago by (none)

Milestone: 0.3release

Milestone 0.3release deleted

Note: See TracTickets for help on using tickets.