main.uikit.UIKitUtil.kt Maven / Gradle / Ivy
package uikit
import org.w3c.dom.*
import org.w3c.dom.events.*
import uikit.util.*
import kotlin.js.Promise
external interface UIKitUtil {
fun ajax(url: String, options: dynamic = definedExternally): Promise
fun animate(
element: Any /* String | Array | Element */,
animation: Animation? = definedExternally,
duration: Number? = definedExternally,
origin: dynamic = definedExternally,
out: dynamic = definedExternally): Promise
fun getImage(
src: String,
srcset: String? = definedExternally,
sizes: String? = definedExternally): Promise
fun on(
targets: Any /* String | Array | Element */,
type: String,
selector: String? = definedExternally,
listener: (e: Event) -> Unit,
useCapture: Boolean? = definedExternally): () -> OffFun
fun off(
targets: Any /* String | Array | Element */,
type: String,
selector: String? = definedExternally,
listener: (e: Event) -> Unit,
useCapture: Boolean? = definedExternally)
fun once(
element: Any /* String | Array | Element */,
type: String,
selector: String? = definedExternally,
listener: (e: Event) -> Unit,
useCapture: Boolean? = definedExternally,
condition: ((e: Event) -> Boolean)? = definedExternally): OffFun
fun transition(
element: Any /* String | Array | Element */,
props: dynamic = definedExternally,
duration: Number? = definedExternally,
timing: String? = definedExternally): Promise
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy