---
title: "Adding Multiple Context Menu Entries"
slug: "adding-multiple-context-menu-entries-1"
updated: 2023-12-21T09:40:53Z
published: 2023-12-21T09:40:53Z
canonical: "knowledge.navvis.com/adding-multiple-context-menu-entries-1"
---

> ## Documentation Index
> Fetch the complete documentation index at: https://knowledge.navvis.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Adding Multiple Context Menu Entries

To include multiple entries, return an array of [ContextMenuEntry](https://ivion-api.docs.navvis.com/latest/reference/interfaces/contextmenuentryinterface.html) objects and, if using TypeScript, set the return type to `ContextMenuEntryInterface[]` by running:

```plaintext
// SampleContextMenuEntryLayer.ts
// ...
  public onContextMenu(pos: MouseEventCoordinatesInterface): ContextMenuEntryInterface[]
  {
    //return the ContextMenuEntryInterface
    return [{
      name: "Go to Navvis",
      icon: "fa-globe",
      callback: () =>
      {
        window.open("https://www.navvis.com")
      }
    },
    {
      name: "Go to NavVis Developer Forum",
      icon: "fa-quote-left",
      callback: () =>
      {
        window.open("https://support.navvis.com/forums/")
      }
    }]
  }
// ...
```
