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

17 lines
389 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
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?
2022-02-28 17:55:09 +00:00
}