addContextMenuEntries#

Function addContextMenuEntries

  • Add new entries to the context menu.

    Parameters

    • entries: ContextMenuEntry[]

      the entries to add

    • Optional index: number

      the index at which to insert the entries, if not specified, the entries will be appended to the end

    Returns number[]

    the IDs of the added entries