Skip to main content

getId()

returns the id of the item by its index

getId(index: number): Id;

Parameters:

index: number - the index of the item

Returns:

A string with the id of the item.

Example

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

Related sample: Data. Get Id