I have a trouble with using 'lookupReference' method.
I have a panel with config.
Ext.define('TestPanel', {
extend: 'Ext.panel.Panel',
xtype: 'mypanel',
referenceHolder: true,
config: { value: null },
items: [{ xtype: 'textfield', reference: 'name'}],
updateValue: function(value) {
this.lookupReference('name').setValue(value);
}
});
And when I create a panel as follow
Ext.widget('mypanel', {value: 1});
I get error because this.lookupReference('name')
in panel's updateValue method is null.
How to use 'lookupReference' in update method?
Thanks.