3xc3ption
2 Dec 2010, 2:49 AM
Hi there,
i have a problem with the compositefield in the new version 3.3.1
Example:
TestUi = Ext.extend(Ext.Panel, {
title: 'My Panel',
width: 400,
height: 250,
itemId: 'test',
layout: 'form',
initComponent: function() {
this.items = [
{
xtype: 'compositefield',
items: [
{
xtype: 'textfield',
flex: 1,
itemId:'feld_1',
fieldLabel: 'Label',
ref:'field1'
},
{
xtype: 'textfield',
flex: 1,
itemId:'feld_2',
fieldLabel: 'Label',
ref:'field2'
}
]
}
];
TestUi.superclass.initComponent.call(this);
}
});
Ext.onReady(function() {
var headPanel = new TestUi({
renderTo: 'panel_test_1'
});
});
I get an error like:
TypeError: comp.getItemId is not a function
return comp.getItemId();
whats wrong with the compositefield ?
i have a problem with the compositefield in the new version 3.3.1
Example:
TestUi = Ext.extend(Ext.Panel, {
title: 'My Panel',
width: 400,
height: 250,
itemId: 'test',
layout: 'form',
initComponent: function() {
this.items = [
{
xtype: 'compositefield',
items: [
{
xtype: 'textfield',
flex: 1,
itemId:'feld_1',
fieldLabel: 'Label',
ref:'field1'
},
{
xtype: 'textfield',
flex: 1,
itemId:'feld_2',
fieldLabel: 'Label',
ref:'field2'
}
]
}
];
TestUi.superclass.initComponent.call(this);
}
});
Ext.onReady(function() {
var headPanel = new TestUi({
renderTo: 'panel_test_1'
});
});
I get an error like:
TypeError: comp.getItemId is not a function
return comp.getItemId();
whats wrong with the compositefield ?