renderer

Custom function for rendering the content of the menu overlay. Receives three arguments:

  • root The root container DOM element. Append your content to it.

  • contextMenu The reference to the <vaadin-context-menu> element.

  • context The object with the menu context, contains:

  • context.target the target of the menu opening event,

  • context.detail the menu opening event detail.