aboutsummaryrefslogtreecommitdiff
path: root/docs/api/pl.treksoft.kvision.panel/-flex-panel/add.html
blob: fe953bd6fc6e7e8fa81b8aeacf7c0610a036411d (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
33
34
35
36
37
38
39
<HTML>
<HEAD>
<meta charset="UTF-8">
<title>FlexPanel.add - 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.panel</a>&nbsp;/&nbsp;<a href="index.html">FlexPanel</a>&nbsp;/&nbsp;<a href="./add.html">add</a><br/>
<br/>
<h1>add</h1>
<a name="pl.treksoft.kvision.panel.FlexPanel$add(pl.treksoft.kvision.core.Component, kotlin.Int, kotlin.Int, kotlin.Int, kotlin.Int, pl.treksoft.kvision.panel.FlexAlignItems, kotlin.collections.Set((kotlin.String)))"></a>
<code><span class="keyword">fun </span><span class="identifier">add</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.panel.FlexPanel$add(pl.treksoft.kvision.core.Component, kotlin.Int, kotlin.Int, kotlin.Int, kotlin.Int, pl.treksoft.kvision.panel.FlexAlignItems, kotlin.collections.Set((kotlin.String)))/child">child</span><span class="symbol">:</span>&nbsp;<a href="../../pl.treksoft.kvision.core/-component/index.html"><span class="identifier">Component</span></a><span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.panel.FlexPanel$add(pl.treksoft.kvision.core.Component, kotlin.Int, kotlin.Int, kotlin.Int, kotlin.Int, pl.treksoft.kvision.panel.FlexAlignItems, kotlin.collections.Set((kotlin.String)))/order">order</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html"><span class="identifier">Int</span></a><span class="symbol">?</span>&nbsp;<span class="symbol">=</span>&nbsp;null<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.panel.FlexPanel$add(pl.treksoft.kvision.core.Component, kotlin.Int, kotlin.Int, kotlin.Int, kotlin.Int, pl.treksoft.kvision.panel.FlexAlignItems, kotlin.collections.Set((kotlin.String)))/grow">grow</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html"><span class="identifier">Int</span></a><span class="symbol">?</span>&nbsp;<span class="symbol">=</span>&nbsp;null<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.panel.FlexPanel$add(pl.treksoft.kvision.core.Component, kotlin.Int, kotlin.Int, kotlin.Int, kotlin.Int, pl.treksoft.kvision.panel.FlexAlignItems, kotlin.collections.Set((kotlin.String)))/shrink">shrink</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html"><span class="identifier">Int</span></a><span class="symbol">?</span>&nbsp;<span class="symbol">=</span>&nbsp;null<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.panel.FlexPanel$add(pl.treksoft.kvision.core.Component, kotlin.Int, kotlin.Int, kotlin.Int, kotlin.Int, pl.treksoft.kvision.panel.FlexAlignItems, kotlin.collections.Set((kotlin.String)))/basis">basis</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html"><span class="identifier">Int</span></a><span class="symbol">?</span>&nbsp;<span class="symbol">=</span>&nbsp;null<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.panel.FlexPanel$add(pl.treksoft.kvision.core.Component, kotlin.Int, kotlin.Int, kotlin.Int, kotlin.Int, pl.treksoft.kvision.panel.FlexAlignItems, kotlin.collections.Set((kotlin.String)))/alignSelf">alignSelf</span><span class="symbol">:</span>&nbsp;<a href="../-flex-align-items/index.html"><span class="identifier">FlexAlignItems</span></a><span class="symbol">?</span>&nbsp;<span class="symbol">=</span>&nbsp;null<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.panel.FlexPanel$add(pl.treksoft.kvision.core.Component, kotlin.Int, kotlin.Int, kotlin.Int, kotlin.Int, pl.treksoft.kvision.panel.FlexAlignItems, 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><span class="symbol">: </span><a href="index.html"><span class="identifier">FlexPanel</span></a></code>
<p>Adds a component to the flexbox container.</p>
<h3>Parameters</h3>
<p><a name="child"></a>
<code>child</code> - child component</p>
<p><a name="order"></a>
<code>order</code> - child flexbox ordering</p>
<p><a name="grow"></a>
<code>grow</code> - child flexbox grow</p>
<p><a name="shrink"></a>
<code>shrink</code> - child flexbox shrink</p>
<p><a name="basis"></a>
<code>basis</code> - child flexbox basis</p>
<p><a name="alignSelf"></a>
<code>alignSelf</code> - child self alignment</p>
<p><a name="classes"></a>
<code>classes</code> - a set of CSS class names</p>
<a name="pl.treksoft.kvision.panel.FlexPanel$add(pl.treksoft.kvision.core.Component)"></a>
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">add</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.panel.FlexPanel$add(pl.treksoft.kvision.core.Component)/child">child</span><span class="symbol">:</span>&nbsp;<a href="../../pl.treksoft.kvision.core/-component/index.html"><span class="identifier">Component</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="index.html"><span class="identifier">FlexPanel</span></a></code>
<p>Overrides <a href="../-simple-panel/add.html">SimplePanel.add</a></p>
<p>Adds given component to the current container.</p>
<h3>Parameters</h3>
<p><a name="child"></a>
<code>child</code> - child component</p>
<p><strong>Return</strong><br/>
current container</p>
</BODY>
</HTML>