mirror of
https://github.com/InsanusMokrassar/JSUIKitKBindings.git
synced 2024-11-23 10:38:45 +00:00
commit
ef3b711e2b
@ -1,3 +1,9 @@
|
|||||||
|
# Changelog
|
||||||
|
|
||||||
|
## 0.0.8
|
||||||
|
|
||||||
|
Removing of redundant non standard things
|
||||||
|
|
||||||
## 0.0.7
|
## 0.0.7
|
||||||
|
|
||||||
Rewrite project onto multiplatform paradigm and return back varargs instead of most `Array<UIKitModifier>`
|
Rewrite project onto multiplatform paradigm and return back varargs instead of most `Array<UIKitModifier>`
|
||||||
|
@ -9,4 +9,4 @@ android.enableJetifier=true
|
|||||||
# Project data
|
# Project data
|
||||||
|
|
||||||
group=dev.inmo
|
group=dev.inmo
|
||||||
version=0.0.7
|
version=0.0.8
|
||||||
|
@ -4,8 +4,8 @@ import androidx.compose.runtime.Composable
|
|||||||
import androidx.compose.runtime.snapshots.SnapshotStateList
|
import androidx.compose.runtime.snapshots.SnapshotStateList
|
||||||
import dev.inmo.jsuikit.modifiers.*
|
import dev.inmo.jsuikit.modifiers.*
|
||||||
import org.jetbrains.compose.web.dom.*
|
import org.jetbrains.compose.web.dom.*
|
||||||
import org.w3c.dom.HTMLProgressElement
|
import org.jetbrains.compose.web.dom.Text
|
||||||
import org.w3c.dom.HTMLTableElement
|
import org.w3c.dom.*
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun <T> DefaultTable(
|
fun <T> DefaultTable(
|
||||||
@ -13,6 +13,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> = {},
|
||||||
cellFiller: @Composable (i: Int, t: T) -> Unit
|
cellFiller: @Composable (i: Int, t: T) -> Unit
|
||||||
) {
|
) {
|
||||||
val headingIndexes = heading.indices
|
val headingIndexes = heading.indices
|
||||||
@ -28,7 +29,7 @@ fun <T> DefaultTable(
|
|||||||
heading.forEach {
|
heading.forEach {
|
||||||
Th(
|
Th(
|
||||||
{
|
{
|
||||||
include(UIKitExtension.TextTransformUnset)
|
headingCustomizer()
|
||||||
}
|
}
|
||||||
) {
|
) {
|
||||||
Text(it)
|
Text(it)
|
||||||
|
@ -1,7 +0,0 @@
|
|||||||
package dev.inmo.jsuikit.modifiers
|
|
||||||
|
|
||||||
sealed class UIKitExtension(classname: String) : UIKitModifier {
|
|
||||||
override val classes: Array<String> = arrayOf(classname)
|
|
||||||
object TextTransformUnset : UIKitExtension("text_transform_unset")
|
|
||||||
object CursorPointer : UIKitExtension("cursor_pointer")
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user