Open kunalDel9 opened 6 years ago
I'm not sure what you're asking for. You can browse through all the code.
I want code sample where you implemented context menu option in different component.
Context menu tag is not on same component. It is in different component.
On Tue, 22 May 2018, 6:29 pm Isaac Mann, notifications@github.com wrote:
I'm not sure what you're asking for. You can browse through all the code https://github.com/isaacplmann/ngx-contextmenu.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/isaacplmann/ngx-contextmenu/issues/114#issuecomment-390980492, or mute the thread https://github.com/notifications/unsubscribe-auth/AgKFOJMlp5nTdoORSmoCqmkUiokMP4i5ks5t1AulgaJpZM4UIl7n .
Please View these file.. I have a component assetthumnailview which has UL LI. it click on LI context Menu invoked. For Context Menu I have different Component which extends ContextMenuComponent Class. But i am unable to Open Context Menu. That's why i need Some Code sample where Contextmenu is in different Component.
You don't need to have asset card context menu extend ContextMenuComponent. Just have it include the <context-menu>
element in the template like you already are.
Then, you need to make sure that the <app-assetcardcontextmenu>
component is rendered somewhere on the page and that the ContextMenuModule.forRoot()
is imported in a module that is not lazy loaded.
Hii isaac,
I have worked on this work around still unable to fix my problem. I have made a component which has input array data to create option.
Can i get code reference when my context menu option are in different component. I am unable to set super() in Constructor call. so i need some code reference. please help asap.