Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get model data after change event #2

Closed
tommybernaciak opened this issue Dec 20, 2019 · 1 comment
Closed

get model data after change event #2

tommybernaciak opened this issue Dec 20, 2019 · 1 comment
Labels
question; belongs in forum not an issue with gojs-react-basic, so does not belong here

Comments

@tommybernaciak
Copy link

Is this possible to get model data after the diagram is changed? What I try to do is handle onModelChange event for ReactDiagram component. It returns data of go.IncrementalData type which should return me modelData but I never receive it. I receive all other properties like insertedNodeKeys, modifiedNodeData etc. I could build up an updated model using those data but I assume that model should be already available using modelData property, am I right?

@WalterNorthwoods
Copy link

The IncrementalData will include a "modelData" property only if the Model.modelData shared object had been modified. https://gojs.net/latest/api/symbols/Model.html#modelData

@WalterNorthwoods WalterNorthwoods added the question; belongs in forum not an issue with gojs-react-basic, so does not belong here label Dec 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question; belongs in forum not an issue with gojs-react-basic, so does not belong here
Projects
None yet
Development

No branches or pull requests

2 participants