我定义了一个专门用途的文本字段类,并通过基类继承了一个新类。问题 textfield
将显示值保留在其自己的显示字段上。请点击链接:
这里是一些片段。谁能解释一下情况吗?
基类:
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
});
最佳答案
该字段似乎绑定(bind)到 integer model 字段,这样当创建一条记录时没有为此字段指定值时,它会自动获取 0
作为值。
关于javascript - 如何删除 Ext JS 文本字段显示的值?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47709626/