setParentLinkCategoryForNodeData method

void setParentLinkCategoryForNodeData(
  1. Object childdata,
  2. String cat
)

Change the category for the parent link of a given child node data, a string naming the link template that the Diagram should use to represent the link.

Changing the link template will cause any existing Link to be removed from the Diagram and replaced with a new Link created by copying the new link template and applying any data-bindings. Note that the new template must be an instance of the same class as the original link. Thus one cannot change the category of a link from an instance of Link to an instance of a subclass of Link, nor vice-versa. @param {Object} childdata a JavaScript object represented by a node data. @param {string} cat Must not be null. @see #parentLinkCategoryProperty @see #getParentLinkCategoryForNodeData

Implementation

void setParentLinkCategoryForNodeData(
  _i2.Object childdata,
  _i2.String cat,
) {
  _i4.callMethod(
    this,
    'setParentLinkCategoryForNodeData',
    [
      childdata,
      cat,
    ],
  );
}