Class contextmenu

contextmenu

Class Summary
Constructor Attributes Constructor Name and Description
 
A Class to handle the context menu of the workbook, The context menu is devided into three, Like Row Context menu, Column Context menu, Data Table Context menu.

Method Summary

Class Detail

contextmenu()
A Class to handle the context menu of the workbook, The context menu is devided into three, Like Row Context menu, Column Context menu, Data Table Context menu.
require('contextmenu')

Field Detail

<static> contextmenu.EVENT_TARGET
Object EVENT_TARGET the target in which the context menu event happened will be recorded here.
<static> contextmenu.MENU_ITEM
Object MENU_ITEM The supported all teh menu items in the workbook.

Method Detail

  • <static> contextmenu.init()
    Setup all the context menu associated with the Row, COlumn and data table including the Sheet Tabs.
  • <static> contextmenu.initTabContextMenu(tab)
    Setup context menu for each of the TAB in the workbook.
    Parameters:
    {DIV} tab
  • <static> contextmenu.menuEvent(action)
    This method is an Action Listener, Once the menu event happens the method will be executes with the action name.
    Parameters:
    {String} action
  • <static> contextmenu.setupMenuItem(items)
    Method removes all the existing menu items and setup with the items provided here items[]
    Parameters:
    {Object[]} items