getId()
Description
Returns the id of the item by its index
Usage
getId(index: number): string | number;
Parameters
index
- (required) the index of the item
Returns
The method returns the id of the item
Example
const diagram = new dhx.Diagram("diagram_container", {
type: "default"
});
diagram.data.parse(data);
const id = diagram.data.getId(0); // -> returns "1"