Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IContextMenu

Context Menu that allows modification of the menu IContextMenuItems and whether it is active

Hierarchy

  • IContextMenu

Index

Properties

enabled

enabled: boolean

Whether the context menu is active

parentElementId

parentElementId: string

ID of the context menu's parent HTMLElement

Methods

addItem

addItemConfig

disable

  • disable(): void
  • Disables the context menu and removes all behavior on the DOM related to that menu

    Returns void

enable

  • enable(): void
  • Enables the context menu and adds all behavior for a context menu. This is required for the context menu to show up when right clicking on an element.

    Returns void

getItem

itemExists

  • itemExists(menuItemName: string): boolean
  • Checks if an IContextMenuItem exists with the provided name

    Parameters

    • menuItemName: string

      Name of the item

    Returns boolean

    Whether an item with that name exists or not

items

removeAll

  • removeAll(): void

removeItem

  • removeItem(menuItemName: string): void
  • Removes an IContextMenuItem in the menu options list

    Parameters

    • menuItemName: string

      Name of the item to remove

    Returns void