handlesDragDropForTopLevelParts property

bool get handlesDragDropForTopLevelParts

Gets or sets whether drag-and-drop events may be bubbled up to the diagram if not handled by a part. The default value is false -- each Node or Link that in the diagram needs to define its own GraphObject#mouseDragEnter, GraphObject#mouseDragLeave, and GraphObject#mouseDrop event handlers if you want dragging/dropping on a part to act as if the user were acting on the diagram.

If set to true, this will call Diagram#mouseDragOver during a drag, even while dragging over top-level parts, and Diagram#mouseDrop will be called even when dropping onto parts.

This property will have no impact while dropping on a Group. The Group's mouseDrop and Group#handlesDragDropForMembers should be set if desired.

GraphObjects do not have a mouseDragOver property, so if this is set to true, the Diagram's mouseDragOver will always be called, even when dragging over a part.

Implementation

_i2.bool get handlesDragDropForTopLevelParts => _i4.getProperty(
      this,
      'handlesDragDropForTopLevelParts',
    );
set handlesDragDropForTopLevelParts (bool value)

Implementation

set handlesDragDropForTopLevelParts(_i2.bool value) {
  _i4.setProperty(
    this,
    'handlesDragDropForTopLevelParts',
    value,
  );
}