Jump to content

Show Hint/Tooltip on an item of uniTreeMenu


Point

Recommended Posts

Hi,

Base on this thread : http://forums.unigui.com/index.php?/topic/9773-hint-exttiptooltip/
i try to add hint/tooltip on one of treemenu item but still not working:

function afterrender(sender, eOpts)
{
    sender.tip = Ext.create('Ext.tip.ToolTip', {
        target: sender.el,
    //delegate: sender.getElementById(MainForm.UniMenuItems1.Test1.id);
        html: '<span class="hintClass">MyHint</span>'
    });

and i try this code in one of menu item :

UniMenuItems1.Test1.Caption :=  '<div id="anim"><span class="tooltip" data-tooltip="username must' +
                    ' consist of 29 symbols.">Test 1</span></div>';

this hint always display inside menu item.

how to resolve this.

thanks you in advanced.

Link to comment
Share on other sites

sorry sherzod, my english makes you confused, i hope you understand what i mean.

for example i have 3 menu item on unitreemenu like this:

menu 1
menu 2
menu 3
  sub menu 31
  sub menu 32
  sub menu 33

i want show tooltip in menu 2 or sub menu 32.

1. how to display tooltip with extjs code/ext Event
2. if using CSS like in that thread, what kind selector should be modified

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...