From 806edfceeefe7fda47924f97237974e99fe28a02 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Mon, 2 Apr 2018 01:35:47 +0200 Subject: API documentantion update --- .../-form-panel/index.html | 78 +++++++++++++++++++++- 1 file changed, 76 insertions(+), 2 deletions(-) (limited to 'api/pl.treksoft.kvision.form/-form-panel/index.html') diff --git a/api/pl.treksoft.kvision.form/-form-panel/index.html b/api/pl.treksoft.kvision.form/-form-panel/index.html index 2a99b314..8268f58f 100644 --- a/api/pl.treksoft.kvision.form/-form-panel/index.html +++ b/api/pl.treksoft.kvision.form/-form-panel/index.html @@ -18,7 +18,7 @@

<init>

-FormPanel(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(), modelFactory: (Map<String, Any?>) -> K) @@ -27,6 +27,69 @@ +

action

+ + +var action: String? +

The URL address to send data.

+ + + + +

autocomplete

+ + +var autocomplete: Boolean? +

Determines if the form should have autocomplete.

+ + + + +

enctype

+ + +var enctype: FormEnctype? +

The form encoding type.

+ + + + +

method

+ + +var method: FormMethod? +

HTTP method.

+ + + + +

name

+ + +var name: String? +

The form name.

+ + + + +

novalidate

+ + +var novalidate: Boolean? +

Determines if the form is not validated.

+ + + + +

target

+ + +var target: FormTarget? +

The form target.

+ + + +

validator

@@ -61,6 +124,8 @@

Adds a number control to the 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>

Adds a date control to the 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> +

Adds a files control to the form panel.

@@ -117,6 +182,15 @@ +

getSnAttrs

+ + +open fun getSnAttrs(): List<StringPair> +

Returns list of element attributes in the form of a List.

+ + + +

getSnClass

@@ -238,7 +312,7 @@

formPanel

-fun <K> Container.formPanel(type: FormType? = null, classes: Set<String> = setOf(), modelFactory: (Map<String, Any?>) -> K): FormPanel<K> +fun <K> Container.formPanel(method: FormMethod? = null, action: String? = null, enctype: FormEnctype? = null, type: FormType? = null, classes: Set<String> = setOf(), modelFactory: (Map<String, Any?>) -> K): FormPanel<K>

DSL builder extension function.

-- cgit