getId

returns the id of a selected shape

string|number getId();

Returns

string|numberthe id of a selected shape

Example

var id = diagram.selection.getId(); // -> "2"

See also
Back to top