---
title: "hasScrollToIndexAction"
description: "Returns whether the node defines the ability to scroll to an item index.

Note that not all scrollable containers have item indices. For example, a
[scrollable][androidx.compose.foundation.gestures.scrollable] doesn't have items with an index,
while [LazyColumn][androidx.compose.foundation.lazy.LazyColumn] does."
type: "function"
---

<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
fun hasScrollToIndexAction() = hasKey(SemanticsActions.ScrollToIndex)
```


Returns whether the node defines the ability to scroll to an item index.

Note that not all scrollable containers have item indices. For example, a
`scrollable` doesn't have items with an index,
while `LazyColumn` does.



