如何删除 Ext JS 文本字段显示的值?
How to remove Ext JS textfield displayed value?
我已经定义了一个文本字段 class 用于特殊用途,并通过基础字段继承了一个新的 class。问题 textfield
将显示值保留在它自己的显示字段中。请点击link:
这里是一些片段。谁能解释一下情况?
基础Class:
Ext.define('---.---.base.OoTextFld',{
extend: 'Ext.form.field.Text',
xtype: 'ootextfld',
grow: true,
flex: 1,
labelAlign:'right'
});
继承了一个在表单上使用的:
Ext.define('---.---.base.InheritedFld',{
extend:'---.----.base.OoTextFld',
xtype:'inheritedfld',
requires: [],
name:---.---.inherited,
fieldLabel: ---.inherited,
afterLabelTextTpl: ---.Globals.required,
bind: '{currRec.inherited}',
grow: false
});
似乎该字段绑定到一个 integer 模型字段,因此当创建 a 记录时没有为此字段指定值,它会自动获取 0
作为值。
我已经定义了一个文本字段 class 用于特殊用途,并通过基础字段继承了一个新的 class。问题 textfield
将显示值保留在它自己的显示字段中。请点击link:
这里是一些片段。谁能解释一下情况?
基础Class:
Ext.define('---.---.base.OoTextFld',{
extend: 'Ext.form.field.Text',
xtype: 'ootextfld',
grow: true,
flex: 1,
labelAlign:'right'
});
继承了一个在表单上使用的:
Ext.define('---.---.base.InheritedFld',{
extend:'---.----.base.OoTextFld',
xtype:'inheritedfld',
requires: [],
name:---.---.inherited,
fieldLabel: ---.inherited,
afterLabelTextTpl: ---.Globals.required,
bind: '{currRec.inherited}',
grow: false
});
似乎该字段绑定到一个 integer 模型字段,因此当创建 a 记录时没有为此字段指定值,它会自动获取 0
作为值。