javascript - Dojo - Append into a dijit.layout.contentPane - Stack Overflow

I have loaded content into a content pane.. I would now long to append addition html content into that

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 how would you go about appendin?

Thanks,

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 how would you go about appendin?

Thanks,

Share Improve this question asked Oct 16, 2011 at 17:51 LeeLee 5,9567 gold badges46 silver badges63 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 6

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)

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744795075a4594158.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信