Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    hoverString on submenu not displayed

    Hi there,

    We have problems to display a hoverstring, on a menuItem in a submenu.
    I assumed, that the cellHoverHTML defined in the Menu, shoud also affect the submenu, but it doesn't. Do I have to set a specific attribute to the Menuitem with the submenu?


    Its reproducable with SmartClient_v111p_2018-02-25_Pro.zip and Firefox 58.0.2 (64-Bit) and Chrome Version 64.0.3282.186
    Code:
    isc.MenuButton.create({
        "ID": "theMenuButton",
        "prompt": "Examplehover",
        "left": 20,
        "top": 20,
        "hideUsingDisplayNone": false,
        "hoverWidth": 200,
        "showMenuButtonImage": false,
        "title": "MenuButton",
        menu: isc.Menu.create({
            "ID": "theMenu",
            "hoverWidth": 220,
            "canHover": true,
            "cellHoverHTML": function (record, rowNum, colNum) {
                return record.hoverString;
            },
            "data":
            [{
                    "ID": "first",
                    "hoverString": "a hoverString",
                    "title": "Here is a hover"
                }, {
                    "ID": "supportMenuItem_24",
                    "title": "Support",
                    "hoverString": "also a hoverString",
                    "submenu":
                    [
                    {
                            "ID": "teamviewerMenuItem_24",
                            "title": "here should be a hover",
                            "hoverString": "a hoverString"
                    }
                    ]
                }
            ]
        })
    });

    #2
    The "submenu" data you provide is turned into a distinct Menu instance with separate properties, so it does not have your cellHoverHTML implementation. You could either:

    1. provide a fully constructed submenu with the properties you want
    2. make a subclass and set submenuConstructor

    Comment


      #3
      Thanks, giving a full isc.Menu has fixed the problem.

      Comment

      Working...
      X