开发者

Dojo - Append into a dijit.layout.contentPane

开发者 https://www.devze.com 2023-04-13 04:05 出处:网络
I have loaded content into a content pane.. I would now long to append addition html content into that pane however there does not seem to a an append method..

I have loaded content into a content pane.. I would now long to append addition html content into that pane however there does not seem to a an append method..

I do not want to overwrite the content of the pane with set.("content", html), so h开发者_C百科ow would you go about appendin?

Thanks,


There's no special method for doing this, but you can append nodes to the ContentPane instance's containerNode.

For instance, to use dojo.place to add some additional node(s) to a ContentPane instance cp:

dojo.place("<div>More HTML</div>", cp.containerNode);
// (places as last child by default)
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号