This class perform all the needed operations for context menus
Constructor
Name | Type | Description |
---|---|---|
contextMenu | BaseContextMenu | The ContextMenu for witch the operator is made |
Remove event listeners, set event listeners to null so all references to this are removed and remove the menu from the screen
Menu cancellation action
Keydown on the keyboard action
Name | Type | Description |
---|---|---|
key | String | The pressed keyboard key |
Mouse enter context menu action
Mouse enter item action
Name | Type | Description |
---|---|---|
menuItem | HTMLElement | The targeted item |
Mouse leave context menu action
Mouse leave item action
Name | Type | Description |
---|---|---|
menuItem | HTMLElement | The targeted item |
Select item action
Name | Type | Description |
---|---|---|
itemObjId | Number | The id of the selected item |
A reference to the context menu
Click cancel button event listener
Keyboard keydown event listener
Mouseenter context menu event listener
Mouseleave context menu event listener
Touch event listener for the context menus
Enum for Item changes from the keyboard
The index of the selected by the keyboard menuItem
Click menu item event listener
Mouse enter menu item event listener
Mouseleave menu item event listener
TimerId for the mouseleave context menu action
Selected item change by the keyboard
Name | Type | Description |
---|---|---|
changeValue | Number | A value indicating witch menuItem have to be selected See BaseContextMenuOperator.#keyboardItemChange |
Remove the css class on all items