mirror of
https://github.com/InsanusMokrassar/JSUIKitKBindings.git
synced 2024-12-27 11:07:15 +00:00
in navs now titles are optional
This commit is contained in:
parent
4a7b125abe
commit
ee1bea8ee1
@ -2,6 +2,8 @@
|
||||
|
||||
## 0.0.49
|
||||
|
||||
* Now it is possible to use optional title in navs builders
|
||||
|
||||
## 0.0.48
|
||||
|
||||
* Added support of `Breadcrumb`
|
||||
|
@ -94,7 +94,7 @@ fun SubNav(
|
||||
|
||||
@Composable
|
||||
fun <T> Nav(
|
||||
title: String,
|
||||
title: String?,
|
||||
data: Iterable<T>,
|
||||
vararg ulModifiers: UIKitModifier,
|
||||
titleModifiers: Array<UIKitModifier> = emptyArray(),
|
||||
@ -119,11 +119,13 @@ fun <T> Nav(
|
||||
ulCustomizer()
|
||||
}
|
||||
) {
|
||||
title ?.let {
|
||||
NavHeader(
|
||||
title,
|
||||
*titleModifiers,
|
||||
attributesCustomizer = titleCustomizer
|
||||
)
|
||||
}
|
||||
besidesTitleAndList ?.let { it() }
|
||||
data.forEach {
|
||||
elementAllocator(it)
|
||||
@ -133,7 +135,7 @@ fun <T> Nav(
|
||||
|
||||
@Composable
|
||||
fun <T> DefaultNav(
|
||||
title: String,
|
||||
title: String?,
|
||||
data: Iterable<T>,
|
||||
vararg ulModifiers: UIKitModifier,
|
||||
titleModifiers: Array<UIKitModifier> = emptyArray(),
|
||||
@ -162,7 +164,7 @@ fun <T> DefaultNav(
|
||||
|
||||
@Composable
|
||||
fun <T> PrimaryNav(
|
||||
title: String,
|
||||
title: String?,
|
||||
data: Iterable<T>,
|
||||
vararg ulModifiers: UIKitModifier,
|
||||
titleModifiers: Array<UIKitModifier> = emptyArray(),
|
||||
@ -191,7 +193,7 @@ fun <T> PrimaryNav(
|
||||
|
||||
@Composable
|
||||
fun <T> SubNav(
|
||||
title: String,
|
||||
title: String?,
|
||||
data: Iterable<T>,
|
||||
vararg ulModifiers: UIKitModifier,
|
||||
titleModifiers: Array<UIKitModifier> = emptyArray(),
|
||||
|
Loading…
Reference in New Issue
Block a user