getId()
returns the id of the item by its index
getId(index: number): string | number;
Parameters:
index: number
- the index of the item
Returns:
The id of the item.
Example
const id = component.data.getId(0); // -> returns "1"
Related sample: Data. Get Id