JSUIKitKBindings/src/jsMain/kotlin/dev/inmo/jsuikit/types/UIKit.kt

24 lines
695 B
Kotlin
Raw Normal View History

2022-02-28 17:55:09 +00:00
package dev.inmo.jsuikit.types
2022-02-28 18:49:19 +00:00
import org.w3c.dom.Element
import kotlin.js.Json
2022-02-28 17:55:09 +00:00
external interface UIKit {
val notification: UIKitNotifications
2022-02-28 18:14:17 +00:00
val modal: UIKitDialogs
2023-01-12 08:31:38 +00:00
val util: UIKitUtil
2022-02-28 18:49:19 +00:00
fun notification(message: String, parameters: Json)
fun notification(element: Element): UIKitNotification?
fun modal(element: Element): UIKitDialog
fun modal(selector: String): UIKitDialog?
fun dropdown(element: Element, options: DropdownOptions = definedExternally): Dropdown
fun dropdown(selector: String, options: DropdownOptions = definedExternally): Dropdown?
2023-06-19 10:42:41 +00:00
fun tooltip(element: Element): UIKitTooltip
fun tooltip(selector: String): UIKitTooltip?
2022-02-28 17:55:09 +00:00
}