Opened 10 years ago
Closed 10 years ago
#12807 closed defect (invalid)
Content problems with user-defined widget descending from ContentPane and _Templated
Reported by: | byersa | Owned by: | |
---|---|---|---|
Priority: | high | Milestone: | tbd |
Component: | Dijit | Version: | 1.6.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
1.6.1 actually. When I extend a class from ContentPane? and add _Templated and give it a template with embedded content (ed. <div>stuff</div>), then when I embedded the user-defined tag in another template (eg. <div data-dojo-type="WidgetFromContentPane?"></div>) then it does not include the content from the WidgetFromContentPane?.
The problem seems to be in ContentPane?.create() as "params.template" is set to false because it is coming from a BorderContainer? (which does not set params.template=true) and not a _Templated class. This causes ContentPane? to load a document fragment into its "content" attribute and ends up clearing out the domNode attribute.
I found the workaround is probably the better practice and that is to not use ContentPane? when you only need to use _Widget. If this sounds like something that needs fixing, then I will supply a file.
Change History (3)
comment:1 Changed 10 years ago by
Component: | General → Dijit |
---|
comment:2 Changed 10 years ago by
comment:3 Changed 10 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Closing because no test case, please reopen if you have one.
Hmm, it's hard to follow that description but I would like to see a test case, thanks.