Adds a new menu item

nJDSK.menuHelper.addMenu(parentId, menuId, menuTitle, menuHref, menuIcon, clickCallback)


  • string parentId id of parent item, if left empty, the menu item will be added to the top level
  • string menuId menu item id, required
  • string menuTitle menu title, required
  • string menuHref menu URL, must be a fully qualified URL, or a #
  • string menuIcon menu icon URL, optional
  • function clickCallback menu item click event


nJDSK.menuHelper.addMenu('linksmenu','linksmenu-1','Link with icon and callback','#','images/icons/silk/link.png',function(){
    alert('You clicked this menu item.');