`
tmartin
  • 浏览: 102224 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

extjs如何操作panel的html

阅读更多

1.如何动态修改panel里的html值

Ext.getCmp(‘panel1’).body.update('<iframe scrolling="auto"
 frameborder="0" width="100%" height="100%" 
src="PagingGrid11.jsp"></iframe>
');

 2.如何将已有HTML作为panel的body元素

属性,值为元素的ID

extjsAPI 写道
Specify an existing HTML element, or the id of an existing HTML element to use as the content for this component.

This config option is used to take an existing HTML element and place it in the layout element of a new component (it simply moves the specified DOM element after the Component is rendered to use as the content.

Notes:

The specified HTML element is appended to the layout element of the component after any configured HTML has been inserted, and so the document will not contain this element at the time the render event is fired.

The specified HTML element used will not participate in any layout scheme that the Component may use. It is just HTML. Layouts operate on child items.

Add either the x-hidden or the x-hide-display CSS class to prevent a brief flicker of the content before it is rendered to the panel.
 
分享到:
评论
4 楼 wzwahl36 2012-11-22  
<a href="http://redstones.sinaapp.com/blog.php?id=44">http://redstones.sinaapp.com/blog.php?id=44</a>
3 楼 wzwahl36 2012-11-22  
http://redstones.sinaapp.com/blog.php?id=44
额呵呵,用上了~
2 楼 jackson200 2012-10-30  
  
1 楼 来利强 2012-09-05  
  

相关推荐

Global site tag (gtag.js) - Google Analytics