mirror of
https://github.com/InsanusMokrassar/JSUIKitKBindings.git
synced 2024-11-26 03:58:46 +00:00
commit
7cdd12e81e
@ -1,5 +1,9 @@
|
||||
# Changelog
|
||||
|
||||
## 0.0.52
|
||||
|
||||
* Improve work with UIKitModifiers
|
||||
|
||||
## 0.0.51
|
||||
|
||||
* New interface `Dropdown` which will be used to create (or retrieve) dropdown for an element
|
||||
|
@ -9,4 +9,4 @@ android.enableJetifier=true
|
||||
# Project data
|
||||
|
||||
group=dev.inmo
|
||||
version=0.0.51
|
||||
version=0.0.52
|
||||
|
@ -26,8 +26,8 @@ operator fun UIKitModifier.plus(other: UIKitModifier): UIKitModifier = UIKitCust
|
||||
classes + other.classes,
|
||||
otherAttrs + other.otherAttrs
|
||||
)
|
||||
fun <T: Element> UIKitModifier.builder() = Attrs<T>(this).builder
|
||||
fun <T: Element> Array<out UIKitModifier>.builder() = Attrs<T>(*this).builder
|
||||
inline fun <T: Element> attrsBuilder(vararg modifiers: UIKitModifier) = modifiers.builder<T>()
|
||||
fun <T: Element> UIKitModifier?.builder() = Attrs<T>(this).builder
|
||||
fun <T: Element> Array<out UIKitModifier?>.builder() = Attrs<T>(*this).builder
|
||||
inline fun <T: Element> attrsBuilder(vararg modifiers: UIKitModifier?) = modifiers.builder<T>()
|
||||
@JsName("plusBuilder")
|
||||
operator fun <T: Element> UIKitModifier.plus(other: UIKitModifier): AttrBuilderContext<T> = Attrs<T>(this@plus, other).builder
|
||||
operator fun <T: Element> UIKitModifier?.plus(other: UIKitModifier?): AttrBuilderContext<T> = Attrs<T>(this@plus, other).builder
|
||||
|
Loading…
Reference in New Issue
Block a user