mirror of
https://github.com/InsanusMokrassar/JSUIKitKBindings.git
synced 2024-11-23 02:28:47 +00:00
use iterables for data in default tables
This commit is contained in:
parent
bfd6790014
commit
2a3f14593b
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
## 0.0.40
|
## 0.0.40
|
||||||
|
|
||||||
|
* All `DefaultTable` functions now use `Iterable` as data type
|
||||||
|
|
||||||
## 0.0.39
|
## 0.0.39
|
||||||
|
|
||||||
* Add support of `Notifications`
|
* Add support of `Notifications`
|
||||||
|
@ -11,7 +11,7 @@ import org.w3c.dom.*
|
|||||||
@Composable
|
@Composable
|
||||||
fun <T> DefaultTable(
|
fun <T> DefaultTable(
|
||||||
headerBuilders: List<ContentBuilder<HTMLTableCellElement>>,
|
headerBuilders: List<ContentBuilder<HTMLTableCellElement>>,
|
||||||
dataList: SnapshotStateList<T>,
|
dataList: Iterable<T>,
|
||||||
vararg tableModifiers: UIKitModifier,
|
vararg tableModifiers: UIKitModifier,
|
||||||
attributesCustomizer: AttrBuilderContext<HTMLTableElement> = {},
|
attributesCustomizer: AttrBuilderContext<HTMLTableElement> = {},
|
||||||
headerCustomizer: AttrBuilderContext<HTMLTableSectionElement> = {},
|
headerCustomizer: AttrBuilderContext<HTMLTableSectionElement> = {},
|
||||||
@ -68,7 +68,7 @@ fun <T> DefaultTable(
|
|||||||
@Composable
|
@Composable
|
||||||
fun <T> DefaultTable(
|
fun <T> DefaultTable(
|
||||||
heading: List<String>,
|
heading: List<String>,
|
||||||
dataList: SnapshotStateList<T>,
|
dataList: Iterable<T>,
|
||||||
vararg tableModifiers: UIKitModifier,
|
vararg tableModifiers: UIKitModifier,
|
||||||
attributesCustomizer: AttrBuilderContext<HTMLTableElement> = {},
|
attributesCustomizer: AttrBuilderContext<HTMLTableElement> = {},
|
||||||
headerCustomizer: AttrBuilderContext<HTMLTableSectionElement> = {},
|
headerCustomizer: AttrBuilderContext<HTMLTableSectionElement> = {},
|
||||||
|
Loading…
Reference in New Issue
Block a user