kvision / pl.treksoft.kvision.form.upload

Package pl.treksoft.kvision.form.upload

Full-featured file upload component with drag & drop, preview and AJAX upload mode.

Types

(js)

Upload

The form field file upload component.

open class Upload : SimplePanel, KFilesFormControl
(js)

UploadInput

The file upload component.

open class UploadInput : Widget, FormInput

Functions

(js)

getContent

Returns file with the content read.

suspend fun <K : Any> Form<K>.getContent(key: KProperty1<K, List<KFile>?>, kFile: KFile): KFile
suspend fun <K : Any> FormPanel<K>.getContent(key: KProperty1<K, List<KFile>?>, kFile: KFile): KFile
(js)

upload

DSL builder extension function.

fun Container.upload(uploadUrl: String? = null, multiple: Boolean = false, label: String? = null, rich: Boolean = false, init: (Upload.() -> Unit)? = null): Upload
(js)

uploadInput

DSL builder extension function.

fun Container.uploadInput(uploadUrl: String? = null, multiple: Boolean = false, classes: Set<String>? = null, className: String? = null, init: (UploadInput.() -> Unit)? = null): UploadInput