Opened 9 years ago

Closed 9 years ago

#12960 closed enhancement (wontfix)

No .set('content' content) for dijit.layout.BorderContainer?

Reported by: Florian Owned by:
Priority: high Milestone: tbd
Component: Dijit Version: 1.6.1
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by bill)

Hi,

when trying to change the content of a dijit.layout.BorderContainer with some xhrGet()'ed html-content I realized there is no .set('content', content)-method for BorderContainer. So my current workaround is to wrap the BorderContainer into a dijit.layout.ContentPane and call .set('content', content) on the ContenPane...

Is there a chance to get a method with the same behaviour as dijit.layout.ContentPane.set('content', content) in BorderContainer in a future release?

Regards,

Florian

Change History (1)

comment:1 Changed 9 years ago by bill

Description: modified (diff)
Resolution: wontfix
Status: newclosed

I think you mean set(content, ...) with markup for the parser, like this?

<div dojoType=dijit.layout.ContentPane> ... </div>
<div dojoType=dijit.layout.ContentPane> ... </div>
<div dojoType=dijit.layout.ContentPane> ... </div>

I can see why you are asking for that, but it would require loading the parser, which isn't currently required by BorderContainer. So I can't see adding that.

I can imagine a set("children", ...) method though, where you would maybe download JSON over XHR and then use it to construct child widgets.

Note: See TracTickets for help on using tickets.