addLabelKeyForLinkData method

void addLabelKeyForLinkData(
  1. Object linkdata,
  2. dynamic key
)

Adds a node key value that identifies a node data acting as a new label node on the given link data.

This method only works if #linkLabelKeysProperty has been set to something other than an empty string. @param {ObjectData} linkdata a JavaScript object represented by a link. @param {string|number} key a number or string that is the key of the new label node. @see #removeLabelKeyForLinkData @see #setLabelKeysForLinkData

Implementation

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