MenuUtil | context-menu

namespace

## Index

### Variables

- count

### Functions

- close
- counter
- error
- getActiveElement

## Variables

### count

count: number = 0

- Defined in menu_util.ts:78

## Functions

### close

- close(item: Item): void

- - Defined in menu_util.ts:42

  Closes the entire context menu.

  #### Parameters

  - ##### item: Item

    The item on which the menu close is called.

  #### Returns void

### counter

- counter(): number

- - Defined in menu_util.ts:75

  #### Returns number

  A global, increasing unique counter.

### error

- error(error: Error, msg: string): void

- - Defined in menu_util.ts:68

  Error function for controlled exceptions.

  #### Parameters

  - ##### error: Error

    The thrown error, containing the stack trace.

  - ##### msg: string

    The message to be signalled.

  #### Returns void

### getActiveElement

- getActiveElement(item: Item): HTMLElement

- - Defined in menu_util.ts:56

  Retrieves the currently active element of the overall context menu.

  #### Parameters

  - ##### item: Item

    The item on which the last call was made.

  #### Returns HTMLElement

  The currently active element.

Generated using TypeDoc