, alternateClassName , .
:
Ext.define('Sample', {
alternateClassName: ['Example', 'Important'],
code: function(msg) {
alert('Sample for alternateClassName... ' + msg);
},
renderTo :document.body
});
var hi = Ext.create('Sample');
hi.code('Sample');
var hello = Ext.create('Example');
hello.code('Example');
var imp = Ext.create('Important');
imp.code('Important');
, :
1. Sample, Example, Important .
2. , , .
3. . . , , , , .
:
http://jsfiddle.net/kesamkiran/kVbra/30/