setArrayItemsSelectedIndex()

Sets the 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.indexnumberIndex to select.
options.arrayItemsDisplayGroupKeystringKey of the array items display group to update. Only required if the component's manifest declares more than one.

Returns

Promise<void>

Example

Copy

See also

Last updated: 8 September 2026

Did this help?