From 12d2bd198c9ff5cb197e50da2d024a2418b8ee36 Mon Sep 17 00:00:00 2001
From: Robert Jaros Overrides FormControl.getValueAsString Returns the value of the control as a String. Overrides FormControl.getValue Returns the value of the control. Return Base interface of a form control with a date value. Date value. Determines if the field is disabled. Form field label. The actual input component. The name attribute of the generated HTML input element. Input control field size. Validation info component. Validator error message. Returns the value of the control. Returns the value of the control as a String. Sets the value of the control. Makes the input element blur. Makes the input element focused. Form field date/time chooser component. Overrides FormControl.setValue Sets the value of the control. Date value.
-
-
-getValueAsString
-
-open fun getValueAsString(): String?
-
-
-getValue
-
-open fun getValue(): Date?
-
-the value
-
-DateFormControl
-interface DateFormControl : FormControl
-Properties
-
-
-
-
-
-
-
-
-
-
-
-abstract var value: Date?
-Inherited Properties
-
-
-
-
-
-
-
-
-
-
-open var disabled: Boolean
-
-
-
-
-
-
-
-abstract val flabel: FieldLabel
-
-
-
-
-
-
-
-abstract val input: FormInput
-
-
-
-
-
-
-
-open var name: String?
-
-
-
-
-
-
-
-open var size: InputSize?
-
-
-
-
-
-
-
-abstract val validationInfo: HelpBlock
-
-
-
-
-
-
-
-
-open var validatorError: String?
-Functions
-
-
-
-
-
-
-
-
-
-
-open fun getValue(): Date?
-
-
-
-
-
-
-
-open fun getValueAsString(): String?
-
-
-
-
-
-
-
-
-open fun setValue(v: Any?): Unit
-Inherited Functions
-
-
-
-
-
-
-
-
-
-
-abstract fun blur(): Unit
-
-
-
-
-
-
-
-
-abstract fun focus(): Unit
-Inheritors
-
-
-
-
-
diff --git a/api/pl.treksoft.kvision.form/-date-form-control/set-value.html b/api/pl.treksoft.kvision.form/-date-form-control/set-value.html
deleted file mode 100644
index 7dd2477e..00000000
--- a/api/pl.treksoft.kvision.form/-date-form-control/set-value.html
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-open class DateTime : SimplePanel, DateFormControl
-
-
-setValue
-
-open fun setValue(v: Any?): Unit
-Parameters
-
-
-
diff --git a/api/pl.treksoft.kvision.form/-date-form-control/value.html b/api/pl.treksoft.kvision.form/-date-form-control/value.html
deleted file mode 100644
index 0d6d2079..00000000
--- a/api/pl.treksoft.kvision.form/-date-form-control/value.html
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
-
-
-value
-
-abstract var value: Date?
-content
- the text of the labelrich
- determines if content can contain HTML coderich
- determines if content can contain HTML code
classes
- a set of CSS class names
Constructor
diff --git a/api/pl.treksoft.kvision.form/-files-form-control/get-value-as-string.html b/api/pl.treksoft.kvision.form/-files-form-control/get-value-as-string.html
deleted file mode 100644
index 42ba9c0f..00000000
--- a/api/pl.treksoft.kvision.form/-files-form-control/get-value-as-string.html
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
open fun getValueAsString(): String?
-Overrides FormControl.getValueAsString
-Returns the value of the control as a String.
- - diff --git a/api/pl.treksoft.kvision.form/-files-form-control/get-value.html b/api/pl.treksoft.kvision.form/-files-form-control/get-value.html deleted file mode 100644 index c84da632..00000000 --- a/api/pl.treksoft.kvision.form/-files-form-control/get-value.html +++ /dev/null @@ -1,18 +0,0 @@ - - - -open fun getValue(): List<File>?
-Overrides FormControl.getValue
-Returns the value of the control.
-Return
-the value
interface FilesFormControl : FormControl
-Base interface of a form control with a list of files value.
-- - | -
-abstract var value: List<File>?
-List of files value. - |
-
- - | -
-open var disabled: Boolean
-Determines if the field is disabled. - |
-
- - | -
-abstract val flabel: FieldLabel
-Form field label. - |
-
- - | -
-abstract val input: FormInput
-The actual input component. - |
-
- - | -
-open var name: String?
-The name attribute of the generated HTML input element. - |
-
- - | -
-open var size: InputSize?
-Input control field size. - |
-
- - | -
-abstract val validationInfo: HelpBlock
-Validation info component. - |
-
- - | -
-open var validatorError: String?
-Validator error message. - |
-
- - | -
-open fun getValue(): List<File>?
-Returns the value of the control. - |
-
- - | -
-open fun getValueAsString(): String?
-Returns the value of the control as a String. - |
-
- - | -
-open fun setValue(v: Any?): Unit
-Sets the value of the control. - |
-
- - | -
-abstract fun blur(): Unit
-Makes the input element blur. - |
-
- - | -
-abstract fun focus(): Unit
-Makes the input element focused. - |
-
- - | -
-open class Upload : SimplePanel, FilesFormControl
-The form field file upload component. - |
-
open fun setValue(v: Any?): Unit
-Overrides FormControl.setValue
-Sets the value of the control.
-abstract var value: List<File>?
-List of files value.
- - diff --git a/api/pl.treksoft.kvision.form/-form-control/index.html b/api/pl.treksoft.kvision.form/-form-control/index.html index 8fe99e19..2881e185 100644 --- a/api/pl.treksoft.kvision.form/-form-control/index.html +++ b/api/pl.treksoft.kvision.form/-form-control/index.html @@ -233,19 +233,19 @@interface DateFormControl : FormControl
+interface KDateFormControl : FormControl
Base interface of a form control with a date value.
interface FilesFormControl : FormControl
+interface KFilesFormControl : FormControl
Base interface of a form control with a list of files value.
FormPanel(method: FormMethod? = null, action: String? = null, enctype: FormEnctype? = null, type: FormType? = null, classes: Set<String> = setOf(), modelFactory: (Map<String, Any?>) -> K)
+
+FormPanel(method: FormMethod? = null, action: String? = null, enctype: FormEnctype? = null, type: FormType? = null, classes: Set<String> = setOf(), serializer: KSerializer<K>)
type
- form layout
classes
- set of CSS class names
-modelFactory
- function transforming a Map<String, Any?> to a data model of class K
+serializer
- a serializer for model type
Constructor
inline fun <reified K : Any> create(method: FormMethod? = null, action: String? = null, enctype: FormEnctype? = null, type: FormType? = null, classes: Set<String> = setOf(), noinline init: FormPanel<K>.() -> Unit = null): FormPanel<K>
+diff --git a/api/pl.treksoft.kvision.form/-form-panel/add.html b/api/pl.treksoft.kvision.form/-form-panel/add.html index 0c9fd3ca..723ce9f7 100644 --- a/api/pl.treksoft.kvision.form/-form-panel/add.html +++ b/api/pl.treksoft.kvision.form/-form-panel/add.html @@ -56,8 +56,8 @@ current form panel
validator
- optional validation function
Return
current form panel
-
-open fun <C : DateFormControl> add(key: KProperty1<K, Date?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>
+
+open fun <C : KDateFormControl> add(key: KProperty1<K, KDate?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>
Adds a date control to the form panel.
@@ -72,8 +72,8 @@ current form panel
validator
- optional validation function
Return
current form panel
-
-open fun <C : FilesFormControl> add(key: KProperty1<K, List<File>?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>
+
+open fun <C : KFilesFormControl> add(key: KProperty1<K, List<KFile>?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>
Adds a files control to the form panel.
diff --git a/api/pl.treksoft.kvision.form/-form-panel/create.html b/api/pl.treksoft.kvision.form/-form-panel/create.html new file mode 100644 index 00000000..67ef73ae --- /dev/null +++ b/api/pl.treksoft.kvision.form/-form-panel/create.html @@ -0,0 +1,14 @@ + +
+ +
+ + +
+