From fb7ff5b8bf2073a8d7b78011b9edffc830dc63cb Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sat, 26 Oct 2019 00:17:24 +0200 Subject: API documentation for KVision 2.0.0 --- .../-k-files-form-control/get-native-file.html | 20 +++ .../-k-files-form-control/get-value-as-string.html | 16 ++ .../-k-files-form-control/get-value.html | 18 ++ .../-k-files-form-control/index.html | 188 +++++++++++++++++++++ .../-k-files-form-control/set-value.html | 19 +++ .../-k-files-form-control/value.html | 15 ++ 6 files changed, 276 insertions(+) create mode 100644 api1/pl.treksoft.kvision.form/-k-files-form-control/get-native-file.html create mode 100644 api1/pl.treksoft.kvision.form/-k-files-form-control/get-value-as-string.html create mode 100644 api1/pl.treksoft.kvision.form/-k-files-form-control/get-value.html create mode 100644 api1/pl.treksoft.kvision.form/-k-files-form-control/index.html create mode 100644 api1/pl.treksoft.kvision.form/-k-files-form-control/set-value.html create mode 100644 api1/pl.treksoft.kvision.form/-k-files-form-control/value.html (limited to 'api1/pl.treksoft.kvision.form/-k-files-form-control') diff --git a/api1/pl.treksoft.kvision.form/-k-files-form-control/get-native-file.html b/api1/pl.treksoft.kvision.form/-k-files-form-control/get-native-file.html new file mode 100644 index 00000000..7223eed8 --- /dev/null +++ b/api1/pl.treksoft.kvision.form/-k-files-form-control/get-native-file.html @@ -0,0 +1,20 @@ + + + +KFilesFormControl.getNativeFile - kvision + + + +kvision / pl.treksoft.kvision.form / KFilesFormControl / getNativeFile
+
+

getNativeFile

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

Returns the native JavaScript File object.

+

Parameters

+

+kFile - KFile object

+

Return
+File object

+ + diff --git a/api1/pl.treksoft.kvision.form/-k-files-form-control/get-value-as-string.html b/api1/pl.treksoft.kvision.form/-k-files-form-control/get-value-as-string.html new file mode 100644 index 00000000..6e890d6f --- /dev/null +++ b/api1/pl.treksoft.kvision.form/-k-files-form-control/get-value-as-string.html @@ -0,0 +1,16 @@ + + + +KFilesFormControl.getValueAsString - kvision + + + +kvision / pl.treksoft.kvision.form / KFilesFormControl / getValueAsString
+
+

getValueAsString

+ +open fun getValueAsString(): String? +

Overrides FormControl.getValueAsString

+

Returns the value of the control as a String.

+ + diff --git a/api1/pl.treksoft.kvision.form/-k-files-form-control/get-value.html b/api1/pl.treksoft.kvision.form/-k-files-form-control/get-value.html new file mode 100644 index 00000000..cfc28f64 --- /dev/null +++ b/api1/pl.treksoft.kvision.form/-k-files-form-control/get-value.html @@ -0,0 +1,18 @@ + + + +KFilesFormControl.getValue - kvision + + + +kvision / pl.treksoft.kvision.form / KFilesFormControl / getValue
+
+

getValue

+ +open fun getValue(): List<KFile>? +

Overrides FormControl.getValue

+

Returns the value of the control.

+

Return
+the value

+ + diff --git a/api1/pl.treksoft.kvision.form/-k-files-form-control/index.html b/api1/pl.treksoft.kvision.form/-k-files-form-control/index.html new file mode 100644 index 00000000..4cdc3b8e --- /dev/null +++ b/api1/pl.treksoft.kvision.form/-k-files-form-control/index.html @@ -0,0 +1,188 @@ + + + +KFilesFormControl - kvision + + + +kvision / pl.treksoft.kvision.form / KFilesFormControl
+
+

KFilesFormControl

+interface KFilesFormControl : FormControl +

Base interface of a form control with a list of files value.

+

Properties

+ + + + + + + +
+

value

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

List of files value.

+
+

Inherited Properties

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

disabled

+
+open var disabled: Boolean +

Determines if the field is disabled.

+
+

flabel

+
+abstract val flabel: FieldLabel +

Form field label.

+
+

input

+
+abstract val input: FormInput +

The actual input component.

+
+

name

+
+open var name: String? +

The name attribute of the generated HTML input element.

+
+

size

+
+open var size: InputSize? +

Input control field size.

+
+

validationInfo

+
+abstract val validationInfo: HelpBlock +

Validation info component.

+
+

validatorError

+
+open var validatorError: String? +

Validator error message.

+
+

Functions

+ + + + + + + + + + + + + + + + + + + +
+

getNativeFile

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

Returns the native JavaScript File object.

+
+

getValue

+
+open fun getValue(): List<KFile>? +

Returns the value of the control.

+
+

getValueAsString

+
+open fun getValueAsString(): String? +

Returns the value of the control as a String.

+
+

setValue

+
+open fun setValue(v: Any?): Unit +

Sets the value of the control.

+
+

Inherited Functions

+ + + + + + + + + + + +
+

blur

+
+abstract fun blur(): Unit +

Makes the input element blur.

+
+

focus

+
+abstract fun focus(): Unit +

Makes the input element focused.

+
+

Extension Functions

+ + + + + + + +
+

createInstance

+
+fun <T> Any?.createInstance(vararg args: dynamic): T +

Helper function for creating JavaScript objects from dynamic constructors.

+
+

Inheritors

+ + + + + + + +
+

Upload

+
+open class Upload : SimplePanel, KFilesFormControl +

The form field file upload component.

+
+ + diff --git a/api1/pl.treksoft.kvision.form/-k-files-form-control/set-value.html b/api1/pl.treksoft.kvision.form/-k-files-form-control/set-value.html new file mode 100644 index 00000000..6bb16a8d --- /dev/null +++ b/api1/pl.treksoft.kvision.form/-k-files-form-control/set-value.html @@ -0,0 +1,19 @@ + + + +KFilesFormControl.setValue - kvision + + + +kvision / pl.treksoft.kvision.form / KFilesFormControl / setValue
+
+

setValue

+ +open fun setValue(v: Any?): Unit +

Overrides FormControl.setValue

+

Sets the value of the control.

+

Parameters

+

+v - the value

+ + diff --git a/api1/pl.treksoft.kvision.form/-k-files-form-control/value.html b/api1/pl.treksoft.kvision.form/-k-files-form-control/value.html new file mode 100644 index 00000000..0692906c --- /dev/null +++ b/api1/pl.treksoft.kvision.form/-k-files-form-control/value.html @@ -0,0 +1,15 @@ + + + +KFilesFormControl.value - kvision + + + +kvision / pl.treksoft.kvision.form / KFilesFormControl / value
+
+

value

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

List of files value.

+ + -- cgit