linkLabelKeysProperty property

Object get linkLabelKeysProperty

Gets or sets the name of the data property that returns an array of keys of node data that are labels on that link data. The value may also be a function taking two arguments, where the first argument will be a link data object. If the second argument is not supplied, the function should return the array of label node keys for the link; if the second argument is supplied, the function should modify the link data object so that it holds that Array of node keys as references to label nodes. The default value is the empty string: '', meaning that the model does not support links owning label nodes.

The name must not be null. If the value is an empty string, #getLabelKeysForLinkData will return an empty array for all link data objects. You will need to set this property in order to support nodes as link labels.

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 linkLabelKeysProperty => _i4.getProperty(
      this,
      'linkLabelKeysProperty',
    );
set linkLabelKeysProperty (Object value)

Implementation

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