Context menu tooltip not showing

Hi,

If I set tooltip:true for my context menu, and then set a tooltip attribute for each menu item:

itemMenu.add({"id": "First Menu", "value": "1", "tooltip": "abcabc" });

Then the tooltip shows but it always shows the ‘value’ attribute, in this case ‘1’.

Looking at the docs it should be possible to set the tooltip on each menu item explicitly or am I missing something?

You can set the tooltip as a function. In such case, it takes the master data object and should return an html string (as well as the template does):

tooltip:function(item){
    return item.tooltip
}

http://webix.com/snippet/de09d1c5

Perfect, thanks

Hi Team

Cannot read property ‘on_context’ of undefined
this type of error we are getting.
Thank’s in advance

Regards
Deepak E

Hi @deepak

Can you please provide the code of your implementation?