Hi!
I'm just wondering why the CssClass-property on a ToolTip is not used?
At the moment you're doing this in the function _createUI in RadToolTip.js:
But what I'd like to do (since I have diffrent tooltip-skins but with small variations) is to append my own cssclass to the rootDiv className.
Instead of creating three skins with small variations, I could append a css-class to the root of the tooltip, use one skin and create just the classes where I want to do my changes.
So let's say I have a class named "ExtendedTip", then
<div class="RadToolTip_MyName rtVisibleCallout">
would become
<div class="RadToolTip_MyName rtVisibleCallout ExtendedTip">
by setting the CssClass-property on the RadToolTip.
In code, this is what I want, more or less:
something like that.. I don't know.
It would save some CSS and bandwidth.
Best regards
Mario
I'm just wondering why the CssClass-property on a ToolTip is not used?
At the moment you're doing this in the function _createUI in RadToolTip.js:
rootDiv.className = this._getFullSkinName() + (this.get_showCallout() ? " rtVisibleCallout" : "") + (isRightToLeft ? " RadToolTip_" + this._skin + "_rtl" : ""); |
But what I'd like to do (since I have diffrent tooltip-skins but with small variations) is to append my own cssclass to the rootDiv className.
Instead of creating three skins with small variations, I could append a css-class to the root of the tooltip, use one skin and create just the classes where I want to do my changes.
So let's say I have a class named "ExtendedTip", then
<div class="RadToolTip_MyName rtVisibleCallout">
would become
<div class="RadToolTip_MyName rtVisibleCallout ExtendedTip">
by setting the CssClass-property on the RadToolTip.
In code, this is what I want, more or less:
... |
rootDiv.className = this._getFullSkinName() + (this.get_showCallout() ? " rtVisibleCallout" : "") |
+ (isRightToLeft ? " RadToolTip_" + this._skin + "_rtl" : "") |
+ this._getDefinedCssClass(); |
... |
_getDefinedCssClass() : function() { |
if (this._userDefinedCssClass != "") |
return " " + this._userDefinedCssClass; |
} |
something like that.. I don't know.
It would save some CSS and bandwidth.
Best regards
Mario