Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IContextMenuFactory

Entity used to create right click IContextMenus on HTMLElements

Hierarchy

  • IContextMenuFactory

Index

Methods

createContextMenu

createContextMenuById

createContextMenuItem

  • createContextMenuItem(name: string, order: number, icon?: string, disabled?: boolean, childItems?: IContextMenuItem[], onClickCallback?: function, onBuildCallback?: function): IContextMenuItem

getContextMenu

  • Gets an IContextMenu by parent HTMLElement

    Parameters

    • parentElement: HTMLElement

      Parent element of the context menu to get

    Returns IContextMenu

getContextMenuById

  • Retrieves an IContextMenu by parent HTMLElement ID

    Parameters

    • parentElementId: string

      Id of the parent element's context menu to find

    Returns IContextMenu

removeContextMenu

  • removeContextMenu(parentElement: HTMLElement): void
  • Removes an existing IContextMenu

    Parameters

    • parentElement: HTMLElement

      Parent element of the context menu to remove

    Returns void

removeContextMenuById

  • removeContextMenuById(parentElementId: string): void
  • Removes a context menu object that already exists

    Parameters

    • parentElementId: string

      Id of the parent element's context menu to remove.

    Returns void