View Full Version : Tooltip title text on tabs
jarrod
8 Nov 2006, 10:16 PM
Just a suggestion, may be good to allow the tooltip text to be set to something different from the tab's text?
jack.slocum
9 Nov 2006, 1:44 AM
YAHOO.ext.TabPanelItem.prototype.setTooltip = function(text){
this.titleEl.dom.title = text;
};
Note, it you call setText you will have to reset the tooltip.
jarrod
9 Nov 2006, 11:06 PM
Btw, is there a quick method to retrieve the tabpanelitem of a contentpanel?
Meanwhile, noticed that maxTabWidth is not used? Perhaps if the tab text length can be truncated automatically by maxTabWidth (with ... ellipses?) then the tooltip can remain as the original long text string.
jack.slocum
10 Nov 2006, 3:13 AM
Perhaps if the tab text length can be truncated automatically by maxTabWidth (with ... ellipses?)
It is in browsers with support text-overflow (IE and Safari). Doing it with code is too resource intensive with more than 5 or 6 tabs (I tried).
jarrod
12 Nov 2006, 7:05 PM
Yeap, agreed - will let the browser do it if it supports it then.
Meanwhile, just to confirm... RC1 doesn't seem to use the maxTabWidth value?
jack.slocum
12 Nov 2006, 7:19 PM
Nope. It was added for tab scrolling which ended up not happening. I left it in there because it could be used in the future.
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.