summaryrefslogtreecommitdiff
path: root/api/pl.treksoft.kvision.state/-state-binding/-init-.html
blob: 4fb0374a50baa91b3f866885c941183a12b27bc8 (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
<HTML>
<HEAD>
<meta charset="UTF-8">
<title>StateBinding.<init> - 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.state</a>&nbsp;/&nbsp;<a href="index.html">StateBinding</a>&nbsp;/&nbsp;<a href="./-init-.html">&lt;init&gt;</a><br/>
<br/>
<h1>&lt;init&gt;</h1>
(js) <a name="pl.treksoft.kvision.state.StateBinding$&lt;init&gt;(pl.treksoft.kvision.state.ObservableState((pl.treksoft.kvision.state.StateBinding.S)), pl.treksoft.kvision.state.StateBinding.CONT, kotlin.Function2((pl.treksoft.kvision.state.StateBinding.CONT, pl.treksoft.kvision.state.StateBinding.S, pl.treksoft.kvision.state.StateBinding.CONTENT)))"></a>
<code><span class="identifier">StateBinding</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.state.StateBinding$<init>(pl.treksoft.kvision.state.ObservableState((pl.treksoft.kvision.state.StateBinding.S)), pl.treksoft.kvision.state.StateBinding.CONT, kotlin.Function2((pl.treksoft.kvision.state.StateBinding.CONT, pl.treksoft.kvision.state.StateBinding.S, pl.treksoft.kvision.state.StateBinding.CONTENT)))/observableState">observableState</span><span class="symbol">:</span>&nbsp;<a href="../-observable-state/index.html"><span class="identifier">ObservableState</span></a><span class="symbol">&lt;</span><span class="identifier">S</span><span class="symbol">&gt;</span><span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.state.StateBinding$<init>(pl.treksoft.kvision.state.ObservableState((pl.treksoft.kvision.state.StateBinding.S)), pl.treksoft.kvision.state.StateBinding.CONT, kotlin.Function2((pl.treksoft.kvision.state.StateBinding.CONT, pl.treksoft.kvision.state.StateBinding.S, pl.treksoft.kvision.state.StateBinding.CONTENT)))/container">container</span><span class="symbol">:</span>&nbsp;<span class="identifier">CONT</span><span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.state.StateBinding$<init>(pl.treksoft.kvision.state.ObservableState((pl.treksoft.kvision.state.StateBinding.S)), pl.treksoft.kvision.state.StateBinding.CONT, kotlin.Function2((pl.treksoft.kvision.state.StateBinding.CONT, pl.treksoft.kvision.state.StateBinding.S, pl.treksoft.kvision.state.StateBinding.CONTENT)))/factory">factory</span><span class="symbol">:</span>&nbsp;<span class="identifier">CONT</span><span class="symbol">.</span><span class="symbol">(</span><span class="identifier">S</span><span class="symbol">)</span>&nbsp;<span class="symbol">-&gt;</span>&nbsp;<span class="identifier">CONTENT</span><span class="symbol">)</span></code>
<p>Creates StateBinding which binds the given container to the observable state.</p>
<h3>Parameters</h3>
<p><a name="S"></a>
<code>S</code> - the state type</p>
<p><a name="CONT"></a>
<code>CONT</code> - container type</p>
<p><a name="observableState"></a>
<code>observableState</code> - the state</p>
<p><a name="container"></a>
<code>container</code> - the container</p>
<p><a name="factory"></a>
<code>factory</code> - a function which re-creates the view based on the given state</p>
<p><strong>Constructor</strong><br/>
Creates StateBinding which binds the given container to the observable state.</p>
</BODY>
</HTML>