getItem()
returns the object of an item by its id
getItem(id: string | number): object;
Parameters:
id: string | number
- the id of a selected item
Returns:
The object of an item.
Example
const item = component.data.getItem(123);
Related sample: Data. Get item
You can access the original properties of an item like this:
const item = component.data.getItem(123);
const text = item.text;