mirror of
https://github.com/InsanusMokrassar/JSUIKitKBindings.git
synced 2024-11-23 02:28:47 +00:00
commit
c5ef64ebe4
@ -1,5 +1,9 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 0.0.49
|
||||||
|
|
||||||
|
* Now it is possible to use optional title in navs builders
|
||||||
|
|
||||||
## 0.0.48
|
## 0.0.48
|
||||||
|
|
||||||
* Added support of `Breadcrumb`
|
* Added support of `Breadcrumb`
|
||||||
|
@ -9,4 +9,4 @@ android.enableJetifier=true
|
|||||||
# Project data
|
# Project data
|
||||||
|
|
||||||
group=dev.inmo
|
group=dev.inmo
|
||||||
version=0.0.48
|
version=0.0.49
|
||||||
|
@ -94,7 +94,7 @@ fun SubNav(
|
|||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun <T> Nav(
|
fun <T> Nav(
|
||||||
title: String,
|
title: String?,
|
||||||
data: Iterable<T>,
|
data: Iterable<T>,
|
||||||
vararg ulModifiers: UIKitModifier,
|
vararg ulModifiers: UIKitModifier,
|
||||||
titleModifiers: Array<UIKitModifier> = emptyArray(),
|
titleModifiers: Array<UIKitModifier> = emptyArray(),
|
||||||
@ -119,11 +119,13 @@ fun <T> Nav(
|
|||||||
ulCustomizer()
|
ulCustomizer()
|
||||||
}
|
}
|
||||||
) {
|
) {
|
||||||
|
title ?.let {
|
||||||
NavHeader(
|
NavHeader(
|
||||||
title,
|
title,
|
||||||
*titleModifiers,
|
*titleModifiers,
|
||||||
attributesCustomizer = titleCustomizer
|
attributesCustomizer = titleCustomizer
|
||||||
)
|
)
|
||||||
|
}
|
||||||
besidesTitleAndList ?.let { it() }
|
besidesTitleAndList ?.let { it() }
|
||||||
data.forEach {
|
data.forEach {
|
||||||
elementAllocator(it)
|
elementAllocator(it)
|
||||||
@ -133,7 +135,7 @@ fun <T> Nav(
|
|||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun <T> DefaultNav(
|
fun <T> DefaultNav(
|
||||||
title: String,
|
title: String?,
|
||||||
data: Iterable<T>,
|
data: Iterable<T>,
|
||||||
vararg ulModifiers: UIKitModifier,
|
vararg ulModifiers: UIKitModifier,
|
||||||
titleModifiers: Array<UIKitModifier> = emptyArray(),
|
titleModifiers: Array<UIKitModifier> = emptyArray(),
|
||||||
@ -162,7 +164,7 @@ fun <T> DefaultNav(
|
|||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun <T> PrimaryNav(
|
fun <T> PrimaryNav(
|
||||||
title: String,
|
title: String?,
|
||||||
data: Iterable<T>,
|
data: Iterable<T>,
|
||||||
vararg ulModifiers: UIKitModifier,
|
vararg ulModifiers: UIKitModifier,
|
||||||
titleModifiers: Array<UIKitModifier> = emptyArray(),
|
titleModifiers: Array<UIKitModifier> = emptyArray(),
|
||||||
@ -191,7 +193,7 @@ fun <T> PrimaryNav(
|
|||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun <T> SubNav(
|
fun <T> SubNav(
|
||||||
title: String,
|
title: String?,
|
||||||
data: Iterable<T>,
|
data: Iterable<T>,
|
||||||
vararg ulModifiers: UIKitModifier,
|
vararg ulModifiers: UIKitModifier,
|
||||||
titleModifiers: Array<UIKitModifier> = emptyArray(),
|
titleModifiers: Array<UIKitModifier> = emptyArray(),
|
||||||
|
Loading…
Reference in New Issue
Block a user