LazyDsl

class LazyDsl

DSL to declare items in a lazy container.

Items will be loaded in the same order as functions are called on this object.

Functions

Link copied to clipboard
fun item(key: Any? = null, block: @Composable IComponent.() -> Unit)

Adds block as an item of this lazy container.

Link copied to clipboard
fun items(count: Int, key: (index: Int) -> Any = ident, block: @Composable IComponent.(index: Int) -> Unit)

Adds count elements to this lazy container.

fun <K : Any> items(items: Iterable<K>, key: (item: K) -> Any = ident, block: @Composable IComponent.(item: K) -> Unit)

Adds all the items of items to this lazy container.