floatingItemList
fun LazyListScope.floatingItemList(count: Int, title: String? = null, key: (index: Int) -> Any? = null, contentType: (index: Int) -> Any? = { null }, itemContent: @Composable LazyItemScope.(index: Int) -> Unit)
Deprecated
Use segmentedItemList instead.
Replace with
import org.multipaz.compose.items.segmentedItemList
Content copied to clipboard
segmentedItemList(count = count, title = title, key = key, contentType = contentType, itemContent = itemContent)Content copied to clipboard
Adds a lazy segmented list of items into an outer LazyColumn.
Parameters
count
the number of items in this list.
title
optional title to show above the list.
key
a factory of stable and unique keys for each item.
contentType
a factory of content types for each item.
itemContent
the content for each item at index.
fun <T> LazyListScope.floatingItemList(items: List<T>, title: String? = null, key: (item: T) -> Any? = null, contentType: (item: T) -> Any? = { null }, itemContent: @Composable LazyItemScope.(item: T) -> Unit)
Deprecated
Use segmentedItemList instead.
Replace with
import org.multipaz.compose.items.segmentedItemList
Content copied to clipboard
segmentedItemList(items = items, title = title, key = key, contentType = contentType, itemContent = itemContent)Content copied to clipboard
Adds a lazy segmented list of items into an outer LazyColumn.
Parameters
items
the data list.
title
optional title to show above the list.
key
a factory of stable and unique keys for each item.
contentType
a factory of content types for each item.
itemContent
the content for each item.