How to show context menu submenu tooltip

Hi,

I use the code below to show a tooltip on my main menu but submenus don’t show the tooltip, please help.

            webix.ready(function(){
                
                webix.ui({
                    view:"contextmenu",
                    id: "itemMenu",
                    tooltip: function(item) {
                        if (item.tooltip)
                            return item.tooltip;
                        return "";
                    },
                    data:[                        
                       { id:"2", value:"Edit", tooltip:"This is a tooltip"},
                       { id:"1", value:"Show", submenu:[{id:"3", value:"abc", tooltip:"zzzz"}]}
                    ]                       
                });

Hello,

You should use the submenuConfig property to provide settings for both main menu and submenus. Please, check: https://webix.com/snippet/4bba8123

Perfect, thanks Helga