View Full Version : tooltip in Ext.menu.Item

10 Dec 2013, 3:36 AM
Good morning!

I wonder if it is possible to insert a tooltip for a menu item when the menu item is disabled. When the menu item is enabled this tooltip should not appear anymore.

Kevin Jackson
12 Dec 2013, 2:49 PM
Overriding the disable/enable methods would be one approach.

13 Dec 2013, 2:27 AM
Could you give an example of how it might be done this replacement?

Kevin Jackson
13 Dec 2013, 7:31 AM
I will try to track down an example for you.

13 Dec 2013, 7:47 AM
Thank you. I know you can put regardless of whether or not enabled the menu item, but I need to put the tooltip considering just the fact of being or not enabled the menu item's tooltip.

Kevin Jackson
13 Dec 2013, 9:32 AM
It will depend on whether all tooltips or just specific ones will follow the pattern you mentioned

Here is some information on using override

You can override any property or method on an existing class with the override property. Override really ?overwrites a property or a method in the specified class.

So it would look something like this
Ext.define('ThisNameDoesNotMatter', {
override : 'Ext.panel.Panel',
height : 100,
width : 200,
title : ':-)'
Ext.create('Ext.panel.Panel', {
renderTo : Ext.getBody()

16 Dec 2013, 4:10 AM
If there was a mouseover event type I could do it. However, from what I've been researching this event for no menu item.