getArrayItemsSelectedIndex()

Retrieves the currently selected index in an array data group on the selected component. An array data group is a data field with dataType: 'arrayItems' in the manifest, letting a Wix user manage a repeated set of items, such as a list of slides or testimonials.

Syntax

Copy

Parameters

NameTypeDescription
options.arrayItemsDisplayGroupKeystringKey of the array items display group to read from. Only required if the component's manifest declares more than one.

Returns

Promise<number>

Index of the currently selected array item.

Example

Copy

See also

Last updated: 8 September 2026

Did this help?