jQuery/JS Common - Object Structures - DiagramItem

An object that provides information about an item (shape or connector) in the Diagram widget.

Type:

Object

dataItem

Returns the data item that is bound to the diagram item.

Type:

Object

id

Specifies the item's internal identifier.

Type:

String

itemType

Returns the type of the item.

Type:

String

Accepted Values: 'shape' | 'connector'