Ext使用form布局时 使用hide()方法或者setVisible()隐藏textfile 等组件 filedLable不隐藏问题
来源:互联网 发布:日进斗金软件 编辑:程序博客网 时间:2024/05/23 01:18
http://www.sencha.com/forum/showthread.php?25479-2.0.1-2.1-%20%20Field.destroy%28%29-on-Fields-rendered-by-FormLayout-does-not-clean-up.&p=120152#post120152
For Ext 3.0.0
Ext.override(Ext.layout.FormLayout, {
renderItem : function(c, position, target){
if(c && !c.rendered && (c.isFormField || c.fieldLabel) && c.inputType != 'hidden'){
var args = this.getTemplateArgs(c);
if(typeof position == 'number'){
position = target.dom.childNodes[position] || null;
}
if(position){
c.itemCt = this.fieldTpl.insertBefore(position, args, true);
}else{
c.itemCt = this.fieldTpl.append(target, args, true);
}
c.actionMode = 'itemCt';
c.render('x-form-el-'+c.id);
c.container = c.itemCt;
c.actionMode = 'container';
}else {
Ext.layout.FormLayout.superclass.renderItem.apply(this, arguments);
}
}
});
Ext.override(Ext.form.Field, {
getItemCt : function(){
return this.itemCt;
}
});
For Ext 3.0.1
Ext.layout.FormLayout.prototype.trackLabels = true;
- Ext使用form布局时 使用hide()方法或者setVisible()隐藏textfile 等组件 filedLable不隐藏问题
- android使用隐藏api的方法@hide
- 如何使用android系统隐藏hide的类和方法
- 使用jquery的hide方法实现div隐藏动画
- 使用E-Form++可视化图形组件库系统隐藏参数的方法探讨?
- ext hide(),setVisible(false),remov
- android使用隐藏api的方法(使用被@hide的api)!!!!!!!
- android使用隐藏api的方法(使用被@hide的api)
- android使用隐藏api的方法(使用被@hide的api)
- android使用隐藏api的方法(使用被@hide的api)
- android使用隐藏api的方法(使用被@hide的api)
- 隐藏元素的hide方法
- Ext.form.FormPanel 组件的使用(CheckBox, Radio, HtmlEditor,DateField等组件)
- ext form combo 不能隐藏 labfield的问题
- [JQ权威指南]第十八天:使用show()与hide()方法动画显示和隐藏图片
- 一个给力的布局:使用Ext.Viewport+Ext.Panel布局(带选项卡+滚动条+隐藏/扩展)
- IOS TextFile键盘不遮挡 + 下拉隐藏键盘
- 使用Android隐藏类和隐藏方法
- 添加xml文件自动提示方法
- C#中TreeView组件使用方法初步
- Java基础复习:线程练习1
- Java中"=="与equals()方法的区别
- sql表查询某一字段为空的记录的问题
- Ext使用form布局时 使用hide()方法或者setVisible()隐藏textfile 等组件 filedLable不隐藏问题
- linux txt
- 在windows下调试linux内核
- 平台调用:C# 使用非托管dll函数
- ReSharper使用手册:配置语法高亮字体和颜色
- java的八大基本类型
- 初识bat文件
- MapReduce框架编程体会
- Andriod编译内核模块*.ko