January 5th, 2009
I am very new to extjs and am trying to play with tooltips. I cannot seem to be able to change the background color. How do you do this? I have tried the config options style, cls, baseCls. Only baseCls seemed to have an effect and that simply removed all style.
The piece of code I am working with is:
new Ext.ToolTip({
target: 'my_id',
html: 'the stuff to display',
autoWidth: 1,
style: 'background-color: yellow;'
});
Any help would be greatly appreciated.
Thanks,
-TonyHave you tried the bodyStyle config option?Thank you very much. That has got part of it. I don't know how I missed that parameter in the API listing. The bodyStyle: 'background-color: yellow;' has worked to get the center of the tooltip yellow however, there is a margin around the text that is still light blue with a thin blue border around that. How do I change the color of those?
Thanks again,
-Tony#If you have any other info about this subject , Please add it free.# |
|
Posted in dballastages.com | edit