Updates an item in the context menu with the specified items.
Name | Type | Description |
items | Array.<ContextMenuItem> | An array containing the context menu items for the current item. |
window.Asc.plugin.attachEvent('onContextMenuShow', function(options) { if (!options) return; if (options.type === 'Selection' || options.type === 'Target') this.executeMethod('UpdateContextMenuItem', [getContextMenuItems()]); });