<script src="https://cdn.flexmonster.com/flexmonster.js"></script>
<div>
<h2>Remove an item from the context menu</h2>
<p>
The
<a
target="_blank"
href="https://www.flexmonster.com/user-interface/#context-menu"
>context menu</a> can be customized using the
<a
href="https://www.flexmonster.com/api/customizecontextmenu/"
target="_blank"
>customizeContextMenu()</a> method.
</p>
<p>
In this example, we remove the <b>Aggregation</b> item from the context menu
by deleting the corresponding object from the array of menu items (lines
30-35 in the JavaScript box).
</p>
<p>
<a
href="https://www.flexmonster.com/doc/customizing-context-menu/"
target="_blank"
>Visit our docs to learn more about customizing the context menu</a>.
</p>
</div>
<button onclick="startCustomizing()">Start Customizing</button>
<button onclick="clearCustomizing()">Clear Customizing</button>
<div id="pivot-container"></div>