PDA

View Full Version : Suggestion: Tooltips for panel collapse/expand icon


watrboy00
01-28-2008, 03:45 AM
Unless I am wrong (probably am) there is no way to specify a tooltip for a panel's collapse/expand toggle tool button if you use collapsible: true. You can specify your own collapse/expand icons and their functionality but it would be nice to either have a tooltip included by default or be able to add in your own custom text.

RWaters
01-31-2008, 12:11 PM
AFAIK there's not a built-in way to add a tooltip to those buttons. You should be able to poke through the dom elements and directly add a QuickTip to it though.

ljaeren
02-03-2008, 12:16 AM
Good design principles warrant adding a tooltip to the default collapse tool icons. I mined the code and discovered where I can insert a single tooltip message that will display when you mouseover the expand/collapse icon on the panel and accordion panel headers. The solution will work for whatever expand/collapse icon you want to use. The function where the code needs to change is - Ext.Panel = Ext.extend(...) View the attached ZIP for the coding solution. I provided a snapshot of changes made to ext-all.js and ext-all-debug.js.

watrboy00
02-07-2008, 08:46 AM
AFAIK there's not a built-in way to add a tooltip to those buttons. You should be able to poke through the dom elements and directly add a QuickTip to it though.

Yea I didn't think it was. Should be pretty simple to add in so its there by default.