Class: InteractiveMarkerMenu

ROS3D. InteractiveMarkerMenu

new InteractiveMarkerMenu(options)

A menu for an interactive marker. This will be overlayed on the canvas.

Parameters:
Name Type Description
options

object with following keys:

  • menuEntries - the menu entries to add
  • className (optional) - a custom CSS class for the menu div
  • entryClassName (optional) - a custom CSS class for the menu entry
  • overlayClassName (optional) - a custom CSS class for the menu overlay
  • menuFontSize (optional) - the menu font size
Source:
  • interactivemarkers/InteractiveMarkerMenu.js, line 17

Methods

hide(event)

Hide the menu DOM element.

Parameters:
Name Type Description
event

(optional) - the event that caused this

Source:
  • interactivemarkers/InteractiveMarkerMenu.js, line 172

show(control, event)

Shoe the menu DOM element.

Parameters:
Name Type Description
control

the control for the menu

event

the event that caused this

Source:
  • interactivemarkers/InteractiveMarkerMenu.js, line 146

<inner> makeUl(parentDomElem, parentMenu)

Create the HTML UL element for the menu and link it to the parent.

Parameters:
Name Type Description
parentDomElem

the parent DOM element

parentMenu

the parent menu

Source:
  • interactivemarkers/InteractiveMarkerMenu.js, line 109