FormData

open external class FormData(form: HTMLFormElement = definedExternally)(source)

Exposes the JavaScript FormData to Kotlin

Since Kotlin

1.1
open external class FormData(form: HTMLFormElement = definedExternally) : JsAny(source)

Exposes the JavaScript FormData to Kotlin

Since Kotlin

1.8

Constructors

Link copied to clipboard
constructor(form: HTMLFormElement = definedExternally)
constructor(form: HTMLFormElement = definedExternally)

Functions

Link copied to clipboard
fun append(name: String, value: String)
fun append(name: String, value: Blob, filename: String = definedExternally)
Since Kotlin 1.1
fun append(name: String, value: String)
fun append(name: String, value: Blob, filename: String = definedExternally)
Since Kotlin 1.8
Link copied to clipboard
fun delete(name: String)
Since Kotlin 1.1
fun delete(name: String)
Since Kotlin 1.8
Link copied to clipboard
fun get(name: String): dynamic
Since Kotlin 1.1
fun get(name: String): JsAny?
Since Kotlin 1.8
Link copied to clipboard
fun getAll(name: String): Array<dynamic>
Since Kotlin 1.1
fun getAll(name: String): JsArray<JsAny?>
Since Kotlin 1.8
Link copied to clipboard
fun has(name: String): Boolean
Since Kotlin 1.1
fun has(name: String): Boolean
Since Kotlin 1.8
Link copied to clipboard
fun set(name: String, value: String)
fun set(name: String, value: Blob, filename: String = definedExternally)
Since Kotlin 1.1
fun set(name: String, value: String)
fun set(name: String, value: Blob, filename: String = definedExternally)
Since Kotlin 1.8
Link copied to clipboard

For a Dynamic value caught in JS, returns the corresponding Throwable if it was thrown from Kotlin, or null otherwise.

Since Kotlin 1.8
Link copied to clipboard
fun <T : JsAny> JsAny.unsafeCast(): T

Cast JsAny to other Js type without runtime check

Since Kotlin 1.8