I really enjoy the NeXt framework. I've made numerous tweaks and enhancements, but I have came across a small issue. I want to be able to update a node's name. And that name is also used as it's identity for the node and corresponding links.
I have the following topology config...
// Node and Link identity key attribute name
identityKey: 'name',
// configuration for nodes
nodeConfig: {
label: "model.name",
iconType: "model.deviceType",
color: "model.color"
},
The data-id for each node is not directly linked to the model.name. If the name is ever updated, the corresponding data-id is not changed, and that is what is used to bind links together. So if I export the data, and re-import the links are still referencing the old "targets/sources".
Is there a built in watcher or function to update the graph id's of objects?
Thanks