returns the object of an item by its id
getItem(id: string | number): object;
Parameters:id: string | number
- the id of a selected itemThe 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;
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4