retejs / context-menu-plugin

https://retejs.org
MIT License
11 stars 43 forks source link

filter context menu options conditionally #19

Closed jadhavsuraj2207 closed 1 year ago

jadhavsuraj2207 commented 5 years ago

Hi, I want to hide some options in context menu of delete and clone (node Items ) on specific nodes. Eg.

If i right clicked on 'select file' node , then i want to hide or remove Delete and 'select number' options in the context menu . *I have added some options in context menu by using 'nodeItems' property in context menu plugin as follows - nodeItems: { 'select File'() { self.CreateFile(); }, 'select Number'() { self.CreateNumber(); }, 'select Web Book'() { self.CreateWebBook(); }, 'Delete All connected'() { self.removeOutputNodes(self.rootnode); }, Is there any way to do it ? Thanks.

rete-js[bot] commented 1 year ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days.