addNodeData method

void addNodeData(
  1. Object nodedata
)

When you want to add a node or group to the diagram, call this method with a new data object. This will add that data to the #nodeDataArray and notify all listeners that a new node data object has been inserted into the collection.

To remove a node from the diagram, you can remove its data object by calling #removeNodeData.

To add or remove an object or value from an item array, call #insertArrayItem or #removeArrayItem. @param {Object} nodedata a JavaScript object represented by a node, group, or non-link.

Implementation

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