<HTML> <HEAD> <meta charset="UTF-8"> <title>toJs - kvision</title> <link rel="stylesheet" href="../../style.css"> </HEAD> <BODY> <a href="../index.html">kvision</a> / <a href="index.html">pl.treksoft.kvision.form.select</a> / <a href="./to-js.html">toJs</a><br/> <br/> <h1>toJs</h1> <a name="pl.treksoft.kvision.form.select$toJs(pl.treksoft.kvision.form.select.AjaxOptions, kotlin.Boolean)"></a> <code><span class="keyword">fun </span><a href="-ajax-options/index.html"><span class="identifier">AjaxOptions</span></a><span class="symbol">.</span><span class="identifier">toJs</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.form.select$toJs(pl.treksoft.kvision.form.select.AjaxOptions, kotlin.Boolean)/emptyOption">emptyOption</span><span class="symbol">:</span> <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="keyword">dynamic</span></code> <p>Convert AjaxOptions to JavaScript JSON object.</p> <h3>Parameters</h3> <p><a name="emptyOption"></a> <code>emptyOption</code> - add an empty position as the first select option</p> <p><strong>Return</strong><br/> JSON object</p> </BODY> </HTML>