mirror of
https://github.com/InsanusMokrassar/JSUIKitKBindings.git
synced 2024-12-22 00:27:25 +00:00
commit
cb2fbe9f42
1
.gitignore
vendored
1
.gitignore
vendored
@ -11,6 +11,7 @@ out/
|
||||
|
||||
secret.gradle
|
||||
local.properties
|
||||
local.*
|
||||
|
||||
kotlin-js-store/
|
||||
|
||||
|
@ -1,5 +1,9 @@
|
||||
# Changelog
|
||||
|
||||
## 0.0.23
|
||||
|
||||
* New parameter of tables `headerCustomizer`
|
||||
|
||||
## 0.0.22
|
||||
|
||||
* Add opportunity to customize table header cells
|
||||
|
@ -9,4 +9,4 @@ android.enableJetifier=true
|
||||
# Project data
|
||||
|
||||
group=dev.inmo
|
||||
version=0.0.22
|
||||
version=0.0.23
|
||||
|
1
local.make_version.sh
Executable file
1
local.make_version.sh
Executable file
@ -0,0 +1 @@
|
||||
git add -A && git stash && git checkout master && git pull && git checkout -b "$1" && nano gradle.properties CHANGELOG.md && git add -A && git commit -m "start $1" && git stash pop && git add -A && nano CHANGELOG.md && git add -A && git commit -m "$2" && git push --set-upstream origin "$1" && ./gradlew clean && ./gradlew publishToMavenLocal
|
@ -14,7 +14,8 @@ fun <T> DefaultTable(
|
||||
dataList: SnapshotStateList<T>,
|
||||
vararg tableModifiers: UIKitModifier,
|
||||
attributesCustomizer: AttrBuilderContext<HTMLTableElement> = {},
|
||||
headerCellCustomizer: AttrsBuilder<HTMLTableCellElement>.(i: Int) -> Unit = { },
|
||||
headerCustomizer: AttrBuilderContext<HTMLTableSectionElement> = {},
|
||||
headerCellCustomizer: AttrsBuilder<HTMLTableCellElement>.(i: Int) -> Unit = {},
|
||||
rowAttributes: AttrsBuilder<HTMLTableRowElement>.(t: T) -> Unit = {},
|
||||
cellCustomizer: AttrsBuilder<HTMLTableCellElement>.(i: Int, t: T) -> Unit = { _, _ -> },
|
||||
cellFiller: @Composable ElementScope<HTMLTableCellElement>.(i: Int, t: T) -> Unit
|
||||
@ -27,7 +28,7 @@ fun <T> DefaultTable(
|
||||
attributesCustomizer()
|
||||
}
|
||||
) {
|
||||
Thead {
|
||||
Thead(headerCustomizer) {
|
||||
Tr {
|
||||
headerBuilders.forEachIndexed { i, t ->
|
||||
Th(
|
||||
@ -40,6 +41,7 @@ fun <T> DefaultTable(
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Tbody {
|
||||
dataList.forEach {
|
||||
Tr(
|
||||
@ -68,6 +70,7 @@ fun <T> DefaultTable(
|
||||
dataList: SnapshotStateList<T>,
|
||||
vararg tableModifiers: UIKitModifier,
|
||||
attributesCustomizer: AttrBuilderContext<HTMLTableElement> = {},
|
||||
headerCustomizer: AttrBuilderContext<HTMLTableSectionElement> = {},
|
||||
headerCellCustomizer: AttrsBuilder<HTMLTableCellElement>.(i: Int, title: String) -> Unit = { _, _ -> },
|
||||
rowAttributes: AttrsBuilder<HTMLTableRowElement>.(t: T) -> Unit = {},
|
||||
cellCustomizer: AttrsBuilder<HTMLTableCellElement>.(i: Int, t: T) -> Unit = { _, _ -> },
|
||||
@ -89,6 +92,7 @@ fun <T> DefaultTable(
|
||||
dataList,
|
||||
tableModifiers = tableModifiers,
|
||||
attributesCustomizer,
|
||||
headerCustomizer,
|
||||
headerCellCustomizer,
|
||||
rowAttributes,
|
||||
cellCustomizer,
|
||||
|
Loading…
Reference in New Issue
Block a user