A RetroSearch Logo

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

Search Query:

Showing content from https://docs.dhtmlx.com/suite/selection/api/selection_getitem_method/ below:

Website Navigation


JavaScript Selection - getItem Method

getItem()

returns the object of a selected item

getItem(): object | array;

Returns:

Either an object of a selected item, or an array of selected items.

Example

const item = component.selection.getItem();
// -> {…}

note

The method can be used in the DataView, List, Tree components.

Starting from v7.0, the method can also return an array of selected items if the multiselection property of List or DataView is enabled.


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