mirror of
https://github.com/InsanusMokrassar/JSUIKitKBindings.git
synced 2024-12-22 00:27:25 +00:00
list may accept any iterable
This commit is contained in:
parent
0c281aa653
commit
eefdb5fda1
@ -10,7 +10,7 @@ import org.w3c.dom.HTMLUListElement
|
|||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun <T> List(
|
fun <T> List(
|
||||||
data: SnapshotStateList<T>,
|
data: Iterable<T>,
|
||||||
ukAttrs: Attrs<HTMLUListElement> = Attrs.empty(),
|
ukAttrs: Attrs<HTMLUListElement> = Attrs.empty(),
|
||||||
elementAllocator: @Composable ElementScope<HTMLUListElement>.(T) -> Unit
|
elementAllocator: @Composable ElementScope<HTMLUListElement>.(T) -> Unit
|
||||||
) {
|
) {
|
||||||
@ -29,7 +29,7 @@ fun <T> List(
|
|||||||
@Composable
|
@Composable
|
||||||
fun <T> ListWithTitle(
|
fun <T> ListWithTitle(
|
||||||
title: String,
|
title: String,
|
||||||
data: SnapshotStateList<T>,
|
data: Iterable<T>,
|
||||||
vararg titleModifiers: UIKitModifier,
|
vararg titleModifiers: UIKitModifier,
|
||||||
ulModifiers: Array<UIKitModifier> = emptyArray(),
|
ulModifiers: Array<UIKitModifier> = emptyArray(),
|
||||||
besidesTitleAndList: (@Composable () -> Unit)? = null,
|
besidesTitleAndList: (@Composable () -> Unit)? = null,
|
||||||
|
Loading…
Reference in New Issue
Block a user