mirror of
https://github.com/InsanusMokrassar/JSUIKitKBindings.git
synced 2024-11-29 13:38:46 +00:00
Improve work with UIKitModifiers
This commit is contained in:
parent
d24edcbaf7
commit
f3ce0f6b6b
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
## 0.0.52
|
## 0.0.52
|
||||||
|
|
||||||
|
* Improve work with UIKitModifiers
|
||||||
|
|
||||||
## 0.0.51
|
## 0.0.51
|
||||||
|
|
||||||
* New interface `Dropdown` which will be used to create (or retrieve) dropdown for an element
|
* New interface `Dropdown` which will be used to create (or retrieve) dropdown for an element
|
||||||
|
@ -26,8 +26,8 @@ operator fun UIKitModifier.plus(other: UIKitModifier): UIKitModifier = UIKitCust
|
|||||||
classes + other.classes,
|
classes + other.classes,
|
||||||
otherAttrs + other.otherAttrs
|
otherAttrs + other.otherAttrs
|
||||||
)
|
)
|
||||||
fun <T: Element> UIKitModifier.builder() = Attrs<T>(this).builder
|
fun <T: Element> UIKitModifier?.builder() = Attrs<T>(this).builder
|
||||||
fun <T: Element> Array<out 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>()
|
inline fun <T: Element> attrsBuilder(vararg modifiers: UIKitModifier?) = modifiers.builder<T>()
|
||||||
@JsName("plusBuilder")
|
@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