items

inline fun <T> LazyGridScope.items(items: List<T>, crossinline itemContent: @Composable LazyItemScope.(item: T) -> Unit)

Adds a list of items.

Parameters

items

the data list

itemContent

the content displayed by a single item


inline fun <T> LazyGridScope.items(items: Array<T>, crossinline itemContent: @Composable LazyItemScope.(item: T) -> Unit)

Adds an array of items.

Parameters

items

the data array

itemContent

the content displayed by a single item