PDA

View Full Version : Override scss variables inherited down to sub class.



sudhanshusekhar27
6 May 2014, 4:02 AM
Hi,
How can I override scss variables defined in parent class(Ext.Button) for some other custom class(CustomButton) which is extending the parent class.



Ext.define('Example.ExButton', {
extend : 'Ext.Button',
alias : 'widget.exbutton',
baseCls : Ext.baseCSSPrefix + 'exbtn',
initComponent : function() {
var me = this;
me.callParent(arguments);
}
});

I want to override few scss variables defined in button for exbtn only. Any suggestion..

damo
6 May 2014, 4:13 AM
Take a look at the Creating Custom Component UIs section of the theming guide (http://docs.sencha.com/extjs/4.2.2/#!/guide/theming)