setCategoryForLinkData method
Change the category of a given link data, a string naming the link template that the Diagram should use to represent the link data.
Changing the link template for a link data will cause the existing Link to be removed from the Diagram and be 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} linkdata a JavaScript object represented by a link. @param {string} cat Must not be null. @see #linkCategoryProperty @see #getCategoryForLinkData
Implementation
void setCategoryForLinkData(
_i2.Object linkdata,
_i2.String cat,
) {
_i4.callMethod(
this,
'setCategoryForLinkData',
[
linkdata,
cat,
],
);
}