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元素
contentEl
属性,值为元素的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.
分享到:
相关推荐
Extjs 4.11 重写 Panel 添加 click事件
Extjs 重写Panel添加click事件
类似extjs中viewport的panel viewport只能渲染到body,而这个panel可以渲染到任何html元素,并且这个panel会自动变大!自动填充到最大化
一个简单的EXTJS Panel,对于入门的学者来说,是个很好的例子。
js代码,实现了 extjs4.x tabpanel 动态加载panel和html的功能
基于extjs form表单的项目源码
NULL 博文链接:https://zhonghuart.iteye.com/blog/1663377
Extjs checkboxgrop动态获取后台数据,并默认为全选状态
ExtJS grid过滤操作,可以动态操作本地的store更改筛选的内容
ExtJS Panel常用方法,需要的朋友可以参考下。
extjs crud 的一个范例,实现了增改删功能
EXTJS应用EXTJS应用EXTJS应用EXTJS应用EXTJS应用EXTJS应用
extjs动态生成model、store、panel;sql拼接等多种技术难点
如何给Ext.panel增加一个背景图片
extjs资料extjs资料extjs资料extjs资料extjs资料
extjs入门 extjs入门 extjs入门 extjs入门 extjs入门
extJS资源,不适合javascript
网上好不容易才找到的,可以用,而且是EXTJS3下可以使用,和大家分享下,如果用不了,请看看你的FLASH版本,运行TMP.HTM就可以了
Extjs Grid 操作大全,获取各种值和添加各种点击事件
第七讲.ExtJS面板Panel 第八讲.EXtJS布局模式-Auto布局、Fit布局、Accordion布局 第九讲.ExtJS布局模式-Card、Anchor、Absolute 第十讲.ExtJS布局模式-Column、Table、Border 第十一讲.ExtJS布局模式-Box布局、...