PDA

View Full Version : How to change background colour of tooltip using cls



lasy
1 Dec 2015, 10:44 PM
Hi All,
I am using below code for changing background colour of tooltip .It is woring fine .
I need cls instead of background color as red .
Please help meresolved this

,
{
xtype: 'button',
height: 27,
margin: '',
maxHeight: 27,
maxWidth: 27,
padding: '5 0 0 5',
ui: 'button-button-header',
width: 27,
icon: './resources/images/help.png ',
//tooltip: 'Environment.Information.SystemType.Tooltip'
renderTo: Ext.getBody(),
listeners: {
afterrender: function (c) {
Ext.create('Ext.tip.ToolTip', {
target: c.getEl(),
html: ac.local.Definitions.getLabel('Environment.Information.SystemType.Tooltip'),
//baseCls: 'chngBckgrdCls'
bodyStyle: 'background-color: #778787;'
});
}
}

}
instead of bodyStyle need to use cls .How to do .Please provide me code also

Gary Schlosberg
2 Dec 2015, 7:23 AM
Perhaps this will work for you:
https://fiddle.sencha.com/#fiddle/11vf