summaryrefslogtreecommitdiff
path: root/api/pl.treksoft.kvision.form/-form-panel/add-custom.html
blob: ed18af5c4b0ef4b9e69218aa778d9163d53dd1bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<HTML>
<HEAD>
<meta charset="UTF-8">
<title>FormPanel.addCustom - kvision</title>
<link rel="stylesheet" href="../../../style.css">
</HEAD>
<BODY>
<a href="../../index.html">kvision</a>&nbsp;/&nbsp;<a href="../index.html">pl.treksoft.kvision.form</a>&nbsp;/&nbsp;<a href="index.html">FormPanel</a>&nbsp;/&nbsp;<a href="./add-custom.html">addCustom</a><br/>
<br/>
<h1>addCustom</h1>
(js) <a name="pl.treksoft.kvision.form.FormPanel$addCustom(kotlin.reflect.KProperty1((pl.treksoft.kvision.form.FormPanel.K, kotlin.Any)), pl.treksoft.kvision.form.FormPanel.addCustom.C, kotlin.Boolean, kotlin.String, kotlin.String, kotlin.Function1((pl.treksoft.kvision.form.FormPanel.addCustom.C, kotlin.String)), kotlin.Function1((pl.treksoft.kvision.form.FormPanel.addCustom.C, kotlin.Boolean)))"></a>
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="symbol">&lt;</span><span class="identifier">C</span>&nbsp;<span class="symbol">:</span>&nbsp;<a href="../-string-form-control/index.html"><span class="identifier">StringFormControl</span></a><span class="symbol">&gt;</span> <span class="identifier">addCustom</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.form.FormPanel$addCustom(kotlin.reflect.KProperty1((pl.treksoft.kvision.form.FormPanel.K, kotlin.Any)), pl.treksoft.kvision.form.FormPanel.addCustom.C, kotlin.Boolean, kotlin.String, kotlin.String, kotlin.Function1((pl.treksoft.kvision.form.FormPanel.addCustom.C, kotlin.String)), kotlin.Function1((pl.treksoft.kvision.form.FormPanel.addCustom.C, kotlin.Boolean)))/key">key</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-property1/index.html"><span class="identifier">KProperty1</span></a><span class="symbol">&lt;</span><span class="identifier">K</span><span class="symbol">,</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html"><span class="identifier">Any</span></a><span class="symbol">?</span><span class="symbol">&gt;</span><span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.form.FormPanel$addCustom(kotlin.reflect.KProperty1((pl.treksoft.kvision.form.FormPanel.K, kotlin.Any)), pl.treksoft.kvision.form.FormPanel.addCustom.C, kotlin.Boolean, kotlin.String, kotlin.String, kotlin.Function1((pl.treksoft.kvision.form.FormPanel.addCustom.C, kotlin.String)), kotlin.Function1((pl.treksoft.kvision.form.FormPanel.addCustom.C, kotlin.Boolean)))/control">control</span><span class="symbol">:</span>&nbsp;<span class="identifier">C</span><span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.form.FormPanel$addCustom(kotlin.reflect.KProperty1((pl.treksoft.kvision.form.FormPanel.K, kotlin.Any)), pl.treksoft.kvision.form.FormPanel.addCustom.C, kotlin.Boolean, kotlin.String, kotlin.String, kotlin.Function1((pl.treksoft.kvision.form.FormPanel.addCustom.C, kotlin.String)), kotlin.Function1((pl.treksoft.kvision.form.FormPanel.addCustom.C, kotlin.Boolean)))/required">required</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.form.FormPanel$addCustom(kotlin.reflect.KProperty1((pl.treksoft.kvision.form.FormPanel.K, kotlin.Any)), pl.treksoft.kvision.form.FormPanel.addCustom.C, kotlin.Boolean, kotlin.String, kotlin.String, kotlin.Function1((pl.treksoft.kvision.form.FormPanel.addCustom.C, kotlin.String)), kotlin.Function1((pl.treksoft.kvision.form.FormPanel.addCustom.C, kotlin.Boolean)))/requiredMessage">requiredMessage</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.form.FormPanel$addCustom(kotlin.reflect.KProperty1((pl.treksoft.kvision.form.FormPanel.K, kotlin.Any)), pl.treksoft.kvision.form.FormPanel.addCustom.C, kotlin.Boolean, kotlin.String, kotlin.String, kotlin.Function1((pl.treksoft.kvision.form.FormPanel.addCustom.C, kotlin.String)), kotlin.Function1((pl.treksoft.kvision.form.FormPanel.addCustom.C, kotlin.Boolean)))/legend">legend</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.form.FormPanel$addCustom(kotlin.reflect.KProperty1((pl.treksoft.kvision.form.FormPanel.K, kotlin.Any)), pl.treksoft.kvision.form.FormPanel.addCustom.C, kotlin.Boolean, kotlin.String, kotlin.String, kotlin.Function1((pl.treksoft.kvision.form.FormPanel.addCustom.C, kotlin.String)), kotlin.Function1((pl.treksoft.kvision.form.FormPanel.addCustom.C, kotlin.Boolean)))/validatorMessage">validatorMessage</span><span class="symbol">:</span>&nbsp;<span class="symbol">(</span><span class="symbol">(</span><span class="identifier">C</span><span class="symbol">)</span>&nbsp;<span class="symbol">-&gt;</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="symbol">)</span><span class="symbol">?</span>&nbsp;<span class="symbol">=</span>&nbsp;null<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.form.FormPanel$addCustom(kotlin.reflect.KProperty1((pl.treksoft.kvision.form.FormPanel.K, kotlin.Any)), pl.treksoft.kvision.form.FormPanel.addCustom.C, kotlin.Boolean, kotlin.String, kotlin.String, kotlin.Function1((pl.treksoft.kvision.form.FormPanel.addCustom.C, kotlin.String)), kotlin.Function1((pl.treksoft.kvision.form.FormPanel.addCustom.C, kotlin.Boolean)))/validator">validator</span><span class="symbol">:</span>&nbsp;<span class="symbol">(</span><span class="symbol">(</span><span class="identifier">C</span><span class="symbol">)</span>&nbsp;<span class="symbol">-&gt;</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html"><span class="identifier">Boolean</span></a><span class="symbol">?</span><span class="symbol">)</span><span class="symbol">?</span>&nbsp;<span class="symbol">=</span>&nbsp;null<span class="symbol">)</span><span class="symbol">: </span><a href="index.html"><span class="identifier">FormPanel</span></a><span class="symbol">&lt;</span><span class="identifier">K</span><span class="symbol">&gt;</span></code>
<p>Adds a string control to the form panel bound to custom field type.</p>
<h3>Parameters</h3>
<p><a name="key"></a>
<code>key</code> - key identifier of the control</p>
<p><a name="control"></a>
<code>control</code> - the string form control</p>
<p><a name="required"></a>
<code>required</code> - determines if the control is required</p>
<p><a name="requiredMessage"></a>
<code>requiredMessage</code> - optional required validation message</p>
<p><a name="legend"></a>
<code>legend</code> - put this control inside a fieldset with given legend</p>
<p><a name="validatorMessage"></a>
<code>validatorMessage</code> - optional function returning validation message</p>
<p><a name="validator"></a>
<code>validator</code> - optional validation function</p>
<p><strong>Return</strong><br/>
current form panel</p>
</BODY>
</HTML>