Closed wo-wo-3s closed 4 years ago
try using graph.view.refresh(cell); to refresh only that particular cell.
Thank you very much @PrudhviMadasu but your solution does not work.
You're editing the cell in-place. mxGraph is designed with an API layer to go through to create proper, undoable actions within a model update, see https://jgraph.github.io/mxgraph/docs/manual.html#3.1.2.1
graph.getModel().setValue(name)
is the function to use to set the label.
graph.getModel().setValue(name)
is the function to use to set the label.
I used it and it works perfect. Cell label is changing despite I do not refresh whole model.
Hi, mxGraph Team, mxGraph is a great tool! We need a help :)
We are working in a project where we are using mxGraph version 4.1.1 We have a problem with connections. We have a diagram with many components , the components are connected to each other. For some connections we are setting connection-label (cell.value) using function like below:
When we set label for one connection, some other connections are moved. Components are connected but connection path is getting different.
When we did not call
connections remain in correct place but connection label is not visible. What we have to do in order to set connection label and make it visible without refreshing whole model.
Thanks in advance and thanks a lot for building mxGraph.