diff options
Diffstat (limited to 'api/pl.treksoft.kvision.core/on-click.html')
-rw-r--r-- | api/pl.treksoft.kvision.core/on-click.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/api/pl.treksoft.kvision.core/on-click.html b/api/pl.treksoft.kvision.core/on-click.html new file mode 100644 index 00000000..5de56d78 --- /dev/null +++ b/api/pl.treksoft.kvision.core/on-click.html @@ -0,0 +1,15 @@ +<HTML> +<HEAD> +<meta charset="UTF-8"> +<title>onClick - kvision</title> +<link rel="stylesheet" href="../../style.css"> +</HEAD> +<BODY> +<a href="../index.html">kvision</a> / <a href="index.html">pl.treksoft.kvision.core</a> / <a href="./on-click.html">onClick</a><br/> +<br/> +<h1>onClick</h1> +(js) <a name="pl.treksoft.kvision.core$onClick(pl.treksoft.kvision.core.onClick.T, kotlin.Function2((pl.treksoft.kvision.core.onClick.T, org.w3c.dom.events.MouseEvent, kotlin.Unit)))"></a> +<code><span class="keyword">inline</span> <span class="keyword">fun </span><span class="symbol"><</span><span class="keyword">reified</span> <span class="identifier">T</span> <span class="symbol">:</span> <a href="-widget/index.html"><span class="identifier">Widget</span></a><span class="symbol">></span> <span class="identifier">T</span><span class="symbol">.</span><span class="identifier">onClick</span><span class="symbol">(</span><span class="keyword">noinline</span> <span class="identifier" id="pl.treksoft.kvision.core$onClick(pl.treksoft.kvision.core.onClick.T, kotlin.Function2((pl.treksoft.kvision.core.onClick.T, org.w3c.dom.events.MouseEvent, kotlin.Unit)))/handler">handler</span><span class="symbol">:</span> <span class="identifier">T</span><span class="symbol">.</span><span class="symbol">(</span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/org.w3c.dom.events/-mouse-event/index.html"><span class="identifier">MouseEvent</span></a><span class="symbol">)</span> <span class="symbol">-></span> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html"><span class="identifier">Int</span></a></code> +<p>An extension function for defining on click event handlers.</p> +</BODY> +</HTML> |