makeLinkDataKeyUnique method

void makeLinkDataKeyUnique(
  1. Object linkdata
)

This method is called when a link data object is added to the model to make sure that #getKeyForLinkData returns a unique key value.

The key value should be unique within the set of data managed by this model: #linkDataArray. If the key is already in use, this will assign an unused number to the #linkKeyProperty property on the data.

If you want to customize the way in which link data gets a unique key, you can set the #makeUniqueKeyFunction functional property.

If the link data object is already in the model and you want to change its key value, call #setKeyForLinkData and give it a new unique key value. @param {ObjectData} linkdata a JavaScript object represented by a link @since 1.6

Implementation

void makeLinkDataKeyUnique(_i2.Object linkdata) {
  _i4.callMethod(
    this,
    'makeLinkDataKeyUnique',
    [linkdata],
  );
}