updateTargetBindings method

void updateTargetBindings(
  1. Object data, [
  2. String? srcpropname
])

Find a Part corresponding to the given data and call its Panel#updateTargetBindings method, in each Diagram that uses this Model.

Caution: setting a data property without calling #setDataProperty and then calling this updateTargetBindings method will update GraphObjects that are bound to the property, but such data settings will not be recorded in the UndoManager and therefore will not be undone/redone, causing an inconsistency between the GraphObjects and the part data. @param {Object} data The data object in this model that was modified. @param {string=} srcpropname If not present or the empty string, update all bindings on the target Part or item Panel otherwise update only those bindings using this source property name.

Implementation

void updateTargetBindings(
  _i2.Object data, [
  _i2.String? srcpropname,
]) {
  _i4.callMethod(
    this,
    'updateTargetBindings',
    [
      data,
      srcpropname ?? _i5.undefined,
    ],
  );
}