getItem

returns the object of the selected item

object getItem();

Returns

objectthe object of a selected item

Example

var shape = diagram.selection.getItem();
// -> {id: "3", text: "Technical Director", title: "Jerry Wagner", …}

Details

Check all available properties of shapes, groups and swimlanes objects in Diagram and in Org Chart.

See also
Back to top