getId

returns the id of the item by its index

string getId(number index);

Parameters

indexnumberthe index of the item

Returns

stringthe id of the item

Example

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

Related samples

Back to top