From 4ffe1bee99a55e985bb71dacff3839263cb4316f Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Tue, 3 Mar 2020 10:53:33 +0100 Subject: API Documentation for KVision 3.0.0 --- .../-form-panel/index.html | 48 ++++++++++++++++++++-- .../-form-panel/validate.html | 7 +++- 2 files changed, 50 insertions(+), 5 deletions(-) (limited to 'api/pl.treksoft.kvision.form/-form-panel') diff --git a/api/pl.treksoft.kvision.form/-form-panel/index.html b/api/pl.treksoft.kvision.form/-form-panel/index.html index 6a643433..1fab0a81 100644 --- a/api/pl.treksoft.kvision.form/-form-panel/index.html +++ b/api/pl.treksoft.kvision.form/-form-panel/index.html @@ -278,7 +278,7 @@

validate

-open fun validate(): Boolean +open fun validate(markFields: Boolean = true): Boolean

Invokes validator function and validates the form.

@@ -355,6 +355,32 @@ +

Extension Properties

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

changeFlow

+
+val <T : Widget> T.changeFlow: <ERROR CLASS><T>
+

clickFlow

+
+val <T : Widget> T.clickFlow: <ERROR CLASS><T>
+

inputFlow

+
+val <T : Widget> T.inputFlow: <ERROR CLASS><T>

Extension Functions

@@ -532,6 +558,13 @@ + + + + + + + + @@ -742,7 +784,7 @@

onEvent

+fun <T : Widget> T.onEvent(block: SnOn<T>.() -> Unit): Int
+

eventFlow

+
+fun <T : Widget> T.eventFlow(event: String): <ERROR CLASS><Pair<T, Event>>

fieldLabel

@@ -730,10 +763,19 @@
+

maps

+
+fun Container.maps(lat: Number, lng: Number, zoom: Number, classes: Set<String> = setOf(), init: (Maps.() -> Unit)? = null): Maps +

DSL builder extension function.

+

navbar

-fun Container.navbar(label: String? = null, link: String? = null, type: NavbarType? = null, expand: NavbarExpand? = NavbarExpand.LG, nColor: NavbarColor = NavbarColor.LIGHT, bgColor: BsBgColor = BsBgColor.LIGHT, classes: Set<String> = setOf(), init: (Navbar.() -> Unit)? = null): Navbar +fun Container.navbar(label: String? = null, link: String? = null, type: NavbarType? = null, expand: NavbarExpand? = NavbarExpand.LG, nColor: NavbarColor = NavbarColor.LIGHT, bgColor: BsBgColor = BsBgColor.LIGHT, collapseOnClick: Boolean = false, classes: Set<String> = setOf(), init: (Navbar.() -> Unit)? = null): Navbar

DSL builder extension function.

-fun <T : Widget> T.onEvent(block: SnOn<T>.() -> Unit): Widget
diff --git a/api/pl.treksoft.kvision.form/-form-panel/validate.html b/api/pl.treksoft.kvision.form/-form-panel/validate.html index e1e1be05..63dbb6b4 100644 --- a/api/pl.treksoft.kvision.form/-form-panel/validate.html +++ b/api/pl.treksoft.kvision.form/-form-panel/validate.html @@ -8,9 +8,12 @@ kvision / pl.treksoft.kvision.form / FormPanel / validate

validate

- -open fun validate(): Boolean + +open fun validate(markFields: Boolean = true): Boolean

Invokes validator function and validates the form.

+

Parameters

+

+markFields - determines if form fields should be labeled with error messages

Return
validation result

-- cgit