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+.
精彩评论