Closed bewithme closed 3 years ago
Option 1: You can override the DefaultNodeModel and add the extra fields you want, in the serialize() and deserialize() methods Option 2: You can use the extras:{} field that is default on DefaultNodeModel and store your extra fields in that as a json object
For whatever reason I'm having issues accessing the extra prop after deserialize, are there any examples? I'm using the DefaultNodeModel, tried to add extras as is ports but no success
@rzfzr How are you trying to access the extras field?
how do I add extra field to DefaultNodeModel and make it can be serialized and deserialized ?