mirror of
https://github.com/InsanusMokrassar/JSUIKitKBindings.git
synced 2024-11-04 15:33:49 +00:00
commit
bd19572d78
@ -1,5 +1,10 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 0.0.17
|
||||||
|
|
||||||
|
* In `DefaultTable` `headingCustomizer` has been renamed to `headerCellCustomizer`
|
||||||
|
* Add index and title parameters for `headerCellCustomizer` in `DefaultTable`
|
||||||
|
|
||||||
## 0.0.16
|
## 0.0.16
|
||||||
|
|
||||||
* Add opportunity to customize `NavDivider`
|
* Add opportunity to customize `NavDivider`
|
||||||
|
@ -9,4 +9,4 @@ android.enableJetifier=true
|
|||||||
# Project data
|
# Project data
|
||||||
|
|
||||||
group=dev.inmo
|
group=dev.inmo
|
||||||
version=0.0.16
|
version=0.0.17
|
||||||
|
@ -14,7 +14,7 @@ fun <T> DefaultTable(
|
|||||||
dataList: SnapshotStateList<T>,
|
dataList: SnapshotStateList<T>,
|
||||||
vararg tableModifiers: UIKitModifier,
|
vararg tableModifiers: UIKitModifier,
|
||||||
attributesCustomizer: AttrBuilderContext<HTMLTableElement> = {},
|
attributesCustomizer: AttrBuilderContext<HTMLTableElement> = {},
|
||||||
headingCustomizer: AttrBuilderContext<HTMLTableCellElement> = {},
|
headerCellCustomizer: AttrsBuilder<HTMLTableCellElement>.(i: Int, title: String) -> Unit = { _, _ -> },
|
||||||
rowAttributes: AttrsBuilder<HTMLTableRowElement>.(t: T) -> Unit = {},
|
rowAttributes: AttrsBuilder<HTMLTableRowElement>.(t: T) -> Unit = {},
|
||||||
cellCustomizer: AttrsBuilder<HTMLTableCellElement>.(i: Int, t: T) -> Unit = { _, _ -> },
|
cellCustomizer: AttrsBuilder<HTMLTableCellElement>.(i: Int, t: T) -> Unit = { _, _ -> },
|
||||||
cellFiller: @Composable ElementScope<HTMLTableCellElement>.(i: Int, t: T) -> Unit
|
cellFiller: @Composable ElementScope<HTMLTableCellElement>.(i: Int, t: T) -> Unit
|
||||||
@ -29,13 +29,13 @@ fun <T> DefaultTable(
|
|||||||
) {
|
) {
|
||||||
Thead {
|
Thead {
|
||||||
Tr {
|
Tr {
|
||||||
heading.forEach {
|
heading.forEachIndexed { i, t ->
|
||||||
Th(
|
Th(
|
||||||
{
|
{
|
||||||
headingCustomizer()
|
headerCellCustomizer(i, t)
|
||||||
}
|
}
|
||||||
) {
|
) {
|
||||||
Text(it)
|
Text(t)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user