aboutsummaryrefslogtreecommitdiff
path: root/api1/pl.treksoft.kvision.form.select/-ajax-options/index.html
blob: 5e044a7ac999fde1a35e9709dadba5e40b1e9209 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<HTML>
<HEAD>
<meta charset="UTF-8">
<title>AjaxOptions - 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.form.select</a>&nbsp;/&nbsp;<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">&lt;init&gt;</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.Function2((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, kotlin.Boolean, kotlin.Boolean)/url">url</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">?</span>&nbsp;<span class="symbol">=</span>&nbsp;null<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.form.select.AjaxOptions$<init>(kotlin.String, kotlin.Function1((kotlin.Any, )), kotlin.Function2((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, kotlin.Boolean, kotlin.Boolean)/preprocessData">preprocessData</span><span class="symbol">:</span>&nbsp;<span class="symbol">(</span><span class="symbol">(</span><span class="keyword">dynamic</span><span class="symbol">)</span>&nbsp;<span class="symbol">-&gt;</span>&nbsp;<span class="keyword">dynamic</span><span class="symbol">)</span><span class="symbol">?</span>&nbsp;<span class="symbol">=</span>&nbsp;null<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.form.select.AjaxOptions$<init>(kotlin.String, kotlin.Function1((kotlin.Any, )), kotlin.Function2((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, kotlin.Boolean, kotlin.Boolean)/beforeSend">beforeSend</span><span class="symbol">:</span>&nbsp;<span class="symbol">(</span><span class="symbol">(</span><span class="identifier">JQueryXHR</span><span class="symbol">,</span>&nbsp;<span class="keyword">dynamic</span><span class="symbol">)</span>&nbsp;<span class="symbol">-&gt;</span>&nbsp;<span class="keyword">dynamic</span><span class="symbol">)</span><span class="symbol">?</span>&nbsp;<span class="symbol">=</span>&nbsp;null<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.form.select.AjaxOptions$<init>(kotlin.String, kotlin.Function1((kotlin.Any, )), kotlin.Function2((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, kotlin.Boolean, kotlin.Boolean)/data">data</span><span class="symbol">:</span>&nbsp;<span class="keyword">dynamic</span>&nbsp;<span class="symbol">=</span>&nbsp;null<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.form.select.AjaxOptions$<init>(kotlin.String, kotlin.Function1((kotlin.Any, )), kotlin.Function2((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, kotlin.Boolean, kotlin.Boolean)/httpType">httpType</span><span class="symbol">:</span>&nbsp;<a href="../-http-type/index.html"><span class="identifier">HttpType</span></a>&nbsp;<span class="symbol">=</span>&nbsp;HttpType.GET<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.form.select.AjaxOptions$<init>(kotlin.String, kotlin.Function1((kotlin.Any, )), kotlin.Function2((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, kotlin.Boolean, kotlin.Boolean)/dataType">dataType</span><span class="symbol">:</span>&nbsp;<a href="../-data-type/index.html"><span class="identifier">DataType</span></a>&nbsp;<span class="symbol">=</span>&nbsp;DataType.JSON<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.form.select.AjaxOptions$<init>(kotlin.String, kotlin.Function1((kotlin.Any, )), kotlin.Function2((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, kotlin.Boolean, kotlin.Boolean)/minLength">minLength</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html"><span class="identifier">Int</span></a>&nbsp;<span class="symbol">=</span>&nbsp;0<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.form.select.AjaxOptions$<init>(kotlin.String, kotlin.Function1((kotlin.Any, )), kotlin.Function2((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, kotlin.Boolean, kotlin.Boolean)/cache">cache</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html"><span class="identifier">Boolean</span></a>&nbsp;<span class="symbol">=</span>&nbsp;true<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.form.select.AjaxOptions$<init>(kotlin.String, kotlin.Function1((kotlin.Any, )), kotlin.Function2((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, kotlin.Boolean, kotlin.Boolean)/clearOnEmpty">clearOnEmpty</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html"><span class="identifier">Boolean</span></a>&nbsp;<span class="symbol">=</span>&nbsp;true<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.form.select.AjaxOptions$<init>(kotlin.String, kotlin.Function1((kotlin.Any, )), kotlin.Function2((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, kotlin.Boolean, kotlin.Boolean)/clearOnError">clearOnError</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html"><span class="identifier">Boolean</span></a>&nbsp;<span class="symbol">=</span>&nbsp;true<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.form.select.AjaxOptions$<init>(kotlin.String, kotlin.Function1((kotlin.Any, )), kotlin.Function2((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, kotlin.Boolean, kotlin.Boolean)/emptyRequest">emptyRequest</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html"><span class="identifier">Boolean</span></a>&nbsp;<span class="symbol">=</span>&nbsp;false<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.form.select.AjaxOptions$<init>(kotlin.String, kotlin.Function1((kotlin.Any, )), kotlin.Function2((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, kotlin.Boolean, kotlin.Boolean)/requestDelay">requestDelay</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html"><span class="identifier">Int</span></a>&nbsp;<span class="symbol">=</span>&nbsp;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.Function2((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, kotlin.Boolean, kotlin.Boolean)/restoreOnError">restoreOnError</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html"><span class="identifier">Boolean</span></a>&nbsp;<span class="symbol">=</span>&nbsp;false<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.form.select.AjaxOptions$<init>(kotlin.String, kotlin.Function1((kotlin.Any, )), kotlin.Function2((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, kotlin.Boolean, kotlin.Boolean)/preserveSelected">preserveSelected</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html"><span class="identifier">Boolean</span></a>&nbsp;<span class="symbol">=</span>&nbsp;false<span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.form.select.AjaxOptions$<init>(kotlin.String, kotlin.Function1((kotlin.Any, )), kotlin.Function2((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, kotlin.Boolean, kotlin.Boolean)/processData">processData</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html"><span class="identifier">Boolean</span></a>&nbsp;<span class="symbol">=</span>&nbsp;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="symbol">(</span><span class="identifier">JQueryXHR</span><span class="symbol">,</span>&nbsp;<span class="keyword">dynamic</span><span class="symbol">)</span>&nbsp;<span class="symbol">-&gt;</span>&nbsp;<span class="keyword">dynamic</span><span class="symbol">)</span><span class="symbol">?</span></code>
<p><a href="http://api.jquery.com/jquery.ajax/#jQuery-ajax-settings">JQuery ajax.beforeSend</a> option</p>
</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>
<p><a href="https://github.com/truckingsim/Ajax-Bootstrap-Select#optionscache">AjaxBootstrapSelect cache</a> option</p>
</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>
<p><a href="https://github.com/truckingsim/Ajax-Bootstrap-Select#optionsclearonempty">AjaxBootstrapSelect clearOnEmpty</a> option</p>
</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>
<p><a href="https://github.com/truckingsim/Ajax-Bootstrap-Select#optionsclearonerror">AjaxBootstrapSelect clearOnError</a> option</p>
</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>
<p><a href="http://api.jquery.com/jquery.ajax/#jQuery-ajax-settings">JQuery ajax.data</a> option</p>
</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="../-data-type/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>
<p><a href="https://github.com/truckingsim/Ajax-Bootstrap-Select#optionsemptyrequest">AjaxBootstrapSelect emptyRequest</a> option</p>
</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="../-http-type/index.html"><span class="identifier">HttpType</span></a></code>
<p><a href="http://api.jquery.com/jquery.ajax/#jQuery-ajax-settings">JQuery ajax.type</a> option</p>
</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>
<p><a href="https://github.com/truckingsim/Ajax-Bootstrap-Select#optionsminlength">AjaxBootstrapSelect minLength</a> option</p>
</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="symbol">(</span><span class="keyword">dynamic</span><span class="symbol">)</span>&nbsp;<span class="symbol">-&gt;</span>&nbsp;<span class="keyword">dynamic</span><span class="symbol">)</span><span class="symbol">?</span></code>
<p><a href="https://github.com/truckingsim/Ajax-Bootstrap-Select#optionspreprocessdata">AjaxBootstrapSelect preprocessOption</a>
option</p>
</td>
</tr>
<tr>
<td>
<p><a href="preserve-selected.html">preserveSelected</a></p>
</td>
<td>
<code><span class="keyword">val </span><span class="identifier">preserveSelected</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="process-data.html">processData</a></p>
</td>
<td>
<code><span class="keyword">val </span><span class="identifier">processData</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="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>
<p><a href="https://github.com/truckingsim/Ajax-Bootstrap-Select#optionsrequestdelay">AjaxBootstrapSelect requestDelay</a> option</p>
</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>
<p><a href="https://github.com/truckingsim/Ajax-Bootstrap-Select#optionsrestoreonerror">AjaxBootstrapSelect restoreOnError</a>
option</p>
</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><span class="symbol">?</span></code>
<p>the url address</p>
</td>
</tr>
</tbody>
</table>
<h3>Extension Functions</h3>
<table>
<tbody>
<tr>
<td>
<p><a href="../../pl.treksoft.kvision.utils/kotlin.-any/create-instance.html">createInstance</a></p>
</td>
<td>
<code><span class="keyword">fun </span><span class="symbol">&lt;</span><span class="identifier">T</span><span class="symbol">&gt;</span> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html"><span class="identifier">Any</span></a><span class="symbol">?</span><span class="symbol">.</span><span class="identifier">createInstance</span><span class="symbol">(</span><span class="keyword">vararg</span> <span class="identifier" id="pl.treksoft.kvision.utils$createInstance(kotlin.Any, kotlin.Array((kotlin.Any)))/args">args</span><span class="symbol">:</span>&nbsp;<span class="keyword">dynamic</span><span class="symbol">)</span><span class="symbol">: </span><a href="../../pl.treksoft.kvision.utils/kotlin.-any/create-instance.html#T"><span class="identifier">T</span></a></code>
<p>Helper function for creating JavaScript objects from dynamic constructors.</p>
</td>
</tr>
<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>&nbsp;<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>