Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to show a tooltip on a disabled control?

I'm displaying a list of buttons, some of which might be disabled. I need to show a tooltip on the disabled buttons with an explanation of why it's disabled, but it seems I can't disable the button without disabling the tooltip. Is there a simple way around this?

like image 756
geo Avatar asked May 26 '10 15:05

geo


1 Answers

Wrap the Button in a Group, and apply the toolTip to the group instead.

<s:Group toolTip="My toolTip">
    <s:Button enabled="false"/>
</s:Group>

It's a bit ugly, but it works.

like image 93
Peter Hall Avatar answered Oct 07 '22 19:10

Peter Hall