nodeIsGroupProperty property

Object get nodeIsGroupProperty

Gets or sets the name of the boolean property on node data that indicates whether the data should be represented as a group of nodes and links or as a simple node. The value may also be a function taking two arguments, where the first argument will be a node data object. If the second argument is not supplied, the function should return true if the node data object should be represented by a Group and false otherwise. At the current time the function will not be called to change whether the node is a group or not. The default value is the name 'isGroup', meaning that it expects the data to have a property named 'isGroup' on those node data objects that should be represented by Groups.

The value must not be null. If the value is an empty string, #isGroupForNodeData will return false for all node data objects.

If you want to set this property you must do so before using the model, and especially before you assign Diagram#model. Note that functions cannot be serialized into JSON-formatted text, so if you are using #toJson and Model.fromJson, and if you want this property to be a function, you will need to assign this property to your desired function immediately after creating the model, including when it is created by Model.fromJson.

Implementation

_i2.Object get nodeIsGroupProperty => _i4.getProperty(
      this,
      'nodeIsGroupProperty',
    );
set nodeIsGroupProperty (Object value)

Implementation

set nodeIsGroupProperty(_i2.Object value) {
  _i4.setProperty(
    this,
    'nodeIsGroupProperty',
    value,
  );
}