PDA

View Full Version : How to override an axis class



asulhyan
24 Jun 2013, 3:24 PM
I am overriding - Radial axis, so instead of using 'Radial', I want to use 'testRadialAxis' for 'type' - Am I missing something here ? Thanks




Ext.define('Test.cmp.RadialAxis', {
override: 'Ext.chart.axis.Radial',
alias: 'axis.testRadialAxis',
drawLabel: function() {
// Do stuff here

Ext.chart.axis.Radial.superclass.drawLabel.call(this);



}
});

slemmon
26 Jun 2013, 2:42 PM
The alias will not allow uppercase (there is a ticket internally to update the docs to stipulate that uppercase is not allowed in the class alias).

asulhyan
26 Jun 2013, 6:19 PM
The alias will not allow uppercase (there is a ticket internally to update the docs to stipulate that uppercase is not allowed in the class alias).

Thanks