From a70acf853de62d0754ca95aa4103712b82afdef8 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Wed, 17 Oct 2018 18:40:15 +0200 Subject: API Documentation for KVision 0.0.18 --- .../-upload-input/get-content.html | 24 +++++++++++++++ .../-upload-input/get-native-file.html | 2 +- .../-upload-input/index.html | 35 ++++++++++++++++++++-- .../-upload-input/value.html | 2 +- 4 files changed, 59 insertions(+), 4 deletions(-) create mode 100644 api/pl.treksoft.kvision.form.upload/-upload-input/get-content.html (limited to 'api/pl.treksoft.kvision.form.upload/-upload-input') diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/get-content.html b/api/pl.treksoft.kvision.form.upload/-upload-input/get-content.html new file mode 100644 index 00000000..d24d4aed --- /dev/null +++ b/api/pl.treksoft.kvision.form.upload/-upload-input/get-content.html @@ -0,0 +1,24 @@ + + + +UploadInput.getContent - kvision + + + +kvision / pl.treksoft.kvision.form.upload / UploadInput / getContent
+
+

getContent

+ +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 +

Returns file with the content read.

+

Parameters

+

+key - key identifier of the control

+

+kFile - object identifying the file

+

Return
+KFile object

+ + diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/get-native-file.html b/api/pl.treksoft.kvision.form.upload/-upload-input/get-native-file.html index 267baba1..2061d320 100644 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/get-native-file.html +++ b/api/pl.treksoft.kvision.form.upload/-upload-input/get-native-file.html @@ -9,7 +9,7 @@

getNativeFile

-fun getNativeFile(kFile: KFile): File? +fun getNativeFile(kFile: KFile): File?

Returns the native JavaScript File object.

Parameters

diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/index.html b/api/pl.treksoft.kvision.form.upload/-upload-input/index.html index 24f28df5..8d0d91c4 100644 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/index.html +++ b/api/pl.treksoft.kvision.form.upload/-upload-input/index.html @@ -202,7 +202,7 @@ If not set the upload button action will default to form submission.

value

-var value: List<KFile>? +var value: List<KFile>?

File input value.

@@ -222,6 +222,13 @@ If not set the upload button action will default to form submission.

+

eventTarget

+ + +var eventTarget: Widget? + + +

id

@@ -256,6 +263,13 @@ If not set the upload button action will default to form submission.

+

surroundingSpan

+ + +var surroundingSpan: Boolean + + +

title

@@ -336,7 +350,7 @@ If not set the upload button action will default to form submission.

getNativeFile

-fun getNativeFile(kFile: KFile): File? +fun getNativeFile(kFile: KFile): File?

Returns the native JavaScript File object.

@@ -464,6 +478,13 @@ If not set the upload button action will default to form submission.

+

dispatchEvent

+ + +open fun dispatchEvent(type: String, eventInitDict: CustomEventInit): Boolean? + + +

getElement

@@ -633,6 +654,16 @@ If not set the upload button action will default to form submission.

+

getContent

+ + +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 +

Returns file with the content read.

+ + + +

uploadInput

diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/value.html b/api/pl.treksoft.kvision.form.upload/-upload-input/value.html index d26d2dc3..eb24d72e 100644 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/value.html +++ b/api/pl.treksoft.kvision.form.upload/-upload-input/value.html @@ -9,7 +9,7 @@

value

-var value: List<KFile>? +var value: List<KFile>?

File input value.

-- cgit