mirror of
https://github.com/InsanusMokrassar/JSUIKitKBindings.git
synced 2024-12-22 08:37:24 +00:00
commit
29fe133777
@ -1,5 +1,10 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 0.7.1
|
||||||
|
|
||||||
|
* Type of `animation` parameter in `Alert` has been changed according to docs: now it is `Boolean`
|
||||||
|
* Add tooltip `JS` part support
|
||||||
|
|
||||||
## 0.7.0
|
## 0.7.0
|
||||||
|
|
||||||
* `Kotlin`: `1.8.20`
|
* `Kotlin`: `1.8.20`
|
||||||
|
@ -7,4 +7,4 @@ kotlin.incremental.js=true
|
|||||||
# Project data
|
# Project data
|
||||||
|
|
||||||
group=dev.inmo
|
group=dev.inmo
|
||||||
version=0.7.0
|
version=0.7.1
|
||||||
|
@ -12,7 +12,7 @@ import org.w3c.dom.HTMLDivElement
|
|||||||
@Composable
|
@Composable
|
||||||
fun Alert(
|
fun Alert(
|
||||||
attrs: Attrs<HTMLDivElement> = Attrs.empty(),
|
attrs: Attrs<HTMLDivElement> = Attrs.empty(),
|
||||||
animation: UIKitAnimation? = UIKitAnimation.Fade,
|
animation: Boolean = true,
|
||||||
duration: Milliseconds? = null,
|
duration: Milliseconds? = null,
|
||||||
selClose: String? = null,
|
selClose: String? = null,
|
||||||
content: ContentBuilder<HTMLDivElement>
|
content: ContentBuilder<HTMLDivElement>
|
||||||
@ -22,7 +22,7 @@ fun Alert(
|
|||||||
include(UIKitAlert)
|
include(UIKitAlert)
|
||||||
|
|
||||||
buildAndAddAttribute("uk-alert") {
|
buildAndAddAttribute("uk-alert") {
|
||||||
"animation" to animation ?.classes ?.firstOrNull()
|
"animation" to animation
|
||||||
"duration" to duration
|
"duration" to duration
|
||||||
"sel-close" to selClose
|
"sel-close" to selClose
|
||||||
}
|
}
|
||||||
|
@ -17,4 +17,7 @@ external interface UIKit {
|
|||||||
|
|
||||||
fun dropdown(element: Element, options: DropdownOptions = definedExternally): Dropdown
|
fun dropdown(element: Element, options: DropdownOptions = definedExternally): Dropdown
|
||||||
fun dropdown(selector: String, options: DropdownOptions = definedExternally): Dropdown?
|
fun dropdown(selector: String, options: DropdownOptions = definedExternally): Dropdown?
|
||||||
|
|
||||||
|
fun tooltip(element: Element): UIKitTooltip
|
||||||
|
fun tooltip(selector: String): UIKitTooltip?
|
||||||
}
|
}
|
||||||
|
6
src/jsMain/kotlin/dev/inmo/jsuikit/types/UIKitTooltip.kt
Normal file
6
src/jsMain/kotlin/dev/inmo/jsuikit/types/UIKitTooltip.kt
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
package dev.inmo.jsuikit.types
|
||||||
|
|
||||||
|
external interface UIKitTooltip {
|
||||||
|
fun show()
|
||||||
|
fun hide()
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user