getKeyForLinkData method

dynamic getKeyForLinkData(
  1. Object linkdata
)

Given a link data object return its unique key: a number or a string. This returns undefined if there is no key value. Unless #linkKeyProperty is set to a non-empty string, this model will not automatically assign unique key values for link data objects.

It is possible to change the key for a link data object by calling #setKeyForLinkData. @param {ObjectData} linkdata a JavaScript object represented by a link @return {string|number|undefined} @see #linkKeyProperty @see #setKeyForLinkData @see #findLinkDataForKey @since 1.6

Implementation

_i2.dynamic getKeyForLinkData(_i2.Object linkdata) => _i4.callMethod(
      this,
      'getKeyForLinkData',
      [linkdata],
    );