Hi,
If you modify 13.0d Showcase example: https://www.smartclient.com/smartcli...e/?id=fullMenu
to display hover on menu items:
then hover is not shown and this js ex could be found on the dev console:
Thanks,
MichalG
If you modify 13.0d Showcase example: https://www.smartclient.com/smartcli...e/?id=fullMenu
to display hover on menu items:
Code:
isc.Menu.create({ ID: "menu", autoDraw: false, showShadow: true, shadowDepth: 10, data: [ {title: "New", keyTitle: "Ctrl+N", icon: "icons/16/document_plain_new.png"}, {title: "Open", keyTitle: "Ctrl+O", icon: "icons/16/folder_out.png"}, {isSeparator: true}, {title: "Save", keyTitle: "Ctrl+S", icon: "icons/16/disk_blue.png"}, {title: "Save As", icon: "icons/16/save_as.png"}, {isSeparator: true}, {title: "Recent Documents", icon: "icons/16/folder_document.png", submenu: [ {title: "data.xml", checked: true}, {title: "Component Guide.doc"}, {title: "SmartClient.doc", checked: true}, {title: "AJAX.doc"} ]}, {isSeparator: true}, {title: "Export as...", icon: "icons/16/export1.png", submenu: [ {title: "XML"}, {title: "CSV"}, {title: "Plain text"} ]}, {isSeparator: true}, {title: "Print", enabled: false, keyTitle: "Ctrl+P", icon: "icons/16/printer3.png"} ], canHover: true, showHoverComponents: true, rowHover: function(record, rowNum, colNum) {return "aaa";} }); var menuButton = isc.MenuButton.create({ ID: "menuButton", autoDraw: false, title: "File", width: 100, menu: menu }); isc.HStack.create({ width: "100%", members: [menuButton] });
Code:
12:53:37.281:TMR5:WARN:Log:TypeError: _1.shouldShowIconField is not a function Stack from error.stack: showIf() DetailViewer.fieldShouldBeVisible() DetailViewer._getVisibleFields() Canvas.getVisibleFields() DetailViewer.deriveVisibleFields() DetailViewer.setFields() DetailViewer.initWidget() Canvas.init() Class.createAutoChild() ListGrid._getStockEmbeddedComponent() ListGrid.getCellHoverComponent() ListGrid._getCellHoverComponent() GridBody._getCellHoverComponent() GridRenderer._showHover() GridRenderer._cellHover() [c]Hover.setAction() GridRenderer.mouseMove() Canvas.handleMouseMove() [c]EventHandler.bubbleEvent() EventHandler.._handleMouseMove() EventHandler._handleMouseMove() EventHandler._delayedMouseMove() [c]Class.fireCallback() Timer._fireTimeout() Timer.setTimeout/_6<()
MichalG
Comment