开发者

Instantiating Ext.form.CompositeField

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜