A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.dhtmlx.com/suite/data_collection/api/datacollection_getitem_method/ below:

Website Navigation


JavaScript DataCollection - getItem Method

getItem()

returns the object of an item by its id

getItem(id: string | number): object;

Parameters: 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;

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