Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ContextMenu

Index

Constructors

constructor

Properties

Private eventSources

eventSources: Element[] = []

Private mousePos

mousePos: MousePosition = ...

Private record

record: ActiveRecord = ...

Methods

Private drawMenu

  • drawMenu(items: MenuItems, level: number): string

Private fetch

  • fetch(parameters: string): void

Private getFirstItem

  • getFirstItem(item: Element): HTMLElement

Private getItemBackward

  • getItemBackward(element: Element): HTMLElement

Private getItemForward

  • getItemForward(item: Element): HTMLElement

Private getLastItem

  • getLastItem(item: Element): HTMLElement

Private getPosition

  • getPosition($obj: JQuery, keyboard: boolean): {}

Private hide

  • hide(obj: string): void

Private hideAll

  • hideAll(): void

Private initializeContextMenuContainer

  • initializeContextMenuContainer(): void

Private openSubmenu

  • openSubmenu(level: number, $item: JQuery, keyboard: boolean): void

Private populateData

  • populateData(items: MenuItems, level: number): void

Private setFocusToFirstItem

  • setFocusToFirstItem(currentItem: HTMLElement): void

Private setFocusToLastItem

  • setFocusToLastItem(currentItem: HTMLElement): void

Private setFocusToNextItem

  • setFocusToNextItem(currentItem: HTMLElement): void

Private setFocusToPreviousItem

  • setFocusToPreviousItem(currentItem: HTMLElement): void

show

  • show(table: string, uid: string | number, context: string, enDisItems: string, addParams: string, eventSource?: Element): void
  • Main function, called from most context menu links

    Parameters

    • table: string

      Table from where info should be fetched

    • uid: string | number

      The UID of the item

    • context: string

      Context of the item

    • enDisItems: string

      Items to disable / enable

    • addParams: string

      Additional params

    • eventSource: Element = null

      Source Element

    Returns void

Private storeMousePositionEvent

  • storeMousePositionEvent(event: MouseEvent): void

Static Private drawActionItem

Static Private within

  • within(element: HTMLElement, x: number, y: number): boolean

Generated using TypeDoc