I've extended my utility/class in Sencha Touch 2, now I want to extend it again by different type such that by different settings in config object.
Ive extended it again but when it is extended just (by just adding extend: 'Ext.ux.MyUX'
again) it returns the previious settings in the previous object, but I want to handle it totally differently.
How can I remove the previous extended class or empty that items[]
.
Ext.define('MyAPP.view.MyView', {
extend: 'Ext.ux.MyUX',
xtype: 'my',
});
My Code:
initialize: function() {
var items = [
xtype: 'toolbar',
docked: 'top',
title:'title'
}];
this.setItems(items);
}
EDIT 1:
Lets say, I've a following config object extending my Ext.ux.MyUX
. for the first instance its working perfectly, extending my class and override the items[]
but when I want to extend it again, such that for different overriding, it shows the previous items[]
that overrided/extended previously.
config: {
fullscreen: true,
items : [
{
title: 'Home'
},
{
title: 'ABOUT',
items: [{
items: [
{ xtype: 'about'},
{
xtype: 'titlebar',
title: 'About Us',
docked: 'top'
}]
}]
}
]
}
Ext.ux
of items can be taken. – developer