The function called when the context menu has been shown.
Name | Type | Description |
options | ContextMenuOptions | Defines the context menu information. |
window.Asc.plugin.attachEvent('onContextMenuShow', function(options) { if (!options) return; if (options.type === 'Selection' || options.type === 'Target') this.executeMethod('AddContextMenuItem', [getContextMenuItems()]); });