summaryrefslogtreecommitdiff
path: root/api/pl.treksoft.kvision.html/-button/-init-.html
diff options
context:
space:
mode:
Diffstat (limited to 'api/pl.treksoft.kvision.html/-button/-init-.html')
-rw-r--r--api/pl.treksoft.kvision.html/-button/-init-.html8
1 files changed, 6 insertions, 2 deletions
diff --git a/api/pl.treksoft.kvision.html/-button/-init-.html b/api/pl.treksoft.kvision.html/-button/-init-.html
index 2ccbb29a..337ef488 100644
--- a/api/pl.treksoft.kvision.html/-button/-init-.html
+++ b/api/pl.treksoft.kvision.html/-button/-init-.html
@@ -8,8 +8,8 @@
<a href="../../index.html">kvision</a>&nbsp;/&nbsp;<a href="../index.html">pl.treksoft.kvision.html</a>&nbsp;/&nbsp;<a href="index.html">Button</a>&nbsp;/&nbsp;<a href="./-init-.html">&lt;init&gt;</a><br/>
<br/>
<h1>&lt;init&gt;</h1>
-(js) <a name="pl.treksoft.kvision.html.Button$&lt;init&gt;(kotlin.String, kotlin.String, pl.treksoft.kvision.html.ButtonStyle, pl.treksoft.kvision.html.ButtonType, kotlin.Boolean, kotlin.collections.Set((kotlin.String)))"></a>
-<code><span class="identifier">Button</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.html.Button$<init>(kotlin.String, kotlin.String, pl.treksoft.kvision.html.ButtonStyle, pl.treksoft.kvision.html.ButtonType, kotlin.Boolean, kotlin.collections.Set((kotlin.String)))/text">text</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.html.Button$<init>(kotlin.String, kotlin.String, pl.treksoft.kvision.html.ButtonStyle, pl.treksoft.kvision.html.ButtonType, kotlin.Boolean, kotlin.collections.Set((kotlin.String)))/icon">icon</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">?</span>&nbsp;<span class="symbol">=</span>&nbsp;null<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.html.Button$<init>(kotlin.String, kotlin.String, pl.treksoft.kvision.html.ButtonStyle, pl.treksoft.kvision.html.ButtonType, kotlin.Boolean, kotlin.collections.Set((kotlin.String)))/style">style</span><span class="symbol">:</span>&nbsp;<a href="../-button-style/index.html"><span class="identifier">ButtonStyle</span></a>&nbsp;<span class="symbol">=</span>&nbsp;ButtonStyle.PRIMARY<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.html.Button$<init>(kotlin.String, kotlin.String, pl.treksoft.kvision.html.ButtonStyle, pl.treksoft.kvision.html.ButtonType, kotlin.Boolean, kotlin.collections.Set((kotlin.String)))/type">type</span><span class="symbol">:</span>&nbsp;<a href="../-button-type/index.html"><span class="identifier">ButtonType</span></a>&nbsp;<span class="symbol">=</span>&nbsp;ButtonType.BUTTON<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.html.Button$<init>(kotlin.String, kotlin.String, pl.treksoft.kvision.html.ButtonStyle, pl.treksoft.kvision.html.ButtonType, kotlin.Boolean, kotlin.collections.Set((kotlin.String)))/disabled">disabled</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html"><span class="identifier">Boolean</span></a>&nbsp;<span class="symbol">=</span>&nbsp;false<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.html.Button$<init>(kotlin.String, kotlin.String, pl.treksoft.kvision.html.ButtonStyle, pl.treksoft.kvision.html.ButtonType, kotlin.Boolean, kotlin.collections.Set((kotlin.String)))/classes">classes</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-set/index.html"><span class="identifier">Set</span></a><span class="symbol">&lt;</span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">&gt;</span>&nbsp;<span class="symbol">=</span>&nbsp;setOf()<span class="symbol">)</span></code>
+(js) <a name="pl.treksoft.kvision.html.Button$&lt;init&gt;(kotlin.String, kotlin.String, pl.treksoft.kvision.html.ButtonStyle, pl.treksoft.kvision.html.ButtonType, kotlin.Boolean, kotlin.String, kotlin.Boolean, kotlin.collections.Set((kotlin.String)))"></a>
+<code><span class="identifier">Button</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.html.Button$<init>(kotlin.String, kotlin.String, pl.treksoft.kvision.html.ButtonStyle, pl.treksoft.kvision.html.ButtonType, kotlin.Boolean, kotlin.String, kotlin.Boolean, kotlin.collections.Set((kotlin.String)))/text">text</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.html.Button$<init>(kotlin.String, kotlin.String, pl.treksoft.kvision.html.ButtonStyle, pl.treksoft.kvision.html.ButtonType, kotlin.Boolean, kotlin.String, kotlin.Boolean, kotlin.collections.Set((kotlin.String)))/icon">icon</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">?</span>&nbsp;<span class="symbol">=</span>&nbsp;null<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.html.Button$<init>(kotlin.String, kotlin.String, pl.treksoft.kvision.html.ButtonStyle, pl.treksoft.kvision.html.ButtonType, kotlin.Boolean, kotlin.String, kotlin.Boolean, kotlin.collections.Set((kotlin.String)))/style">style</span><span class="symbol">:</span>&nbsp;<a href="../-button-style/index.html"><span class="identifier">ButtonStyle</span></a>&nbsp;<span class="symbol">=</span>&nbsp;ButtonStyle.PRIMARY<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.html.Button$<init>(kotlin.String, kotlin.String, pl.treksoft.kvision.html.ButtonStyle, pl.treksoft.kvision.html.ButtonType, kotlin.Boolean, kotlin.String, kotlin.Boolean, kotlin.collections.Set((kotlin.String)))/type">type</span><span class="symbol">:</span>&nbsp;<a href="../-button-type/index.html"><span class="identifier">ButtonType</span></a>&nbsp;<span class="symbol">=</span>&nbsp;ButtonType.BUTTON<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.html.Button$<init>(kotlin.String, kotlin.String, pl.treksoft.kvision.html.ButtonStyle, pl.treksoft.kvision.html.ButtonType, kotlin.Boolean, kotlin.String, kotlin.Boolean, kotlin.collections.Set((kotlin.String)))/disabled">disabled</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html"><span class="identifier">Boolean</span></a>&nbsp;<span class="symbol">=</span>&nbsp;false<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.html.Button$<init>(kotlin.String, kotlin.String, pl.treksoft.kvision.html.ButtonStyle, pl.treksoft.kvision.html.ButtonType, kotlin.Boolean, kotlin.String, kotlin.Boolean, kotlin.collections.Set((kotlin.String)))/separator">separator</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">?</span>&nbsp;<span class="symbol">=</span>&nbsp;null<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.html.Button$<init>(kotlin.String, kotlin.String, pl.treksoft.kvision.html.ButtonStyle, pl.treksoft.kvision.html.ButtonType, kotlin.Boolean, kotlin.String, kotlin.Boolean, kotlin.collections.Set((kotlin.String)))/labelFirst">labelFirst</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html"><span class="identifier">Boolean</span></a>&nbsp;<span class="symbol">=</span>&nbsp;true<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.html.Button$<init>(kotlin.String, kotlin.String, pl.treksoft.kvision.html.ButtonStyle, pl.treksoft.kvision.html.ButtonType, kotlin.Boolean, kotlin.String, kotlin.Boolean, kotlin.collections.Set((kotlin.String)))/classes">classes</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-set/index.html"><span class="identifier">Set</span></a><span class="symbol">&lt;</span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">&gt;</span>&nbsp;<span class="symbol">=</span>&nbsp;setOf()<span class="symbol">)</span></code>
<h3>Parameters</h3>
<p><a name="text"></a>
<code>text</code> - button label</p>
@@ -19,6 +19,10 @@
<code>style</code> - button style</p>
<p><a name="disabled"></a>
<code>disabled</code> - button state</p>
+<p><a name="separator"></a>
+<code>separator</code> - a separator between label and icon/image (defaults to space)</p>
+<p><a name="labelFirst"></a>
+<code>labelFirst</code> - determines if the label is put before children elements (defaults to true)</p>
<p><a name="classes"></a>
<code>classes</code> - a set of CSS class names</p>
<p><strong>Constructor</strong><br/>