Quantcast
Channel: Northwoods Software - Latest topics
Viewing all articles
Browse latest Browse all 7406

Show incremental problem

$
0
0

@no_one345 wrote:

i m working on a diagram which has the following binding of diagram event “addModelChangedListener”

 this.diagram.addModelChangedListener(
      (e) => {
        console.log(e.newValue);
        
        console.log(e.propertyName+"  ::  "+e.newValue);

        console.log(e.object);
        

        if (e.isTransactionFinished) {
          // this records each Transaction as a JSON-format string
          if ((this.diagram.model instanceof go.GraphLinksModel)) {
            this.showIncremental(this, this.diagram.model.toIncrementalJson(e));
          }
        }
      });

now i want to check if the event and perform another transaction on the event
but the transaction inside of this model change listener doesnot appear in incremental json.
Can i bind model change listener to 2 different functions

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7406