All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.uikit.components.Modal.kt Maven / Gradle / Ivy

There is a newer version: 3.13.7-pre.21
Show newest version
package uikit.components

import uikit.*
import kotlin.js.Promise

external interface Modal {
    fun alert(message: String, options: dynamic = definedExternally): ModalPromise
    fun confirm(message: String, options: dynamic = definedExternally): ModalPromise
    fun prompt(message: String, options: dynamic = definedExternally): ModalPromise
    fun dialog(message: String, options: dynamic = definedExternally): ModalPromise
}

external class ModalPromise : Promise {
    val dialog: ModalComponent
}

external interface ModalComponent : Component {
    fun show()
    fun hide()
}

external interface ModalOptions {
    var escClose: Boolean?
    var bgClose: Boolean?
    var stack: Boolean?
    var container: String?
    var clsPage: String?
    var clsPanel: String?
    var selClose: String?
}

object ModalEvents {
    const val beforeShow = "beforeShow"
    const val show = "show"
    const val shown = "shown"
    const val beforeHide = "beforeHide"
    const val hide = "hide"
    const val hidden = "hidden"
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy