Opened 16 years ago
Last modified 9 years ago
#1983 closed feature
widgetsInTemplate does not process new widgets created dynamically — at Initial Version
Reported by: | Owned by: | anonymous | |
---|---|---|---|
Priority: | low | Milestone: | 1.0 |
Component: | Dijit | Version: | 0.4 |
Keywords: | widgetsInTemplate sub widgets | Cc: | |
Blocked By: | Blocking: |
Description
Sub widgets that are wrapped by, for instance, accordion panes or split panes, aren't processed. So dojoAttachPoint or dojoAttachEvent are ignored for those sub widgets.
I fixed by setting an attribute on nodes (watermark) and then check for the mark. If there is no mark, then its a wrapper widget (or something like that), so lets process its children.
On DomWidget?.js near line 586 I made:
if(subnodes[i].getAttribute('dojoType')){ subnodes[i].setAttribute('_isSubWidget', true); } subnodes[i].setAttribute('_watermark', true);
and near line 618 change to:
if(cwidget.extraArgs['_watermark'] && (cwidget._processedSubWidgets || !cwidget.extraArgs['_issubwidget'])){ continue; }
Note: See
TracTickets for help on using
tickets.