Hi Teddy,
Please refer to the following sample for how to create a custom content menu with the shared code. On the further analysis on the shared details, we found you have imported the ContextMenuItemsModel from “synfusion/ej2-angular-diagrams” but you supposed to import ContextMenuItemsModel from “@syncfusion/ej2-diagrams”.
Code snippet:
|
import { ContextMenuSettingsModel } from '@syncfusion/ej2-diagrams';
|
we will consider your suggestion to provide exact information on context menu import modules in our documentation. We have logged a documentation improvement task for your suggestion and We will include the documentation changes on or before 29th June 2021. We will let you know once the documentation gets refreshed in live.
Regards,
Gowtham