getId

returns the id of a selected item

string|number getId();

Returns

string|numberthe id of a selected item

Example

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

Back to top