fixes in several signatures

This commit is contained in:
InsanusMokrassar 2022-01-13 13:49:58 +06:00
parent a7f8c6f068
commit 461b1e845c
3 changed files with 5 additions and 3 deletions

View File

@ -1,5 +1,7 @@
## 0.0.6
Changes in signatures of text field and list
## 0.0.5
All elements has changed their signatures: they all will accept an additional lambda for attributes configuration

View File

@ -13,10 +13,10 @@ fun <T> List(
title: String,
data: SnapshotStateList<T>,
titleModifiers: Array<UIKitModifier> = emptyArray(),
titleCustomizer: AttrBuilderContext<HTMLHeadingElement> = {},
ulModifiers: Array<UIKitModifier> = emptyArray(),
ulCustomizer: AttrBuilderContext<HTMLUListElement> = {},
besidesTitleAndList: (@Composable () -> Unit)? = null,
titleCustomizer: AttrBuilderContext<HTMLHeadingElement> = {},
ulCustomizer: AttrBuilderContext<HTMLUListElement> = {},
elementAllocator: @Composable ElementScope<HTMLUListElement>.(T) -> Unit
) {
H4({ include(*titleModifiers); titleCustomizer() }) {

View File

@ -14,8 +14,8 @@ fun <T> TextField(
state: MutableState<T>,
disabledState: State<Boolean>? = null,
placeholder: String? = null,
modifiers: Array<UIKitModifier> = emptyArray(),
attributesCustomizer: AttrBuilderContext<HTMLInputElement> = {},
modifiers: Array<UIKitModifier> = emptyArray()
) {
Input(type) {
classes("uk-input")