简体   繁体   English

如何删除Ext JS文本字段显示的值?

[英]How to remove Ext JS textfield displayed value?

I've defined a Text field class for specialised usage and inherit a new class through the base one. 我已经定义了一个Text字段类用于特殊用途,并通过基类继承了一个新类。 The problem textfield keeps display value on it's own display field. 问题textfield字段在其自己的显示字段上保留显示值。 Click the link please: 请点击链接: 屏幕射击

Here is some snippets. 这是一些片段。 Could anyone explain the situation? 谁能解释情况?

Base Class : 基类

Ext.define('---.---.base.OoTextFld',{
    extend: 'Ext.form.field.Text',
    xtype: 'ootextfld',
    grow: true,
    flex: 1,
    labelAlign:'right'
});

Inherited one which is used on Form: 继承了在Form上使用的一个:

Ext.define('---.---.base.InheritedFld',{
    extend:'---.----.base.OoTextFld',
    xtype:'inheritedfld',

    requires: [],

    name:---.---.inherited,
    fieldLabel: ---.inherited,
    afterLabelTextTpl: ---.Globals.required,
    bind: '{currRec.inherited}',
    grow: false
});

似乎该字段绑定到一个整数模型字段,因此当创建一个没有为此字段指定值的记录时,它会自动获得0作为值。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM