Mycoding
31 Aug 2011, 11:37 AM
Please help me to do very simple extention on base of Ext.draw.Component
I try to do this but it doesn't work
Ext.define('Ext.testcircle',{
alias: 'widget.testcircle',
extend: 'Ext.draw.Component',
requires:[
'Ext.draw.*'
],
constructor:function(config){
Ext.applyIf(config,{
items:[{
type: 'circle',
fill: '#79BB3F',
radius: 100,
x: 100,
y: 100
}]
});
this.callParent([config]);
}
});
Ext.create('Ext.Window', {
width: 215,
height: 235,
layout: 'fit',
items: [new Ext.testcircle()]
}).show();
I try to do this but it doesn't work
Ext.define('Ext.testcircle',{
alias: 'widget.testcircle',
extend: 'Ext.draw.Component',
requires:[
'Ext.draw.*'
],
constructor:function(config){
Ext.applyIf(config,{
items:[{
type: 'circle',
fill: '#79BB3F',
radius: 100,
x: 100,
y: 100
}]
});
this.callParent([config]);
}
});
Ext.create('Ext.Window', {
width: 215,
height: 235,
layout: 'fit',
items: [new Ext.testcircle()]
}).show();