开发者

Instantiating Ext.form.CompositeField

开发者 https://www.devze.com 2023-01-02 13:11 出处:网络
Why can\'t I instantiate an Ext.form.CompositeField in extJS? Firebug tells me \"CompositeField is not a constructor\". My code:

Why can't I instantiate an Ext.form.CompositeField in extJS? Firebug tells me "CompositeField is not a constructor". My code:

var f = new Ext.form.CompositeField({
    labelWidth: 120,
    items: [
    {
 xtype : 'label',
 fieldLabel: new_attr_name,
    },
    {
        xtype     : 'label',
        fieldLabel: new_attr_display_name,
    },
    {
        xtype     : 'label',
开发者_如何学Go        fieldLabel: new_attr_type,
    }
    ]
});


That error means you either have an include issue, or you're using an older version of Ext. Check the Net tab in Firebug and make sure you have no red lines indicating include files that did not load. Also make sure that you've included all the proper Ext files and that Ext is version 3.2+.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号