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> / <a href="../index.html">pl.treksoft.kvision.state</a> / <a href="index.html">StateBinding</a> / <a href="./-init-.html"><init></a><br/>
<br/>
<h1><init></h1>
(js) <a name="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)))"></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> <a href="../-observable-state/index.html"><span class="identifier">ObservableState</span></a><span class="symbol"><</span><span class="identifier">S</span><span class="symbol">></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> <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> <span class="identifier">CONT</span><span class="symbol">.</span><span class="symbol">(</span><span class="identifier">S</span><span class="symbol">)</span> <span class="symbol">-></span> <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>
|