Closed maxtsh closed 3 years ago
I've done this on my project: check PortModel
.
Basically, react-diagrams
will call yourNodeInstance.serialize()
whenever it needs to serialize your node model, and it will call yourNodeInstance.deserialize(event, engine)
whenever it needs to deserialize your node model, where event.data
is what you returned in serialize
.
Oh, man thanks. @renato-bohler. I got the point. very cool.
hello everyone. I have a problem with storing custom data inside a node JSON object which I want to use after serialization.
I added a Modal popup to my node and want to ask my user to give me some information about the flow so I added a state to my node-widget component but How can I pass that data to output serialized data?