<HTML> <HEAD> <meta charset="UTF-8"> <title>AjaxOptions - 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="./index.html">AjaxOptions</a><br/> <br/> <h1>AjaxOptions</h1> <code><span class="keyword">data</span> <span class="keyword">class </span><span class="identifier">AjaxOptions</span></code> <p>Data class for AJAX options.</p> <h3>Constructors</h3> <table> <tbody> <tr> <td> <p><a href="-init-.html"><init></a></p> </td> <td> <code><span class="identifier">AjaxOptions</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.form.select.AjaxOptions$<init>(kotlin.String, kotlin.Function1((kotlin.Any, )), kotlin.Function1((pl.treksoft.jquery.JQueryXHR, kotlin.Any)), kotlin.Any, pl.treksoft.kvision.form.select.HTTPTYPE, pl.treksoft.kvision.form.select.DATATYPE, kotlin.Int, kotlin.Boolean, kotlin.Boolean, kotlin.Boolean, kotlin.Boolean, kotlin.Int, kotlin.Boolean)/url">url</span><span class="symbol">:</span> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.form.select.AjaxOptions$<init>(kotlin.String, kotlin.Function1((kotlin.Any, )), kotlin.Function1((pl.treksoft.jquery.JQueryXHR, kotlin.Any)), kotlin.Any, pl.treksoft.kvision.form.select.HTTPTYPE, pl.treksoft.kvision.form.select.DATATYPE, kotlin.Int, kotlin.Boolean, kotlin.Boolean, kotlin.Boolean, kotlin.Boolean, kotlin.Int, kotlin.Boolean)/preprocessData">preprocessData</span><span class="symbol">:</span> <span class="symbol">(</span><span class="keyword">dynamic</span><span class="symbol">)</span> <span class="symbol">-></span> <span class="keyword">dynamic</span><span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.form.select.AjaxOptions$<init>(kotlin.String, kotlin.Function1((kotlin.Any, )), kotlin.Function1((pl.treksoft.jquery.JQueryXHR, kotlin.Any)), kotlin.Any, pl.treksoft.kvision.form.select.HTTPTYPE, pl.treksoft.kvision.form.select.DATATYPE, kotlin.Int, kotlin.Boolean, kotlin.Boolean, kotlin.Boolean, kotlin.Boolean, kotlin.Int, kotlin.Boolean)/beforeSend">beforeSend</span><span class="symbol">:</span> <span class="symbol">(</span><span class="identifier">JQueryXHR</span><span class="symbol">)</span> <span class="symbol">-></span> <span class="keyword">dynamic</span> <span class="symbol">=</span> null<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.form.select.AjaxOptions$<init>(kotlin.String, kotlin.Function1((kotlin.Any, )), kotlin.Function1((pl.treksoft.jquery.JQueryXHR, kotlin.Any)), kotlin.Any, pl.treksoft.kvision.form.select.HTTPTYPE, pl.treksoft.kvision.form.select.DATATYPE, kotlin.Int, kotlin.Boolean, kotlin.Boolean, kotlin.Boolean, kotlin.Boolean, kotlin.Int, kotlin.Boolean)/data">data</span><span class="symbol">:</span> <span class="keyword">dynamic</span> <span class="symbol">=</span> null<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.form.select.AjaxOptions$<init>(kotlin.String, kotlin.Function1((kotlin.Any, )), kotlin.Function1((pl.treksoft.jquery.JQueryXHR, kotlin.Any)), kotlin.Any, pl.treksoft.kvision.form.select.HTTPTYPE, pl.treksoft.kvision.form.select.DATATYPE, kotlin.Int, kotlin.Boolean, kotlin.Boolean, kotlin.Boolean, kotlin.Boolean, kotlin.Int, kotlin.Boolean)/httpType">httpType</span><span class="symbol">:</span> <a href="../-h-t-t-p-t-y-p-e/index.html"><span class="identifier">HTTPTYPE</span></a> <span class="symbol">=</span> HTTPTYPE.GET<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.form.select.AjaxOptions$<init>(kotlin.String, kotlin.Function1((kotlin.Any, )), kotlin.Function1((pl.treksoft.jquery.JQueryXHR, kotlin.Any)), kotlin.Any, pl.treksoft.kvision.form.select.HTTPTYPE, pl.treksoft.kvision.form.select.DATATYPE, kotlin.Int, kotlin.Boolean, kotlin.Boolean, kotlin.Boolean, kotlin.Boolean, kotlin.Int, kotlin.Boolean)/dataType">dataType</span><span class="symbol">:</span> <a href="../-d-a-t-a-t-y-p-e/index.html"><span class="identifier">DATATYPE</span></a> <span class="symbol">=</span> DATATYPE.JSON<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.form.select.AjaxOptions$<init>(kotlin.String, kotlin.Function1((kotlin.Any, )), kotlin.Function1((pl.treksoft.jquery.JQueryXHR, kotlin.Any)), kotlin.Any, pl.treksoft.kvision.form.select.HTTPTYPE, pl.treksoft.kvision.form.select.DATATYPE, kotlin.Int, kotlin.Boolean, kotlin.Boolean, kotlin.Boolean, kotlin.Boolean, kotlin.Int, kotlin.Boolean)/minLength">minLength</span><span class="symbol">:</span> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html"><span class="identifier">Int</span></a> <span class="symbol">=</span> 0<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.form.select.AjaxOptions$<init>(kotlin.String, kotlin.Function1((kotlin.Any, )), kotlin.Function1((pl.treksoft.jquery.JQueryXHR, kotlin.Any)), kotlin.Any, pl.treksoft.kvision.form.select.HTTPTYPE, pl.treksoft.kvision.form.select.DATATYPE, kotlin.Int, kotlin.Boolean, kotlin.Boolean, kotlin.Boolean, kotlin.Boolean, kotlin.Int, kotlin.Boolean)/cache">cache</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> true<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.form.select.AjaxOptions$<init>(kotlin.String, kotlin.Function1((kotlin.Any, )), kotlin.Function1((pl.treksoft.jquery.JQueryXHR, kotlin.Any)), kotlin.Any, pl.treksoft.kvision.form.select.HTTPTYPE, pl.treksoft.kvision.form.select.DATATYPE, kotlin.Int, kotlin.Boolean, kotlin.Boolean, kotlin.Boolean, kotlin.Boolean, kotlin.Int, kotlin.Boolean)/clearOnEmpty">clearOnEmpty</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> true<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.form.select.AjaxOptions$<init>(kotlin.String, kotlin.Function1((kotlin.Any, )), kotlin.Function1((pl.treksoft.jquery.JQueryXHR, kotlin.Any)), kotlin.Any, pl.treksoft.kvision.form.select.HTTPTYPE, pl.treksoft.kvision.form.select.DATATYPE, kotlin.Int, kotlin.Boolean, kotlin.Boolean, kotlin.Boolean, kotlin.Boolean, kotlin.Int, kotlin.Boolean)/clearOnError">clearOnError</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> true<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.form.select.AjaxOptions$<init>(kotlin.String, kotlin.Function1((kotlin.Any, )), kotlin.Function1((pl.treksoft.jquery.JQueryXHR, kotlin.Any)), kotlin.Any, pl.treksoft.kvision.form.select.HTTPTYPE, pl.treksoft.kvision.form.select.DATATYPE, kotlin.Int, kotlin.Boolean, kotlin.Boolean, kotlin.Boolean, kotlin.Boolean, kotlin.Int, kotlin.Boolean)/emptyRequest">emptyRequest</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> false<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.form.select.AjaxOptions$<init>(kotlin.String, kotlin.Function1((kotlin.Any, )), kotlin.Function1((pl.treksoft.jquery.JQueryXHR, kotlin.Any)), kotlin.Any, pl.treksoft.kvision.form.select.HTTPTYPE, pl.treksoft.kvision.form.select.DATATYPE, kotlin.Int, kotlin.Boolean, kotlin.Boolean, kotlin.Boolean, kotlin.Boolean, kotlin.Int, kotlin.Boolean)/requestDelay">requestDelay</span><span class="symbol">:</span> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html"><span class="identifier">Int</span></a> <span class="symbol">=</span> AJAX_REQUEST_DELAY<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.form.select.AjaxOptions$<init>(kotlin.String, kotlin.Function1((kotlin.Any, )), kotlin.Function1((pl.treksoft.jquery.JQueryXHR, kotlin.Any)), kotlin.Any, pl.treksoft.kvision.form.select.HTTPTYPE, pl.treksoft.kvision.form.select.DATATYPE, kotlin.Int, kotlin.Boolean, kotlin.Boolean, kotlin.Boolean, kotlin.Boolean, kotlin.Int, kotlin.Boolean)/restoreOnError">restoreOnError</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> false<span class="symbol">)</span></code></td> </tr> </tbody> </table> <h3>Properties</h3> <table> <tbody> <tr> <td> <p><a href="before-send.html">beforeSend</a></p> </td> <td> <code><span class="keyword">val </span><span class="identifier">beforeSend</span><span class="symbol">: </span><span class="symbol">(</span><span class="identifier">JQueryXHR</span><span class="symbol">)</span> <span class="symbol">-></span> <span class="keyword">dynamic</span></code></td> </tr> <tr> <td> <p><a href="cache.html">cache</a></p> </td> <td> <code><span class="keyword">val </span><span class="identifier">cache</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html"><span class="identifier">Boolean</span></a></code></td> </tr> <tr> <td> <p><a href="clear-on-empty.html">clearOnEmpty</a></p> </td> <td> <code><span class="keyword">val </span><span class="identifier">clearOnEmpty</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html"><span class="identifier">Boolean</span></a></code></td> </tr> <tr> <td> <p><a href="clear-on-error.html">clearOnError</a></p> </td> <td> <code><span class="keyword">val </span><span class="identifier">clearOnError</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html"><span class="identifier">Boolean</span></a></code></td> </tr> <tr> <td> <p><a href="data.html">data</a></p> </td> <td> <code><span class="keyword">val </span><span class="identifier">data</span><span class="symbol">: </span><span class="keyword">dynamic</span></code></td> </tr> <tr> <td> <p><a href="data-type.html">dataType</a></p> </td> <td> <code><span class="keyword">val </span><span class="identifier">dataType</span><span class="symbol">: </span><a href="../-d-a-t-a-t-y-p-e/index.html"><span class="identifier">DATATYPE</span></a></code></td> </tr> <tr> <td> <p><a href="empty-request.html">emptyRequest</a></p> </td> <td> <code><span class="keyword">val </span><span class="identifier">emptyRequest</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html"><span class="identifier">Boolean</span></a></code></td> </tr> <tr> <td> <p><a href="http-type.html">httpType</a></p> </td> <td> <code><span class="keyword">val </span><span class="identifier">httpType</span><span class="symbol">: </span><a href="../-h-t-t-p-t-y-p-e/index.html"><span class="identifier">HTTPTYPE</span></a></code></td> </tr> <tr> <td> <p><a href="min-length.html">minLength</a></p> </td> <td> <code><span class="keyword">val </span><span class="identifier">minLength</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></td> </tr> <tr> <td> <p><a href="preprocess-data.html">preprocessData</a></p> </td> <td> <code><span class="keyword">val </span><span class="identifier">preprocessData</span><span class="symbol">: </span><span class="symbol">(</span><span class="keyword">dynamic</span><span class="symbol">)</span> <span class="symbol">-></span> <span class="keyword">dynamic</span></code></td> </tr> <tr> <td> <p><a href="request-delay.html">requestDelay</a></p> </td> <td> <code><span class="keyword">val </span><span class="identifier">requestDelay</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></td> </tr> <tr> <td> <p><a href="restore-on-error.html">restoreOnError</a></p> </td> <td> <code><span class="keyword">val </span><span class="identifier">restoreOnError</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html"><span class="identifier">Boolean</span></a></code></td> </tr> <tr> <td> <p><a href="url.html">url</a></p> </td> <td> <code><span class="keyword">val </span><span class="identifier">url</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a></code></td> </tr> </tbody> </table> <h3>Extension Functions</h3> <table> <tbody> <tr> <td> <p><a href="../to-js.html">toJs</a></p> </td> <td> <code><span class="keyword">fun </span><a href="./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> </td> </tr> </tbody> </table> </BODY> </HTML>