Open angelostiffy opened 1 year ago
I could listen to the moduleCreated
event and add the content to the module.
And add content to module:
editor.drawflow.drawflow[ModuleName] = { "data": { YOUR NODES } }
As jero has pointed out but have implemented exactly this
update the JSON with the additional module data so its ready for parsing but you have to do some house keeping first. So
then editor.import which will then map all the draw data to the UI module tabs
Hi Jero
I'm trying to implement to reload the default loaded diagrams that I setup whenever a user wants to add a new module. Below is the picture showing the default diagrams loaded.
Here is when a user adds a new module.
And this what it looks after adding a new module.
I'm looking for implementations (if you have any) that can reload the default diagrams whenever a user adds a new module.
Thank you!