From 7c2850063697f94a0d8b8d8f8588136dd4b3d05e Mon Sep 17 00:00:00 2001
From: Robert Jaros
-
-
- Constructor Overrides Widget.afterDestroy Method called after destroying Snabbdom vnode. Overrides Widget.afterInsert Method called after inserting Snabbdom vnode into the DOM. Allowed file extensions. Getter Allowed file extensions.
-
-<init>
-
-UploadInput(uploadUrl: String? = null, multiple: Boolean = false, classes: Set<String> = setOf())
-Parameters
-uploadUrl - the optional URL for the upload processing actionmultiple - determines if multiple file upload is supportedclasses - a set of CSS class names
-
-
-afterDestroy
-
-protected open fun afterDestroy(): Unit
-
-
-afterInsert
-
-protected open fun afterInsert(node: VNode): Unit
-
-
-allowedFileExtensions
-
-var allowedFileExtensions: Set<String>?
-
-
Setter
-
Allowed file extensions.
- - - diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/allowed-file-types.html b/api/pl.treksoft.kvision.form.upload/-upload-input/allowed-file-types.html deleted file mode 100644 index 37963eec..00000000 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/allowed-file-types.html +++ /dev/null @@ -1,21 +0,0 @@ - - - -var allowedFileTypes: Set<String>?
-Allowed file types.
-Getter
-
Allowed file types.
- -Setter
-
Allowed file types.
- - - diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/blur.html b/api/pl.treksoft.kvision.form.upload/-upload-input/blur.html deleted file mode 100644 index 1bf38673..00000000 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/blur.html +++ /dev/null @@ -1,15 +0,0 @@ - - - -open fun blur(): Unit
-Makes the input element blur.
- - diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/browse-on-zone-click.html b/api/pl.treksoft.kvision.form.upload/-upload-input/browse-on-zone-click.html deleted file mode 100644 index 6e60de7c..00000000 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/browse-on-zone-click.html +++ /dev/null @@ -1,21 +0,0 @@ - - - -var browseOnZoneClick: Boolean
-Determines if the click on the preview zone opens file browse window.
-Getter
-
Determines if the click on the preview zone opens file browse window.
- -Setter
-
Determines if the click on the preview zone opens file browse window.
- - - diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/cancel.html b/api/pl.treksoft.kvision.form.upload/-upload-input/cancel.html deleted file mode 100644 index 808fd4f6..00000000 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/cancel.html +++ /dev/null @@ -1,15 +0,0 @@ - - - -open fun cancel(): Unit
-Cancel an ongoing ajax upload (only for ajax mode).
- - diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/clear-input.html b/api/pl.treksoft.kvision.form.upload/-upload-input/clear-input.html deleted file mode 100644 index a814b493..00000000 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/clear-input.html +++ /dev/null @@ -1,15 +0,0 @@ - - - -open fun clearInput(): Unit
-Clears the file input control (including the native input).
- - diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/disabled.html b/api/pl.treksoft.kvision.form.upload/-upload-input/disabled.html deleted file mode 100644 index 17d36121..00000000 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/disabled.html +++ /dev/null @@ -1,22 +0,0 @@ - - - -open var disabled: Boolean
-Overrides FormInput.disabled
-Determines if the field is disabled.
-Getter
-
Determines if the field is disabled.
- -Setter
-
Determines if the field is disabled.
- - - diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/drop-zone-enabled.html b/api/pl.treksoft.kvision.form.upload/-upload-input/drop-zone-enabled.html deleted file mode 100644 index b8488a76..00000000 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/drop-zone-enabled.html +++ /dev/null @@ -1,21 +0,0 @@ - - - -var dropZoneEnabled: Boolean
-Determines if Drag&Drop zone is enabled.
-Getter
-
Determines if Drag&Drop zone is enabled.
- -Setter
-
Determines if Drag&Drop zone is enabled.
- - - diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/explorer-theme.html b/api/pl.treksoft.kvision.form.upload/-upload-input/explorer-theme.html deleted file mode 100644 index 0b99c0b9..00000000 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/explorer-theme.html +++ /dev/null @@ -1,21 +0,0 @@ - - - -var explorerTheme: Boolean
-Determines if the explorer theme is used.
-Getter
-
Determines if the explorer theme is used.
- -Setter
-
Determines if the explorer theme is used.
- - - diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/focus.html b/api/pl.treksoft.kvision.form.upload/-upload-input/focus.html deleted file mode 100644 index 67e0b9d1..00000000 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/focus.html +++ /dev/null @@ -1,15 +0,0 @@ - - - -open fun focus(): Unit
-Makes the input element focused.
- - 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 deleted file mode 100644 index d24d4aed..00000000 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/get-content.html +++ /dev/null @@ -1,24 +0,0 @@ - - - -suspend fun <K : Any> Form<K>.getContent(key: KProperty1<K, List<KFile>?>, kFile: KFile): KFilesuspend fun <K : Any> FormPanel<K>.getContent(key: KProperty1<K, List<KFile>?>, kFile: KFile): KFile
-Returns file with the content read.
-
-key - key identifier of the control
-kFile - object identifying the file
Return
-KFile object
fun getNativeFile(kFile: KFile): File?
-Returns the native JavaScript File object.
-Return
-File object
protected open fun getSnAttrs(): List<StringPair>
-Overrides Widget.getSnAttrs
-Returns list of element attributes in the form of a List.
-Return
-list of element attributes
protected open fun getSnClass(): List<StringBoolPair>
-Overrides Widget.getSnClass
-Returns list of CSS class names for current widget in the form of a List.
-Return
-list of CSS class names
fun getValueAsString(): String?
-Returns the value of the file input control as a String.
-Return
-value as a String
open class UploadInput : Widget, FormInput
-The file upload component.
-| - - | -
-UploadInput(uploadUrl: String? = null, multiple: Boolean = false, classes: Set<String> = setOf()) |
-
| - - | -
-var allowedFileExtensions: Set<String>?
-Allowed file extensions. - |
-
| - - | -
-var allowedFileTypes: Set<String>?
-Allowed file types. - |
-
| - - | -
-var browseOnZoneClick: Boolean
-Determines if the click on the preview zone opens file browse window. - |
-
| - - | -
-open var disabled: Boolean
-Determines if the field is disabled. - |
-
| - - | -
-var dropZoneEnabled: Boolean
-Determines if Drag&Drop zone is enabled. - |
-
| - - | -
-var explorerTheme: Boolean
-Determines if the explorer theme is used. - |
-
| - - | -
-var multiple: Boolean
-Determines if multiple file upload is supported. - |
-
| - - | -
-open var name: String?
-The name attribute of the generated HTML input element. - |
-
| - - | -
-var preferIconicPreview: Boolean
-Determines if the iconic preview is prefered. - |
-
| - - | -
-var required: Boolean
-Determines if the input selection is required. - |
-
| - - | -
-var showBrowse: Boolean
-Determines if the file browse button is shown. - |
-
| - - | -
-var showCancel: Boolean
-Determines if the cancel button is shown. - |
-
| - - | -
-var showCaption: Boolean
-Determines if the caption is shown. - |
-
| - - | -
-var showPreview: Boolean
-Determines if the preview is shown. - |
-
| - - | -
-var showRemove: Boolean
-Determines if the remove button is shown. - |
-
| - - | -
-var showUpload: Boolean
-Determines if the upload button is shown. - |
-
| - - | -
-open var size: InputSize?
-The size of the input (currently not working) - |
-
| - - | -
-var uploadExtraData: (String, Int) -> dynamic
-The extra data that will be passed as data to the AJAX server call via POST. - |
-
| - - | -
-var uploadUrl: String?
-The optional URL for the upload processing action. -If not set the upload button action will default to form submission. - |
-
| - - | -
-var value: List<KFile>?
-File input value. - |
-
| - - | -
-var draggable: Boolean?
-Determines if the current widget is draggable. - |
-
| - - | -
-var eventTarget: Widget? |
-
| - - | -
-var id: String?
-An ID attribute of generated HTML element. - |
-
| - - | -
-var lastLanguage: String? |
-
| - - | -
-open var parent: Container?
-Parent of the current component. - |
-
| - - | -
-var role: String?
-A role attribute of generated HTML element. - |
-
| - - | -
-var surroundingSpan: Boolean |
-
| - - | -
-var title: String?
-A title attribute of generated HTML element. - |
-
| - - | -
-open var visible: Boolean
-Visibility state of the current component. - |
-
| - - | -
-open fun afterDestroy(): Unit
-Method called after destroying Snabbdom vnode. - |
-
| - - | -
-open fun afterInsert(node: VNode): Unit
-Method called after inserting Snabbdom vnode into the DOM. - |
-
| - - | -
-open fun blur(): Unit
-Makes the input element blur. - |
-
| - - | -
-open fun cancel(): Unit
-Cancel an ongoing ajax upload (only for ajax mode). - |
-
| - - | -
-open fun clearInput(): Unit
-Clears the file input control (including the native input). - |
-
| - - | -
-open fun focus(): Unit
-Makes the input element focused. - |
-
| - - | -
-fun getNativeFile(kFile: KFile): File?
-Returns the native JavaScript File object. - |
-
| - - | -
-open fun getSnAttrs(): List<StringPair>
-Returns list of element attributes in the form of a List. - |
-
| - - | -
-open fun getSnClass(): List<StringBoolPair>
-Returns list of CSS class names for current widget in the form of a List. - |
-
| - - | -
-fun getValueAsString(): String?
-Returns the value of the file input control as a String. - |
-
| - - | -
-open fun lock(): Unit
-Locks the file input (disabling all buttons except a cancel button). - |
-
| - - | -
-open fun render(): VNode
-Renders current component as a Snabbdom vnode. - |
-
| - - | -
-open fun resetInput(): Unit
-Resets the file input control. - |
-
| - - | -
-open fun unlock(): Unit
-Unlocks the file input. - |
-
| - - | -
-open fun upload(): Unit
-Trigger ajax upload (only for ajax mode). - |
-
| - - | -
-open fun addCssClass(css: String): Widget
-Adds given value to the set of CSS classes generated in html code of current component. - |
-
| - - | -
-open fun addSurroundingCssClass(css: String): Widget
-Adds given value to the set of CSS classes generated in html code of parent component. - |
-
| - - | -
-open fun afterCreate(node: VNode): Unit
-Method called after creating Snabbdom vnode. - |
-
| - - | -
-open fun afterPostpatch(node: VNode): Unit
-Method called after updating Snabbdom vnode. - |
-
| - - | -
-open fun clearDragDropData(): Unit
-Clears D&D data for the current widget. It also makes it not draggable. - |
-
| - - | -
-open fun dispatchEvent |