getId

returns the id of the shape by its index

string getId(number index);

Parameters

indexnumberthe index of the shape

Returns

stringthe id of the shape

Example

var id = diagram.data.getId(0); // -> returns "1"

See also
Back to top