coriolis
25 Aug 2011, 7:54 PM
Hi All,
I have a subclass of Ext.panel.Panel and I want to add configs and methods so they can be inherited be subclasses of my class.
What I want is for the getParentUIComponent, getContainingUIComponent, xxxClass and xxyClass methods to be inherited to my subclasses.
Ext.define('CSuper', {
extend: 'Ext.panel.Panel',
configs : {
parentUIComponent : null,
containingUIComponent : null
},
xxyClass : function() {
return this.addCls.apply(this, arguments);
},
xxxClass : function() {
return this.addCls.apply(this, arguments);
}
})
Ext.define('Canvas', {
extend: 'CSuper',
configs : {
Test : {}
}
})
I have a subclass of Ext.panel.Panel and I want to add configs and methods so they can be inherited be subclasses of my class.
What I want is for the getParentUIComponent, getContainingUIComponent, xxxClass and xxyClass methods to be inherited to my subclasses.
Ext.define('CSuper', {
extend: 'Ext.panel.Panel',
configs : {
parentUIComponent : null,
containingUIComponent : null
},
xxyClass : function() {
return this.addCls.apply(this, arguments);
},
xxxClass : function() {
return this.addCls.apply(this, arguments);
}
})
Ext.define('Canvas', {
extend: 'CSuper',
configs : {
Test : {}
}
})