From 2a3f14593bc71db3f8155469587f30ba45ada6fc Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Tue, 1 Mar 2022 13:26:04 +0600 Subject: [PATCH] use iterables for data in default tables --- CHANGELOG.md | 2 ++ src/jsMain/kotlin/dev/inmo/jsuikit/elements/Table.kt | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c038d2c..f8df1f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## 0.0.40 +* All `DefaultTable` functions now use `Iterable` as data type + ## 0.0.39 * Add support of `Notifications` diff --git a/src/jsMain/kotlin/dev/inmo/jsuikit/elements/Table.kt b/src/jsMain/kotlin/dev/inmo/jsuikit/elements/Table.kt index 3baaeca..28e7857 100644 --- a/src/jsMain/kotlin/dev/inmo/jsuikit/elements/Table.kt +++ b/src/jsMain/kotlin/dev/inmo/jsuikit/elements/Table.kt @@ -11,7 +11,7 @@ import org.w3c.dom.* @Composable fun DefaultTable( headerBuilders: List>, - dataList: SnapshotStateList, + dataList: Iterable, vararg tableModifiers: UIKitModifier, attributesCustomizer: AttrBuilderContext = {}, headerCustomizer: AttrBuilderContext = {}, @@ -68,7 +68,7 @@ fun DefaultTable( @Composable fun DefaultTable( heading: List, - dataList: SnapshotStateList, + dataList: Iterable, vararg tableModifiers: UIKitModifier, attributesCustomizer: AttrBuilderContext = {}, headerCustomizer: AttrBuilderContext = {},