From 806edfceeefe7fda47924f97237974e99fe28a02 Mon Sep 17 00:00:00 2001
From: Robert Jaros DSL builder extension function. It takes the same parameters as the constructor of the built component.
<init>
-
-Button(text: String, icon: String? = null, style: ButtonStyle = ButtonStyle.DEFAULT, disabled: Boolean = false, classes: Set<String> = setOf())
+
+Button(text: String, icon: String? = null, style: ButtonStyle = ButtonStyle.DEFAULT, type: ButtonType = ButtonType.BUTTON, disabled: Boolean = false, classes: Set<String> = setOf())
Parameters
diff --git a/api/pl.treksoft.kvision.html/-button/button.html b/api/pl.treksoft.kvision.html/-button/button.html
index 95028d1d..9d26cdc1 100644
--- a/api/pl.treksoft.kvision.html/-button/button.html
+++ b/api/pl.treksoft.kvision.html/-button/button.html
@@ -8,8 +8,8 @@
kvision / pl.treksoft.kvision.html / Button / button
button
-
-fun Container.button(text: String, icon: String? = null, style: ButtonStyle = ButtonStyle.DEFAULT, disabled: Boolean = false, classes: Set<String> = setOf(), init: Button.() -> Unit = null): Button
+
+fun Container.button(text: String, icon: String? = null, style: ButtonStyle = ButtonStyle.DEFAULT, type: ButtonType = ButtonType.BUTTON, disabled: Boolean = false, classes: Set<String> = setOf(), init: Button.() -> Unit = null): Button
var type: ButtonType
+Button types.
+Getter
+
Button types.
+ +Setter
+
Button types.
+ +diff --git a/api/pl.treksoft.kvision.html/-button/index.html b/api/pl.treksoft.kvision.html/-button/index.html index b460f031..465b69a4 100644 --- a/api/pl.treksoft.kvision.html/-button/index.html +++ b/api/pl.treksoft.kvision.html/-button/index.html @@ -18,7 +18,7 @@
Button(text: String, icon: String? = null, style: ButtonStyle = ButtonStyle.DEFAULT, disabled: Boolean = false, classes: Set<String> = setOf())
+Button(text: String, icon: String? = null, style: ButtonStyle = ButtonStyle.DEFAULT, type: ButtonType = ButtonType.BUTTON, disabled: Boolean = false, classes: Set<String> = setOf())
@@ -88,6 +88,15 @@
Button label.
+
var type: ButtonType
+Button types.
+@@ -116,7 +125,7 @@
open var parent: Component?
+open var parent: Container?
Parent of the current component.
@@ -349,6 +358,15 @@
open fun setContextMenu(contextMenu: ContextMenu): Widget
+Sets context menu for the current widget.
++
fun Container.button(text: String, icon: String? = null, style: ButtonStyle = ButtonStyle.DEFAULT, disabled: Boolean = false, classes: Set<String> = setOf(), init: Button.() -> Unit = null): Button
+fun Container.button(text: String, icon: String? = null, style: ButtonStyle = ButtonStyle.DEFAULT, type: ButtonType = ButtonType.BUTTON, disabled: Boolean = false, classes: Set<String> = setOf(), init: Button.() -> Unit = null): Button
DSL builder extension function.
diff --git a/api/pl.treksoft.kvision.html/-button/type.html b/api/pl.treksoft.kvision.html/-button/type.html new file mode 100644 index 00000000..697f0c9f --- /dev/null +++ b/api/pl.treksoft.kvision.html/-button/type.html @@ -0,0 +1,21 @@ + +
+ +
+ + +
+