deploy: 6a12407540e346e2ec374420d0e9338a0691c676
[project/luci.git] / jsapi / luci.js.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <title>Source: luci.js</title>
6
7
8 <script src="scripts/prettify/prettify.js"></script>
9 <script src="scripts/prettify/lang-css.js"></script>
10 <script src="scripts/jquery.min.js"></script>
11 <!--[if lt IE 9]>
12 <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
13 <![endif]-->
14 <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
15 <link type="text/css" rel="stylesheet" href="styles/bootstrap.min.css">
16 <link type="text/css" rel="stylesheet" href="styles/jaguar.css">
17
18
19 <script>
20 var config = {"monospaceLinks":true,"cleverLinks":true,"default":{"outputSourceFiles":true}};
21 </script>
22
23
24
25 </head>
26 <body>
27 <div id="wrap" class="clearfix">
28
29 <div class="navigation">
30 <h3 class="applicationName"><a href="index.html"></a></h3>
31
32 <div class="search">
33 <input id="search" type="text" class="form-control input-sm" placeholder="Search Documentations">
34 </div>
35 <ul class="list">
36
37 <li class="item" data-name="LuCI">
38 <span class="title">
39 <a href="LuCI.html">LuCI</a>
40
41 </span>
42 <ul class="members itemMembers">
43
44 <span class="subtitle">Members</span>
45
46 <li data-name="LuCI#Class"><a href="LuCI.html#Class">Class</a></li>
47
48 <li data-name="LuCI#dom"><a href="LuCI.html#dom">dom</a></li>
49
50 <li data-name="LuCI#env"><a href="LuCI.html#env">env</a></li>
51
52 <li data-name="LuCI#naturalCompare"><a href="LuCI.html#naturalCompare">naturalCompare</a></li>
53
54 <li data-name="LuCI#Poll"><a href="LuCI.html#Poll">Poll</a></li>
55
56 <li data-name="LuCI#Request"><a href="LuCI.html#Request">Request</a></li>
57
58 <li data-name="LuCI#view"><a href="LuCI.html#view">view</a></li>
59
60 </ul>
61 <ul class="typedefs itemMembers">
62
63 <span class="subtitle">Typedefs</span>
64
65 <li data-name="LuCI.requestCallbackFn"><a href="LuCI.html#.requestCallbackFn">requestCallbackFn</a></li>
66
67 </ul>
68 <ul class="typedefs itemMembers">
69
70 </ul>
71 <ul class="methods itemMembers">
72
73 <span class="subtitle">Methods</span>
74
75 <li data-name="LuCI#bind"><a href="LuCI.html#bind">bind</a></li>
76
77 <li data-name="LuCI#error"><a href="LuCI.html#error">error</a></li>
78
79 <li data-name="LuCI#fspath"><a href="LuCI.html#fspath">fspath</a></li>
80
81 <li data-name="LuCI#get"><a href="LuCI.html#get">get</a></li>
82
83 <li data-name="LuCI#halt"><a href="LuCI.html#halt">halt</a></li>
84
85 <li data-name="LuCI#hasSystemFeature"><a href="LuCI.html#hasSystemFeature">hasSystemFeature</a></li>
86
87 <li data-name="LuCI#hasViewPermission"><a href="LuCI.html#hasViewPermission">hasViewPermission</a></li>
88
89 <li data-name="LuCI#isObject"><a href="LuCI.html#isObject">isObject</a></li>
90
91 <li data-name="LuCI#location"><a href="LuCI.html#location">location</a></li>
92
93 <li data-name="LuCI#media"><a href="LuCI.html#media">media</a></li>
94
95 <li data-name="LuCI#path"><a href="LuCI.html#path">path</a></li>
96
97 <li data-name="LuCI#poll"><a href="LuCI.html#poll">poll</a></li>
98
99 <li data-name="LuCI#post"><a href="LuCI.html#post">post</a></li>
100
101 <li data-name="LuCI#raise"><a href="LuCI.html#raise">raise</a></li>
102
103 <li data-name="LuCI#require"><a href="LuCI.html#require">require</a></li>
104
105 <li data-name="LuCI#resolveDefault"><a href="LuCI.html#resolveDefault">resolveDefault</a></li>
106
107 <li data-name="LuCI#resource"><a href="LuCI.html#resource">resource</a></li>
108
109 <li data-name="LuCI#run"><a href="LuCI.html#run">run</a></li>
110
111 <li data-name="LuCI#sortedArray"><a href="LuCI.html#sortedArray">sortedArray</a></li>
112
113 <li data-name="LuCI#sortedKeys"><a href="LuCI.html#sortedKeys">sortedKeys</a></li>
114
115 <li data-name="LuCI#stop"><a href="LuCI.html#stop">stop</a></li>
116
117 <li data-name="LuCI#toArray"><a href="LuCI.html#toArray">toArray</a></li>
118
119 <li data-name="LuCI#url"><a href="LuCI.html#url">url</a></li>
120
121 </ul>
122 <ul class="events itemMembers">
123
124 </ul>
125 </li>
126
127 <li class="item" data-name="LuCI.baseclass">
128 <span class="title">
129 <a href="LuCI.baseclass.html">LuCI.baseclass</a>
130
131 </span>
132 <ul class="members itemMembers">
133
134 </ul>
135 <ul class="typedefs itemMembers">
136
137 </ul>
138 <ul class="typedefs itemMembers">
139
140 </ul>
141 <ul class="methods itemMembers">
142
143 <span class="subtitle">Methods</span>
144
145 <li data-name="LuCI.baseclass.extend"><a href="LuCI.baseclass.html#.extend">extend</a></li>
146
147 <li data-name="LuCI.baseclass.instantiate"><a href="LuCI.baseclass.html#.instantiate">instantiate</a></li>
148
149 <li data-name="LuCI.baseclass.isSubclass"><a href="LuCI.baseclass.html#.isSubclass">isSubclass</a></li>
150
151 <li data-name="LuCI.baseclass.singleton"><a href="LuCI.baseclass.html#.singleton">singleton</a></li>
152
153 <li data-name="LuCI.baseclass#super"><a href="LuCI.baseclass.html#super">super</a></li>
154
155 <li data-name="LuCI.baseclass#varargs"><a href="LuCI.baseclass.html#varargs">varargs</a></li>
156
157 </ul>
158 <ul class="events itemMembers">
159
160 </ul>
161 </li>
162
163 <li class="item" data-name="LuCI.dom">
164 <span class="title">
165 <a href="LuCI.dom.html">LuCI.dom</a>
166
167 </span>
168 <ul class="members itemMembers">
169
170 </ul>
171 <ul class="typedefs itemMembers">
172
173 <span class="subtitle">Typedefs</span>
174
175 <li data-name="LuCI.dom~ignoreCallbackFn"><a href="LuCI.dom.html#~ignoreCallbackFn">ignoreCallbackFn</a></li>
176
177 </ul>
178 <ul class="typedefs itemMembers">
179
180 </ul>
181 <ul class="methods itemMembers">
182
183 <span class="subtitle">Methods</span>
184
185 <li data-name="LuCI.dom#append"><a href="LuCI.dom.html#append">append</a></li>
186
187 <li data-name="LuCI.dom#attr"><a href="LuCI.dom.html#attr">attr</a></li>
188
189 <li data-name="LuCI.dom#bindClassInstance"><a href="LuCI.dom.html#bindClassInstance">bindClassInstance</a></li>
190
191 <li data-name="LuCI.dom#callClassMethod"><a href="LuCI.dom.html#callClassMethod">callClassMethod</a></li>
192
193 <li data-name="LuCI.dom#content"><a href="LuCI.dom.html#content">content</a></li>
194
195 <li data-name="LuCI.dom#create"><a href="LuCI.dom.html#create">create</a></li>
196
197 <li data-name="LuCI.dom#data"><a href="LuCI.dom.html#data">data</a></li>
198
199 <li data-name="LuCI.dom#elem"><a href="LuCI.dom.html#elem">elem</a></li>
200
201 <li data-name="LuCI.dom#findClassInstance"><a href="LuCI.dom.html#findClassInstance">findClassInstance</a></li>
202
203 <li data-name="LuCI.dom#isEmpty"><a href="LuCI.dom.html#isEmpty">isEmpty</a></li>
204
205 <li data-name="LuCI.dom#matches"><a href="LuCI.dom.html#matches">matches</a></li>
206
207 <li data-name="LuCI.dom#parent"><a href="LuCI.dom.html#parent">parent</a></li>
208
209 <li data-name="LuCI.dom#parse"><a href="LuCI.dom.html#parse">parse</a></li>
210
211 </ul>
212 <ul class="events itemMembers">
213
214 </ul>
215 </li>
216
217 <li class="item" data-name="LuCI.form">
218 <span class="title">
219 <a href="LuCI.form.html">LuCI.form</a>
220
221 </span>
222 <ul class="members itemMembers">
223
224 </ul>
225 <ul class="typedefs itemMembers">
226
227 </ul>
228 <ul class="typedefs itemMembers">
229
230 </ul>
231 <ul class="methods itemMembers">
232
233 </ul>
234 <ul class="events itemMembers">
235
236 </ul>
237 </li>
238
239 <li class="item" data-name="LuCI.form.AbstractElement">
240 <span class="title">
241 <a href="LuCI.form.AbstractElement.html">LuCI.form.AbstractElement</a>
242
243 </span>
244 <ul class="members itemMembers">
245
246 </ul>
247 <ul class="typedefs itemMembers">
248
249 </ul>
250 <ul class="typedefs itemMembers">
251
252 </ul>
253 <ul class="methods itemMembers">
254
255 <span class="subtitle">Methods</span>
256
257 <li data-name="LuCI.form.AbstractElement#append"><a href="LuCI.form.AbstractElement.html#append">append</a></li>
258
259 <li data-name="LuCI.form.AbstractElement#parse"><a href="LuCI.form.AbstractElement.html#parse">parse</a></li>
260
261 <li data-name="LuCI.form.AbstractElement#render"><a href="LuCI.form.AbstractElement.html#render">render</a></li>
262
263 <li data-name="LuCI.form.AbstractElement#stripTags"><a href="LuCI.form.AbstractElement.html#stripTags">stripTags</a></li>
264
265 <li data-name="LuCI.form.AbstractElement#titleFn"><a href="LuCI.form.AbstractElement.html#titleFn">titleFn</a></li>
266
267 </ul>
268 <ul class="events itemMembers">
269
270 </ul>
271 </li>
272
273 <li class="item" data-name="LuCI.form.AbstractSection">
274 <span class="title">
275 <a href="LuCI.form.AbstractSection.html">LuCI.form.AbstractSection</a>
276
277 </span>
278 <ul class="members itemMembers">
279
280 <span class="subtitle">Members</span>
281
282 <li data-name="LuCI.form.AbstractSection##parentoption"><a href="LuCI.form.AbstractSection.html#parentoption">parentoption</a></li>
283
284 </ul>
285 <ul class="typedefs itemMembers">
286
287 </ul>
288 <ul class="typedefs itemMembers">
289
290 </ul>
291 <ul class="methods itemMembers">
292
293 <span class="subtitle">Methods</span>
294
295 <li data-name="LuCI.form.AbstractSection#append"><a href="LuCI.form.AbstractSection.html#append">append</a></li>
296
297 <li data-name="LuCI.form.AbstractSection#cfgsections"><a href="LuCI.form.AbstractSection.html#cfgsections">cfgsections</a></li>
298
299 <li data-name="LuCI.form.AbstractSection#cfgvalue"><a href="LuCI.form.AbstractSection.html#cfgvalue">cfgvalue</a></li>
300
301 <li data-name="LuCI.form.AbstractSection#filter"><a href="LuCI.form.AbstractSection.html#filter">filter</a></li>
302
303 <li data-name="LuCI.form.AbstractSection#formvalue"><a href="LuCI.form.AbstractSection.html#formvalue">formvalue</a></li>
304
305 <li data-name="LuCI.form.AbstractSection#getOption"><a href="LuCI.form.AbstractSection.html#getOption">getOption</a></li>
306
307 <li data-name="LuCI.form.AbstractSection#getUIElement"><a href="LuCI.form.AbstractSection.html#getUIElement">getUIElement</a></li>
308
309 <li data-name="LuCI.form.AbstractSection#load"><a href="LuCI.form.AbstractSection.html#load">load</a></li>
310
311 <li data-name="LuCI.form.AbstractSection#option"><a href="LuCI.form.AbstractSection.html#option">option</a></li>
312
313 <li data-name="LuCI.form.AbstractSection#parse"><a href="LuCI.form.AbstractSection.html#parse">parse</a></li>
314
315 <li data-name="LuCI.form.AbstractSection#render"><a href="LuCI.form.AbstractSection.html#render">render</a></li>
316
317 <li data-name="LuCI.form.AbstractSection#stripTags"><a href="LuCI.form.AbstractSection.html#stripTags">stripTags</a></li>
318
319 <li data-name="LuCI.form.AbstractSection#tab"><a href="LuCI.form.AbstractSection.html#tab">tab</a></li>
320
321 <li data-name="LuCI.form.AbstractSection#taboption"><a href="LuCI.form.AbstractSection.html#taboption">taboption</a></li>
322
323 <li data-name="LuCI.form.AbstractSection#titleFn"><a href="LuCI.form.AbstractSection.html#titleFn">titleFn</a></li>
324
325 </ul>
326 <ul class="events itemMembers">
327
328 </ul>
329 </li>
330
331 <li class="item" data-name="LuCI.form.AbstractValue">
332 <span class="title">
333 <a href="LuCI.form.AbstractValue.html">LuCI.form.AbstractValue</a>
334
335 </span>
336 <ul class="members itemMembers">
337
338 <span class="subtitle">Members</span>
339
340 <li data-name="LuCI.form.AbstractValue##datatype"><a href="LuCI.form.AbstractValue.html#datatype">datatype</a></li>
341
342 <li data-name="LuCI.form.AbstractValue##default"><a href="LuCI.form.AbstractValue.html#default">default</a></li>
343
344 <li data-name="LuCI.form.AbstractValue##editable"><a href="LuCI.form.AbstractValue.html#editable">editable</a></li>
345
346 <li data-name="LuCI.form.AbstractValue##modalonly"><a href="LuCI.form.AbstractValue.html#modalonly">modalonly</a></li>
347
348 <li data-name="LuCI.form.AbstractValue##onchange"><a href="LuCI.form.AbstractValue.html#onchange">onchange</a></li>
349
350 <li data-name="LuCI.form.AbstractValue##optional"><a href="LuCI.form.AbstractValue.html#optional">optional</a></li>
351
352 <li data-name="LuCI.form.AbstractValue##readonly"><a href="LuCI.form.AbstractValue.html#readonly">readonly</a></li>
353
354 <li data-name="LuCI.form.AbstractValue##retain"><a href="LuCI.form.AbstractValue.html#retain">retain</a></li>
355
356 <li data-name="LuCI.form.AbstractValue##rmempty"><a href="LuCI.form.AbstractValue.html#rmempty">rmempty</a></li>
357
358 <li data-name="LuCI.form.AbstractValue##uciconfig"><a href="LuCI.form.AbstractValue.html#uciconfig">uciconfig</a></li>
359
360 <li data-name="LuCI.form.AbstractValue##ucioption"><a href="LuCI.form.AbstractValue.html#ucioption">ucioption</a></li>
361
362 <li data-name="LuCI.form.AbstractValue##ucisection"><a href="LuCI.form.AbstractValue.html#ucisection">ucisection</a></li>
363
364 <li data-name="LuCI.form.AbstractValue##validate"><a href="LuCI.form.AbstractValue.html#validate">validate</a></li>
365
366 <li data-name="LuCI.form.AbstractValue##width"><a href="LuCI.form.AbstractValue.html#width">width</a></li>
367
368 </ul>
369 <ul class="typedefs itemMembers">
370
371 </ul>
372 <ul class="typedefs itemMembers">
373
374 </ul>
375 <ul class="methods itemMembers">
376
377 <span class="subtitle">Methods</span>
378
379 <li data-name="LuCI.form.AbstractValue#append"><a href="LuCI.form.AbstractValue.html#append">append</a></li>
380
381 <li data-name="LuCI.form.AbstractValue#cbid"><a href="LuCI.form.AbstractValue.html#cbid">cbid</a></li>
382
383 <li data-name="LuCI.form.AbstractValue#cfgvalue"><a href="LuCI.form.AbstractValue.html#cfgvalue">cfgvalue</a></li>
384
385 <li data-name="LuCI.form.AbstractValue#depends"><a href="LuCI.form.AbstractValue.html#depends">depends</a></li>
386
387 <li data-name="LuCI.form.AbstractValue#formvalue"><a href="LuCI.form.AbstractValue.html#formvalue">formvalue</a></li>
388
389 <li data-name="LuCI.form.AbstractValue#getUIElement"><a href="LuCI.form.AbstractValue.html#getUIElement">getUIElement</a></li>
390
391 <li data-name="LuCI.form.AbstractValue#getValidationError"><a href="LuCI.form.AbstractValue.html#getValidationError">getValidationError</a></li>
392
393 <li data-name="LuCI.form.AbstractValue#isActive"><a href="LuCI.form.AbstractValue.html#isActive">isActive</a></li>
394
395 <li data-name="LuCI.form.AbstractValue#isValid"><a href="LuCI.form.AbstractValue.html#isValid">isValid</a></li>
396
397 <li data-name="LuCI.form.AbstractValue#load"><a href="LuCI.form.AbstractValue.html#load">load</a></li>
398
399 <li data-name="LuCI.form.AbstractValue#parse"><a href="LuCI.form.AbstractValue.html#parse">parse</a></li>
400
401 <li data-name="LuCI.form.AbstractValue#remove"><a href="LuCI.form.AbstractValue.html#remove">remove</a></li>
402
403 <li data-name="LuCI.form.AbstractValue#render"><a href="LuCI.form.AbstractValue.html#render">render</a></li>
404
405 <li data-name="LuCI.form.AbstractValue#stripTags"><a href="LuCI.form.AbstractValue.html#stripTags">stripTags</a></li>
406
407 <li data-name="LuCI.form.AbstractValue#textvalue"><a href="LuCI.form.AbstractValue.html#textvalue">textvalue</a></li>
408
409 <li data-name="LuCI.form.AbstractValue#titleFn"><a href="LuCI.form.AbstractValue.html#titleFn">titleFn</a></li>
410
411 <li data-name="LuCI.form.AbstractValue#validate"><a href="LuCI.form.AbstractValue.html#validate">validate</a></li>
412
413 <li data-name="LuCI.form.AbstractValue#write"><a href="LuCI.form.AbstractValue.html#write">write</a></li>
414
415 </ul>
416 <ul class="events itemMembers">
417
418 </ul>
419 </li>
420
421 <li class="item" data-name="LuCI.form.ButtonValue">
422 <span class="title">
423 <a href="LuCI.form.ButtonValue.html">LuCI.form.ButtonValue</a>
424
425 </span>
426 <ul class="members itemMembers">
427
428 <span class="subtitle">Members</span>
429
430 <li data-name="LuCI.form.ButtonValue##inputstyle"><a href="LuCI.form.ButtonValue.html#inputstyle">inputstyle</a></li>
431
432 <li data-name="LuCI.form.ButtonValue##inputtitle"><a href="LuCI.form.ButtonValue.html#inputtitle">inputtitle</a></li>
433
434 <li data-name="LuCI.form.ButtonValue##onclick"><a href="LuCI.form.ButtonValue.html#onclick">onclick</a></li>
435
436 <li data-name="LuCI.form.ButtonValue#datatype"><a href="LuCI.form.ButtonValue.html#datatype">datatype</a></li>
437
438 <li data-name="LuCI.form.ButtonValue#default"><a href="LuCI.form.ButtonValue.html#default">default</a></li>
439
440 <li data-name="LuCI.form.ButtonValue#editable"><a href="LuCI.form.ButtonValue.html#editable">editable</a></li>
441
442 <li data-name="LuCI.form.ButtonValue#modalonly"><a href="LuCI.form.ButtonValue.html#modalonly">modalonly</a></li>
443
444 <li data-name="LuCI.form.ButtonValue#onchange"><a href="LuCI.form.ButtonValue.html#onchange">onchange</a></li>
445
446 <li data-name="LuCI.form.ButtonValue#optional"><a href="LuCI.form.ButtonValue.html#optional">optional</a></li>
447
448 <li data-name="LuCI.form.ButtonValue#password"><a href="LuCI.form.ButtonValue.html#password">password</a></li>
449
450 <li data-name="LuCI.form.ButtonValue#placeholder"><a href="LuCI.form.ButtonValue.html#placeholder">placeholder</a></li>
451
452 <li data-name="LuCI.form.ButtonValue#readonly"><a href="LuCI.form.ButtonValue.html#readonly">readonly</a></li>
453
454 <li data-name="LuCI.form.ButtonValue#retain"><a href="LuCI.form.ButtonValue.html#retain">retain</a></li>
455
456 <li data-name="LuCI.form.ButtonValue#rmempty"><a href="LuCI.form.ButtonValue.html#rmempty">rmempty</a></li>
457
458 <li data-name="LuCI.form.ButtonValue#uciconfig"><a href="LuCI.form.ButtonValue.html#uciconfig">uciconfig</a></li>
459
460 <li data-name="LuCI.form.ButtonValue#ucioption"><a href="LuCI.form.ButtonValue.html#ucioption">ucioption</a></li>
461
462 <li data-name="LuCI.form.ButtonValue#ucisection"><a href="LuCI.form.ButtonValue.html#ucisection">ucisection</a></li>
463
464 <li data-name="LuCI.form.ButtonValue#validate"><a href="LuCI.form.ButtonValue.html#validate">validate</a></li>
465
466 <li data-name="LuCI.form.ButtonValue#width"><a href="LuCI.form.ButtonValue.html#width">width</a></li>
467
468 </ul>
469 <ul class="typedefs itemMembers">
470
471 </ul>
472 <ul class="typedefs itemMembers">
473
474 </ul>
475 <ul class="methods itemMembers">
476
477 <span class="subtitle">Methods</span>
478
479 <li data-name="LuCI.form.ButtonValue#append"><a href="LuCI.form.ButtonValue.html#append">append</a></li>
480
481 <li data-name="LuCI.form.ButtonValue#cbid"><a href="LuCI.form.ButtonValue.html#cbid">cbid</a></li>
482
483 <li data-name="LuCI.form.ButtonValue#cfgvalue"><a href="LuCI.form.ButtonValue.html#cfgvalue">cfgvalue</a></li>
484
485 <li data-name="LuCI.form.ButtonValue#depends"><a href="LuCI.form.ButtonValue.html#depends">depends</a></li>
486
487 <li data-name="LuCI.form.ButtonValue#formvalue"><a href="LuCI.form.ButtonValue.html#formvalue">formvalue</a></li>
488
489 <li data-name="LuCI.form.ButtonValue#getUIElement"><a href="LuCI.form.ButtonValue.html#getUIElement">getUIElement</a></li>
490
491 <li data-name="LuCI.form.ButtonValue#getValidationError"><a href="LuCI.form.ButtonValue.html#getValidationError">getValidationError</a></li>
492
493 <li data-name="LuCI.form.ButtonValue#isActive"><a href="LuCI.form.ButtonValue.html#isActive">isActive</a></li>
494
495 <li data-name="LuCI.form.ButtonValue#isValid"><a href="LuCI.form.ButtonValue.html#isValid">isValid</a></li>
496
497 <li data-name="LuCI.form.ButtonValue#load"><a href="LuCI.form.ButtonValue.html#load">load</a></li>
498
499 <li data-name="LuCI.form.ButtonValue#parse"><a href="LuCI.form.ButtonValue.html#parse">parse</a></li>
500
501 <li data-name="LuCI.form.ButtonValue#remove"><a href="LuCI.form.ButtonValue.html#remove">remove</a></li>
502
503 <li data-name="LuCI.form.ButtonValue#stripTags"><a href="LuCI.form.ButtonValue.html#stripTags">stripTags</a></li>
504
505 <li data-name="LuCI.form.ButtonValue#textvalue"><a href="LuCI.form.ButtonValue.html#textvalue">textvalue</a></li>
506
507 <li data-name="LuCI.form.ButtonValue#titleFn"><a href="LuCI.form.ButtonValue.html#titleFn">titleFn</a></li>
508
509 <li data-name="LuCI.form.ButtonValue#value"><a href="LuCI.form.ButtonValue.html#value">value</a></li>
510
511 <li data-name="LuCI.form.ButtonValue#write"><a href="LuCI.form.ButtonValue.html#write">write</a></li>
512
513 </ul>
514 <ul class="events itemMembers">
515
516 </ul>
517 </li>
518
519 <li class="item" data-name="LuCI.form.DummyValue">
520 <span class="title">
521 <a href="LuCI.form.DummyValue.html">LuCI.form.DummyValue</a>
522
523 </span>
524 <ul class="members itemMembers">
525
526 <span class="subtitle">Members</span>
527
528 <li data-name="LuCI.form.DummyValue##hidden"><a href="LuCI.form.DummyValue.html#hidden">hidden</a></li>
529
530 <li data-name="LuCI.form.DummyValue##href"><a href="LuCI.form.DummyValue.html#href">href</a></li>
531
532 <li data-name="LuCI.form.DummyValue##rawhtml"><a href="LuCI.form.DummyValue.html#rawhtml">rawhtml</a></li>
533
534 <li data-name="LuCI.form.DummyValue#datatype"><a href="LuCI.form.DummyValue.html#datatype">datatype</a></li>
535
536 <li data-name="LuCI.form.DummyValue#default"><a href="LuCI.form.DummyValue.html#default">default</a></li>
537
538 <li data-name="LuCI.form.DummyValue#editable"><a href="LuCI.form.DummyValue.html#editable">editable</a></li>
539
540 <li data-name="LuCI.form.DummyValue#modalonly"><a href="LuCI.form.DummyValue.html#modalonly">modalonly</a></li>
541
542 <li data-name="LuCI.form.DummyValue#onchange"><a href="LuCI.form.DummyValue.html#onchange">onchange</a></li>
543
544 <li data-name="LuCI.form.DummyValue#optional"><a href="LuCI.form.DummyValue.html#optional">optional</a></li>
545
546 <li data-name="LuCI.form.DummyValue#password"><a href="LuCI.form.DummyValue.html#password">password</a></li>
547
548 <li data-name="LuCI.form.DummyValue#placeholder"><a href="LuCI.form.DummyValue.html#placeholder">placeholder</a></li>
549
550 <li data-name="LuCI.form.DummyValue#readonly"><a href="LuCI.form.DummyValue.html#readonly">readonly</a></li>
551
552 <li data-name="LuCI.form.DummyValue#retain"><a href="LuCI.form.DummyValue.html#retain">retain</a></li>
553
554 <li data-name="LuCI.form.DummyValue#rmempty"><a href="LuCI.form.DummyValue.html#rmempty">rmempty</a></li>
555
556 <li data-name="LuCI.form.DummyValue#uciconfig"><a href="LuCI.form.DummyValue.html#uciconfig">uciconfig</a></li>
557
558 <li data-name="LuCI.form.DummyValue#ucioption"><a href="LuCI.form.DummyValue.html#ucioption">ucioption</a></li>
559
560 <li data-name="LuCI.form.DummyValue#ucisection"><a href="LuCI.form.DummyValue.html#ucisection">ucisection</a></li>
561
562 <li data-name="LuCI.form.DummyValue#validate"><a href="LuCI.form.DummyValue.html#validate">validate</a></li>
563
564 <li data-name="LuCI.form.DummyValue#width"><a href="LuCI.form.DummyValue.html#width">width</a></li>
565
566 </ul>
567 <ul class="typedefs itemMembers">
568
569 </ul>
570 <ul class="typedefs itemMembers">
571
572 </ul>
573 <ul class="methods itemMembers">
574
575 <span class="subtitle">Methods</span>
576
577 <li data-name="LuCI.form.DummyValue#append"><a href="LuCI.form.DummyValue.html#append">append</a></li>
578
579 <li data-name="LuCI.form.DummyValue#cbid"><a href="LuCI.form.DummyValue.html#cbid">cbid</a></li>
580
581 <li data-name="LuCI.form.DummyValue#cfgvalue"><a href="LuCI.form.DummyValue.html#cfgvalue">cfgvalue</a></li>
582
583 <li data-name="LuCI.form.DummyValue#depends"><a href="LuCI.form.DummyValue.html#depends">depends</a></li>
584
585 <li data-name="LuCI.form.DummyValue#formvalue"><a href="LuCI.form.DummyValue.html#formvalue">formvalue</a></li>
586
587 <li data-name="LuCI.form.DummyValue#getUIElement"><a href="LuCI.form.DummyValue.html#getUIElement">getUIElement</a></li>
588
589 <li data-name="LuCI.form.DummyValue#getValidationError"><a href="LuCI.form.DummyValue.html#getValidationError">getValidationError</a></li>
590
591 <li data-name="LuCI.form.DummyValue#isActive"><a href="LuCI.form.DummyValue.html#isActive">isActive</a></li>
592
593 <li data-name="LuCI.form.DummyValue#isValid"><a href="LuCI.form.DummyValue.html#isValid">isValid</a></li>
594
595 <li data-name="LuCI.form.DummyValue#load"><a href="LuCI.form.DummyValue.html#load">load</a></li>
596
597 <li data-name="LuCI.form.DummyValue#parse"><a href="LuCI.form.DummyValue.html#parse">parse</a></li>
598
599 <li data-name="LuCI.form.DummyValue#remove"><a href="LuCI.form.DummyValue.html#remove">remove</a></li>
600
601 <li data-name="LuCI.form.DummyValue#stripTags"><a href="LuCI.form.DummyValue.html#stripTags">stripTags</a></li>
602
603 <li data-name="LuCI.form.DummyValue#textvalue"><a href="LuCI.form.DummyValue.html#textvalue">textvalue</a></li>
604
605 <li data-name="LuCI.form.DummyValue#titleFn"><a href="LuCI.form.DummyValue.html#titleFn">titleFn</a></li>
606
607 <li data-name="LuCI.form.DummyValue#value"><a href="LuCI.form.DummyValue.html#value">value</a></li>
608
609 <li data-name="LuCI.form.DummyValue#write"><a href="LuCI.form.DummyValue.html#write">write</a></li>
610
611 </ul>
612 <ul class="events itemMembers">
613
614 </ul>
615 </li>
616
617 <li class="item" data-name="LuCI.form.DynamicList">
618 <span class="title">
619 <a href="LuCI.form.DynamicList.html">LuCI.form.DynamicList</a>
620
621 </span>
622 <ul class="members itemMembers">
623
624 <span class="subtitle">Members</span>
625
626 <li data-name="LuCI.form.DynamicList#datatype"><a href="LuCI.form.DynamicList.html#datatype">datatype</a></li>
627
628 <li data-name="LuCI.form.DynamicList#default"><a href="LuCI.form.DynamicList.html#default">default</a></li>
629
630 <li data-name="LuCI.form.DynamicList#editable"><a href="LuCI.form.DynamicList.html#editable">editable</a></li>
631
632 <li data-name="LuCI.form.DynamicList#modalonly"><a href="LuCI.form.DynamicList.html#modalonly">modalonly</a></li>
633
634 <li data-name="LuCI.form.DynamicList#onchange"><a href="LuCI.form.DynamicList.html#onchange">onchange</a></li>
635
636 <li data-name="LuCI.form.DynamicList#optional"><a href="LuCI.form.DynamicList.html#optional">optional</a></li>
637
638 <li data-name="LuCI.form.DynamicList#password"><a href="LuCI.form.DynamicList.html#password">password</a></li>
639
640 <li data-name="LuCI.form.DynamicList#placeholder"><a href="LuCI.form.DynamicList.html#placeholder">placeholder</a></li>
641
642 <li data-name="LuCI.form.DynamicList#readonly"><a href="LuCI.form.DynamicList.html#readonly">readonly</a></li>
643
644 <li data-name="LuCI.form.DynamicList#retain"><a href="LuCI.form.DynamicList.html#retain">retain</a></li>
645
646 <li data-name="LuCI.form.DynamicList#rmempty"><a href="LuCI.form.DynamicList.html#rmempty">rmempty</a></li>
647
648 <li data-name="LuCI.form.DynamicList#uciconfig"><a href="LuCI.form.DynamicList.html#uciconfig">uciconfig</a></li>
649
650 <li data-name="LuCI.form.DynamicList#ucioption"><a href="LuCI.form.DynamicList.html#ucioption">ucioption</a></li>
651
652 <li data-name="LuCI.form.DynamicList#ucisection"><a href="LuCI.form.DynamicList.html#ucisection">ucisection</a></li>
653
654 <li data-name="LuCI.form.DynamicList#validate"><a href="LuCI.form.DynamicList.html#validate">validate</a></li>
655
656 <li data-name="LuCI.form.DynamicList#width"><a href="LuCI.form.DynamicList.html#width">width</a></li>
657
658 </ul>
659 <ul class="typedefs itemMembers">
660
661 </ul>
662 <ul class="typedefs itemMembers">
663
664 </ul>
665 <ul class="methods itemMembers">
666
667 <span class="subtitle">Methods</span>
668
669 <li data-name="LuCI.form.DynamicList#append"><a href="LuCI.form.DynamicList.html#append">append</a></li>
670
671 <li data-name="LuCI.form.DynamicList#cbid"><a href="LuCI.form.DynamicList.html#cbid">cbid</a></li>
672
673 <li data-name="LuCI.form.DynamicList#cfgvalue"><a href="LuCI.form.DynamicList.html#cfgvalue">cfgvalue</a></li>
674
675 <li data-name="LuCI.form.DynamicList#depends"><a href="LuCI.form.DynamicList.html#depends">depends</a></li>
676
677 <li data-name="LuCI.form.DynamicList#formvalue"><a href="LuCI.form.DynamicList.html#formvalue">formvalue</a></li>
678
679 <li data-name="LuCI.form.DynamicList#getUIElement"><a href="LuCI.form.DynamicList.html#getUIElement">getUIElement</a></li>
680
681 <li data-name="LuCI.form.DynamicList#getValidationError"><a href="LuCI.form.DynamicList.html#getValidationError">getValidationError</a></li>
682
683 <li data-name="LuCI.form.DynamicList#isActive"><a href="LuCI.form.DynamicList.html#isActive">isActive</a></li>
684
685 <li data-name="LuCI.form.DynamicList#isValid"><a href="LuCI.form.DynamicList.html#isValid">isValid</a></li>
686
687 <li data-name="LuCI.form.DynamicList#load"><a href="LuCI.form.DynamicList.html#load">load</a></li>
688
689 <li data-name="LuCI.form.DynamicList#parse"><a href="LuCI.form.DynamicList.html#parse">parse</a></li>
690
691 <li data-name="LuCI.form.DynamicList#remove"><a href="LuCI.form.DynamicList.html#remove">remove</a></li>
692
693 <li data-name="LuCI.form.DynamicList#stripTags"><a href="LuCI.form.DynamicList.html#stripTags">stripTags</a></li>
694
695 <li data-name="LuCI.form.DynamicList#textvalue"><a href="LuCI.form.DynamicList.html#textvalue">textvalue</a></li>
696
697 <li data-name="LuCI.form.DynamicList#titleFn"><a href="LuCI.form.DynamicList.html#titleFn">titleFn</a></li>
698
699 <li data-name="LuCI.form.DynamicList#value"><a href="LuCI.form.DynamicList.html#value">value</a></li>
700
701 <li data-name="LuCI.form.DynamicList#write"><a href="LuCI.form.DynamicList.html#write">write</a></li>
702
703 </ul>
704 <ul class="events itemMembers">
705
706 </ul>
707 </li>
708
709 <li class="item" data-name="LuCI.form.FileUpload">
710 <span class="title">
711 <a href="LuCI.form.FileUpload.html">LuCI.form.FileUpload</a>
712
713 </span>
714 <ul class="members itemMembers">
715
716 <span class="subtitle">Members</span>
717
718 <li data-name="LuCI.form.FileUpload##enable_remove"><a href="LuCI.form.FileUpload.html#enable_remove">enable_remove</a></li>
719
720 <li data-name="LuCI.form.FileUpload##enable_upload"><a href="LuCI.form.FileUpload.html#enable_upload">enable_upload</a></li>
721
722 <li data-name="LuCI.form.FileUpload##root_directory"><a href="LuCI.form.FileUpload.html#root_directory">root_directory</a></li>
723
724 <li data-name="LuCI.form.FileUpload##show_hidden"><a href="LuCI.form.FileUpload.html#show_hidden">show_hidden</a></li>
725
726 <li data-name="LuCI.form.FileUpload#datatype"><a href="LuCI.form.FileUpload.html#datatype">datatype</a></li>
727
728 <li data-name="LuCI.form.FileUpload#default"><a href="LuCI.form.FileUpload.html#default">default</a></li>
729
730 <li data-name="LuCI.form.FileUpload#editable"><a href="LuCI.form.FileUpload.html#editable">editable</a></li>
731
732 <li data-name="LuCI.form.FileUpload#modalonly"><a href="LuCI.form.FileUpload.html#modalonly">modalonly</a></li>
733
734 <li data-name="LuCI.form.FileUpload#onchange"><a href="LuCI.form.FileUpload.html#onchange">onchange</a></li>
735
736 <li data-name="LuCI.form.FileUpload#optional"><a href="LuCI.form.FileUpload.html#optional">optional</a></li>
737
738 <li data-name="LuCI.form.FileUpload#password"><a href="LuCI.form.FileUpload.html#password">password</a></li>
739
740 <li data-name="LuCI.form.FileUpload#placeholder"><a href="LuCI.form.FileUpload.html#placeholder">placeholder</a></li>
741
742 <li data-name="LuCI.form.FileUpload#readonly"><a href="LuCI.form.FileUpload.html#readonly">readonly</a></li>
743
744 <li data-name="LuCI.form.FileUpload#retain"><a href="LuCI.form.FileUpload.html#retain">retain</a></li>
745
746 <li data-name="LuCI.form.FileUpload#rmempty"><a href="LuCI.form.FileUpload.html#rmempty">rmempty</a></li>
747
748 <li data-name="LuCI.form.FileUpload#uciconfig"><a href="LuCI.form.FileUpload.html#uciconfig">uciconfig</a></li>
749
750 <li data-name="LuCI.form.FileUpload#ucioption"><a href="LuCI.form.FileUpload.html#ucioption">ucioption</a></li>
751
752 <li data-name="LuCI.form.FileUpload#ucisection"><a href="LuCI.form.FileUpload.html#ucisection">ucisection</a></li>
753
754 <li data-name="LuCI.form.FileUpload#validate"><a href="LuCI.form.FileUpload.html#validate">validate</a></li>
755
756 <li data-name="LuCI.form.FileUpload#width"><a href="LuCI.form.FileUpload.html#width">width</a></li>
757
758 </ul>
759 <ul class="typedefs itemMembers">
760
761 </ul>
762 <ul class="typedefs itemMembers">
763
764 </ul>
765 <ul class="methods itemMembers">
766
767 <span class="subtitle">Methods</span>
768
769 <li data-name="LuCI.form.FileUpload#append"><a href="LuCI.form.FileUpload.html#append">append</a></li>
770
771 <li data-name="LuCI.form.FileUpload#cbid"><a href="LuCI.form.FileUpload.html#cbid">cbid</a></li>
772
773 <li data-name="LuCI.form.FileUpload#cfgvalue"><a href="LuCI.form.FileUpload.html#cfgvalue">cfgvalue</a></li>
774
775 <li data-name="LuCI.form.FileUpload#depends"><a href="LuCI.form.FileUpload.html#depends">depends</a></li>
776
777 <li data-name="LuCI.form.FileUpload#formvalue"><a href="LuCI.form.FileUpload.html#formvalue">formvalue</a></li>
778
779 <li data-name="LuCI.form.FileUpload#getUIElement"><a href="LuCI.form.FileUpload.html#getUIElement">getUIElement</a></li>
780
781 <li data-name="LuCI.form.FileUpload#getValidationError"><a href="LuCI.form.FileUpload.html#getValidationError">getValidationError</a></li>
782
783 <li data-name="LuCI.form.FileUpload#isActive"><a href="LuCI.form.FileUpload.html#isActive">isActive</a></li>
784
785 <li data-name="LuCI.form.FileUpload#isValid"><a href="LuCI.form.FileUpload.html#isValid">isValid</a></li>
786
787 <li data-name="LuCI.form.FileUpload#load"><a href="LuCI.form.FileUpload.html#load">load</a></li>
788
789 <li data-name="LuCI.form.FileUpload#parse"><a href="LuCI.form.FileUpload.html#parse">parse</a></li>
790
791 <li data-name="LuCI.form.FileUpload#remove"><a href="LuCI.form.FileUpload.html#remove">remove</a></li>
792
793 <li data-name="LuCI.form.FileUpload#stripTags"><a href="LuCI.form.FileUpload.html#stripTags">stripTags</a></li>
794
795 <li data-name="LuCI.form.FileUpload#textvalue"><a href="LuCI.form.FileUpload.html#textvalue">textvalue</a></li>
796
797 <li data-name="LuCI.form.FileUpload#titleFn"><a href="LuCI.form.FileUpload.html#titleFn">titleFn</a></li>
798
799 <li data-name="LuCI.form.FileUpload#value"><a href="LuCI.form.FileUpload.html#value">value</a></li>
800
801 <li data-name="LuCI.form.FileUpload#write"><a href="LuCI.form.FileUpload.html#write">write</a></li>
802
803 </ul>
804 <ul class="events itemMembers">
805
806 </ul>
807 </li>
808
809 <li class="item" data-name="LuCI.form.FlagValue">
810 <span class="title">
811 <a href="LuCI.form.FlagValue.html">LuCI.form.FlagValue</a>
812
813 </span>
814 <ul class="members itemMembers">
815
816 <span class="subtitle">Members</span>
817
818 <li data-name="LuCI.form.FlagValue##disabled"><a href="LuCI.form.FlagValue.html#disabled">disabled</a></li>
819
820 <li data-name="LuCI.form.FlagValue##enabled"><a href="LuCI.form.FlagValue.html#enabled">enabled</a></li>
821
822 <li data-name="LuCI.form.FlagValue#datatype"><a href="LuCI.form.FlagValue.html#datatype">datatype</a></li>
823
824 <li data-name="LuCI.form.FlagValue#default"><a href="LuCI.form.FlagValue.html#default">default</a></li>
825
826 <li data-name="LuCI.form.FlagValue#editable"><a href="LuCI.form.FlagValue.html#editable">editable</a></li>
827
828 <li data-name="LuCI.form.FlagValue#modalonly"><a href="LuCI.form.FlagValue.html#modalonly">modalonly</a></li>
829
830 <li data-name="LuCI.form.FlagValue#onchange"><a href="LuCI.form.FlagValue.html#onchange">onchange</a></li>
831
832 <li data-name="LuCI.form.FlagValue#optional"><a href="LuCI.form.FlagValue.html#optional">optional</a></li>
833
834 <li data-name="LuCI.form.FlagValue#password"><a href="LuCI.form.FlagValue.html#password">password</a></li>
835
836 <li data-name="LuCI.form.FlagValue#placeholder"><a href="LuCI.form.FlagValue.html#placeholder">placeholder</a></li>
837
838 <li data-name="LuCI.form.FlagValue#readonly"><a href="LuCI.form.FlagValue.html#readonly">readonly</a></li>
839
840 <li data-name="LuCI.form.FlagValue#retain"><a href="LuCI.form.FlagValue.html#retain">retain</a></li>
841
842 <li data-name="LuCI.form.FlagValue#rmempty"><a href="LuCI.form.FlagValue.html#rmempty">rmempty</a></li>
843
844 <li data-name="LuCI.form.FlagValue#uciconfig"><a href="LuCI.form.FlagValue.html#uciconfig">uciconfig</a></li>
845
846 <li data-name="LuCI.form.FlagValue#ucioption"><a href="LuCI.form.FlagValue.html#ucioption">ucioption</a></li>
847
848 <li data-name="LuCI.form.FlagValue#ucisection"><a href="LuCI.form.FlagValue.html#ucisection">ucisection</a></li>
849
850 <li data-name="LuCI.form.FlagValue#validate"><a href="LuCI.form.FlagValue.html#validate">validate</a></li>
851
852 <li data-name="LuCI.form.FlagValue#width"><a href="LuCI.form.FlagValue.html#width">width</a></li>
853
854 </ul>
855 <ul class="typedefs itemMembers">
856
857 </ul>
858 <ul class="typedefs itemMembers">
859
860 </ul>
861 <ul class="methods itemMembers">
862
863 <span class="subtitle">Methods</span>
864
865 <li data-name="LuCI.form.FlagValue#append"><a href="LuCI.form.FlagValue.html#append">append</a></li>
866
867 <li data-name="LuCI.form.FlagValue#cbid"><a href="LuCI.form.FlagValue.html#cbid">cbid</a></li>
868
869 <li data-name="LuCI.form.FlagValue#cfgvalue"><a href="LuCI.form.FlagValue.html#cfgvalue">cfgvalue</a></li>
870
871 <li data-name="LuCI.form.FlagValue#depends"><a href="LuCI.form.FlagValue.html#depends">depends</a></li>
872
873 <li data-name="LuCI.form.FlagValue#formvalue"><a href="LuCI.form.FlagValue.html#formvalue">formvalue</a></li>
874
875 <li data-name="LuCI.form.FlagValue#getUIElement"><a href="LuCI.form.FlagValue.html#getUIElement">getUIElement</a></li>
876
877 <li data-name="LuCI.form.FlagValue#getValidationError"><a href="LuCI.form.FlagValue.html#getValidationError">getValidationError</a></li>
878
879 <li data-name="LuCI.form.FlagValue#isActive"><a href="LuCI.form.FlagValue.html#isActive">isActive</a></li>
880
881 <li data-name="LuCI.form.FlagValue#isValid"><a href="LuCI.form.FlagValue.html#isValid">isValid</a></li>
882
883 <li data-name="LuCI.form.FlagValue#load"><a href="LuCI.form.FlagValue.html#load">load</a></li>
884
885 <li data-name="LuCI.form.FlagValue#parse"><a href="LuCI.form.FlagValue.html#parse">parse</a></li>
886
887 <li data-name="LuCI.form.FlagValue#remove"><a href="LuCI.form.FlagValue.html#remove">remove</a></li>
888
889 <li data-name="LuCI.form.FlagValue#stripTags"><a href="LuCI.form.FlagValue.html#stripTags">stripTags</a></li>
890
891 <li data-name="LuCI.form.FlagValue#textvalue"><a href="LuCI.form.FlagValue.html#textvalue">textvalue</a></li>
892
893 <li data-name="LuCI.form.FlagValue#titleFn"><a href="LuCI.form.FlagValue.html#titleFn">titleFn</a></li>
894
895 <li data-name="LuCI.form.FlagValue#value"><a href="LuCI.form.FlagValue.html#value">value</a></li>
896
897 <li data-name="LuCI.form.FlagValue#write"><a href="LuCI.form.FlagValue.html#write">write</a></li>
898
899 </ul>
900 <ul class="events itemMembers">
901
902 </ul>
903 </li>
904
905 <li class="item" data-name="LuCI.form.GridSection">
906 <span class="title">
907 <a href="LuCI.form.GridSection.html">LuCI.form.GridSection</a>
908
909 </span>
910 <ul class="members itemMembers">
911
912 <span class="subtitle">Members</span>
913
914 <li data-name="LuCI.form.GridSection#addbtntitle"><a href="LuCI.form.GridSection.html#addbtntitle">addbtntitle</a></li>
915
916 <li data-name="LuCI.form.GridSection#addremove"><a href="LuCI.form.GridSection.html#addremove">addremove</a></li>
917
918 <li data-name="LuCI.form.GridSection#anonymous"><a href="LuCI.form.GridSection.html#anonymous">anonymous</a></li>
919
920 <li data-name="LuCI.form.GridSection#extedit"><a href="LuCI.form.GridSection.html#extedit">extedit</a></li>
921
922 <li data-name="LuCI.form.GridSection#max_cols"><a href="LuCI.form.GridSection.html#max_cols">max_cols</a></li>
923
924 <li data-name="LuCI.form.GridSection#modaltitle"><a href="LuCI.form.GridSection.html#modaltitle">modaltitle</a></li>
925
926 <li data-name="LuCI.form.GridSection#nodescriptions"><a href="LuCI.form.GridSection.html#nodescriptions">nodescriptions</a></li>
927
928 <li data-name="LuCI.form.GridSection#parentoption"><a href="LuCI.form.GridSection.html#parentoption">parentoption</a></li>
929
930 <li data-name="LuCI.form.GridSection#rowcolors"><a href="LuCI.form.GridSection.html#rowcolors">rowcolors</a></li>
931
932 <li data-name="LuCI.form.GridSection#sectiontitle"><a href="LuCI.form.GridSection.html#sectiontitle">sectiontitle</a></li>
933
934 <li data-name="LuCI.form.GridSection#sortable"><a href="LuCI.form.GridSection.html#sortable">sortable</a></li>
935
936 <li data-name="LuCI.form.GridSection#tabbed"><a href="LuCI.form.GridSection.html#tabbed">tabbed</a></li>
937
938 <li data-name="LuCI.form.GridSection#tooltip"><a href="LuCI.form.GridSection.html#tooltip">tooltip</a></li>
939
940 <li data-name="LuCI.form.GridSection#tooltipicon"><a href="LuCI.form.GridSection.html#tooltipicon">tooltipicon</a></li>
941
942 <li data-name="LuCI.form.GridSection#uciconfig"><a href="LuCI.form.GridSection.html#uciconfig">uciconfig</a></li>
943
944 </ul>
945 <ul class="typedefs itemMembers">
946
947 </ul>
948 <ul class="typedefs itemMembers">
949
950 </ul>
951 <ul class="methods itemMembers">
952
953 <span class="subtitle">Methods</span>
954
955 <li data-name="LuCI.form.GridSection#addModalOptions"><a href="LuCI.form.GridSection.html#addModalOptions">addModalOptions</a></li>
956
957 <li data-name="LuCI.form.GridSection#append"><a href="LuCI.form.GridSection.html#append">append</a></li>
958
959 <li data-name="LuCI.form.GridSection#cfgvalue"><a href="LuCI.form.GridSection.html#cfgvalue">cfgvalue</a></li>
960
961 <li data-name="LuCI.form.GridSection#filter"><a href="LuCI.form.GridSection.html#filter">filter</a></li>
962
963 <li data-name="LuCI.form.GridSection#formvalue"><a href="LuCI.form.GridSection.html#formvalue">formvalue</a></li>
964
965 <li data-name="LuCI.form.GridSection#getOption"><a href="LuCI.form.GridSection.html#getOption">getOption</a></li>
966
967 <li data-name="LuCI.form.GridSection#getUIElement"><a href="LuCI.form.GridSection.html#getUIElement">getUIElement</a></li>
968
969 <li data-name="LuCI.form.GridSection#load"><a href="LuCI.form.GridSection.html#load">load</a></li>
970
971 <li data-name="LuCI.form.GridSection#option"><a href="LuCI.form.GridSection.html#option">option</a></li>
972
973 <li data-name="LuCI.form.GridSection#parse"><a href="LuCI.form.GridSection.html#parse">parse</a></li>
974
975 <li data-name="LuCI.form.GridSection#stripTags"><a href="LuCI.form.GridSection.html#stripTags">stripTags</a></li>
976
977 <li data-name="LuCI.form.GridSection#tab"><a href="LuCI.form.GridSection.html#tab">tab</a></li>
978
979 <li data-name="LuCI.form.GridSection#taboption"><a href="LuCI.form.GridSection.html#taboption">taboption</a></li>
980
981 <li data-name="LuCI.form.GridSection#titleFn"><a href="LuCI.form.GridSection.html#titleFn">titleFn</a></li>
982
983 </ul>
984 <ul class="events itemMembers">
985
986 </ul>
987 </li>
988
989 <li class="item" data-name="LuCI.form.HiddenValue">
990 <span class="title">
991 <a href="LuCI.form.HiddenValue.html">LuCI.form.HiddenValue</a>
992
993 </span>
994 <ul class="members itemMembers">
995
996 <span class="subtitle">Members</span>
997
998 <li data-name="LuCI.form.HiddenValue#datatype"><a href="LuCI.form.HiddenValue.html#datatype">datatype</a></li>
999
1000 <li data-name="LuCI.form.HiddenValue#default"><a href="LuCI.form.HiddenValue.html#default">default</a></li>
1001
1002 <li data-name="LuCI.form.HiddenValue#editable"><a href="LuCI.form.HiddenValue.html#editable">editable</a></li>
1003
1004 <li data-name="LuCI.form.HiddenValue#modalonly"><a href="LuCI.form.HiddenValue.html#modalonly">modalonly</a></li>
1005
1006 <li data-name="LuCI.form.HiddenValue#onchange"><a href="LuCI.form.HiddenValue.html#onchange">onchange</a></li>
1007
1008 <li data-name="LuCI.form.HiddenValue#optional"><a href="LuCI.form.HiddenValue.html#optional">optional</a></li>
1009
1010 <li data-name="LuCI.form.HiddenValue#password"><a href="LuCI.form.HiddenValue.html#password">password</a></li>
1011
1012 <li data-name="LuCI.form.HiddenValue#placeholder"><a href="LuCI.form.HiddenValue.html#placeholder">placeholder</a></li>
1013
1014 <li data-name="LuCI.form.HiddenValue#readonly"><a href="LuCI.form.HiddenValue.html#readonly">readonly</a></li>
1015
1016 <li data-name="LuCI.form.HiddenValue#retain"><a href="LuCI.form.HiddenValue.html#retain">retain</a></li>
1017
1018 <li data-name="LuCI.form.HiddenValue#rmempty"><a href="LuCI.form.HiddenValue.html#rmempty">rmempty</a></li>
1019
1020 <li data-name="LuCI.form.HiddenValue#uciconfig"><a href="LuCI.form.HiddenValue.html#uciconfig">uciconfig</a></li>
1021
1022 <li data-name="LuCI.form.HiddenValue#ucioption"><a href="LuCI.form.HiddenValue.html#ucioption">ucioption</a></li>
1023
1024 <li data-name="LuCI.form.HiddenValue#ucisection"><a href="LuCI.form.HiddenValue.html#ucisection">ucisection</a></li>
1025
1026 <li data-name="LuCI.form.HiddenValue#validate"><a href="LuCI.form.HiddenValue.html#validate">validate</a></li>
1027
1028 <li data-name="LuCI.form.HiddenValue#width"><a href="LuCI.form.HiddenValue.html#width">width</a></li>
1029
1030 </ul>
1031 <ul class="typedefs itemMembers">
1032
1033 </ul>
1034 <ul class="typedefs itemMembers">
1035
1036 </ul>
1037 <ul class="methods itemMembers">
1038
1039 <span class="subtitle">Methods</span>
1040
1041 <li data-name="LuCI.form.HiddenValue#append"><a href="LuCI.form.HiddenValue.html#append">append</a></li>
1042
1043 <li data-name="LuCI.form.HiddenValue#cbid"><a href="LuCI.form.HiddenValue.html#cbid">cbid</a></li>
1044
1045 <li data-name="LuCI.form.HiddenValue#cfgvalue"><a href="LuCI.form.HiddenValue.html#cfgvalue">cfgvalue</a></li>
1046
1047 <li data-name="LuCI.form.HiddenValue#depends"><a href="LuCI.form.HiddenValue.html#depends">depends</a></li>
1048
1049 <li data-name="LuCI.form.HiddenValue#formvalue"><a href="LuCI.form.HiddenValue.html#formvalue">formvalue</a></li>
1050
1051 <li data-name="LuCI.form.HiddenValue#getUIElement"><a href="LuCI.form.HiddenValue.html#getUIElement">getUIElement</a></li>
1052
1053 <li data-name="LuCI.form.HiddenValue#getValidationError"><a href="LuCI.form.HiddenValue.html#getValidationError">getValidationError</a></li>
1054
1055 <li data-name="LuCI.form.HiddenValue#isActive"><a href="LuCI.form.HiddenValue.html#isActive">isActive</a></li>
1056
1057 <li data-name="LuCI.form.HiddenValue#isValid"><a href="LuCI.form.HiddenValue.html#isValid">isValid</a></li>
1058
1059 <li data-name="LuCI.form.HiddenValue#load"><a href="LuCI.form.HiddenValue.html#load">load</a></li>
1060
1061 <li data-name="LuCI.form.HiddenValue#parse"><a href="LuCI.form.HiddenValue.html#parse">parse</a></li>
1062
1063 <li data-name="LuCI.form.HiddenValue#remove"><a href="LuCI.form.HiddenValue.html#remove">remove</a></li>
1064
1065 <li data-name="LuCI.form.HiddenValue#stripTags"><a href="LuCI.form.HiddenValue.html#stripTags">stripTags</a></li>
1066
1067 <li data-name="LuCI.form.HiddenValue#textvalue"><a href="LuCI.form.HiddenValue.html#textvalue">textvalue</a></li>
1068
1069 <li data-name="LuCI.form.HiddenValue#titleFn"><a href="LuCI.form.HiddenValue.html#titleFn">titleFn</a></li>
1070
1071 <li data-name="LuCI.form.HiddenValue#value"><a href="LuCI.form.HiddenValue.html#value">value</a></li>
1072
1073 <li data-name="LuCI.form.HiddenValue#write"><a href="LuCI.form.HiddenValue.html#write">write</a></li>
1074
1075 </ul>
1076 <ul class="events itemMembers">
1077
1078 </ul>
1079 </li>
1080
1081 <li class="item" data-name="LuCI.form.JSONMap">
1082 <span class="title">
1083 <a href="LuCI.form.JSONMap.html">LuCI.form.JSONMap</a>
1084
1085 </span>
1086 <ul class="members itemMembers">
1087
1088 <span class="subtitle">Members</span>
1089
1090 <li data-name="LuCI.form.JSONMap#readonly"><a href="LuCI.form.JSONMap.html#readonly">readonly</a></li>
1091
1092 </ul>
1093 <ul class="typedefs itemMembers">
1094
1095 </ul>
1096 <ul class="typedefs itemMembers">
1097
1098 </ul>
1099 <ul class="methods itemMembers">
1100
1101 <span class="subtitle">Methods</span>
1102
1103 <li data-name="LuCI.form.JSONMap#append"><a href="LuCI.form.JSONMap.html#append">append</a></li>
1104
1105 <li data-name="LuCI.form.JSONMap#chain"><a href="LuCI.form.JSONMap.html#chain">chain</a></li>
1106
1107 <li data-name="LuCI.form.JSONMap#findElement"><a href="LuCI.form.JSONMap.html#findElement">findElement</a></li>
1108
1109 <li data-name="LuCI.form.JSONMap#findElements"><a href="LuCI.form.JSONMap.html#findElements">findElements</a></li>
1110
1111 <li data-name="LuCI.form.JSONMap#load"><a href="LuCI.form.JSONMap.html#load">load</a></li>
1112
1113 <li data-name="LuCI.form.JSONMap#lookupOption"><a href="LuCI.form.JSONMap.html#lookupOption">lookupOption</a></li>
1114
1115 <li data-name="LuCI.form.JSONMap#parse"><a href="LuCI.form.JSONMap.html#parse">parse</a></li>
1116
1117 <li data-name="LuCI.form.JSONMap#render"><a href="LuCI.form.JSONMap.html#render">render</a></li>
1118
1119 <li data-name="LuCI.form.JSONMap#reset"><a href="LuCI.form.JSONMap.html#reset">reset</a></li>
1120
1121 <li data-name="LuCI.form.JSONMap#save"><a href="LuCI.form.JSONMap.html#save">save</a></li>
1122
1123 <li data-name="LuCI.form.JSONMap#section"><a href="LuCI.form.JSONMap.html#section">section</a></li>
1124
1125 <li data-name="LuCI.form.JSONMap#stripTags"><a href="LuCI.form.JSONMap.html#stripTags">stripTags</a></li>
1126
1127 <li data-name="LuCI.form.JSONMap#titleFn"><a href="LuCI.form.JSONMap.html#titleFn">titleFn</a></li>
1128
1129 </ul>
1130 <ul class="events itemMembers">
1131
1132 </ul>
1133 </li>
1134
1135 <li class="item" data-name="LuCI.form.ListValue">
1136 <span class="title">
1137 <a href="LuCI.form.ListValue.html">LuCI.form.ListValue</a>
1138
1139 </span>
1140 <ul class="members itemMembers">
1141
1142 <span class="subtitle">Members</span>
1143
1144 <li data-name="LuCI.form.ListValue##orientation"><a href="LuCI.form.ListValue.html#orientation">orientation</a></li>
1145
1146 <li data-name="LuCI.form.ListValue##size"><a href="LuCI.form.ListValue.html#size">size</a></li>
1147
1148 <li data-name="LuCI.form.ListValue##widget"><a href="LuCI.form.ListValue.html#widget">widget</a></li>
1149
1150 <li data-name="LuCI.form.ListValue#datatype"><a href="LuCI.form.ListValue.html#datatype">datatype</a></li>
1151
1152 <li data-name="LuCI.form.ListValue#default"><a href="LuCI.form.ListValue.html#default">default</a></li>
1153
1154 <li data-name="LuCI.form.ListValue#editable"><a href="LuCI.form.ListValue.html#editable">editable</a></li>
1155
1156 <li data-name="LuCI.form.ListValue#modalonly"><a href="LuCI.form.ListValue.html#modalonly">modalonly</a></li>
1157
1158 <li data-name="LuCI.form.ListValue#onchange"><a href="LuCI.form.ListValue.html#onchange">onchange</a></li>
1159
1160 <li data-name="LuCI.form.ListValue#optional"><a href="LuCI.form.ListValue.html#optional">optional</a></li>
1161
1162 <li data-name="LuCI.form.ListValue#password"><a href="LuCI.form.ListValue.html#password">password</a></li>
1163
1164 <li data-name="LuCI.form.ListValue#placeholder"><a href="LuCI.form.ListValue.html#placeholder">placeholder</a></li>
1165
1166 <li data-name="LuCI.form.ListValue#readonly"><a href="LuCI.form.ListValue.html#readonly">readonly</a></li>
1167
1168 <li data-name="LuCI.form.ListValue#retain"><a href="LuCI.form.ListValue.html#retain">retain</a></li>
1169
1170 <li data-name="LuCI.form.ListValue#rmempty"><a href="LuCI.form.ListValue.html#rmempty">rmempty</a></li>
1171
1172 <li data-name="LuCI.form.ListValue#uciconfig"><a href="LuCI.form.ListValue.html#uciconfig">uciconfig</a></li>
1173
1174 <li data-name="LuCI.form.ListValue#ucioption"><a href="LuCI.form.ListValue.html#ucioption">ucioption</a></li>
1175
1176 <li data-name="LuCI.form.ListValue#ucisection"><a href="LuCI.form.ListValue.html#ucisection">ucisection</a></li>
1177
1178 <li data-name="LuCI.form.ListValue#validate"><a href="LuCI.form.ListValue.html#validate">validate</a></li>
1179
1180 <li data-name="LuCI.form.ListValue#width"><a href="LuCI.form.ListValue.html#width">width</a></li>
1181
1182 </ul>
1183 <ul class="typedefs itemMembers">
1184
1185 </ul>
1186 <ul class="typedefs itemMembers">
1187
1188 </ul>
1189 <ul class="methods itemMembers">
1190
1191 <span class="subtitle">Methods</span>
1192
1193 <li data-name="LuCI.form.ListValue#append"><a href="LuCI.form.ListValue.html#append">append</a></li>
1194
1195 <li data-name="LuCI.form.ListValue#cbid"><a href="LuCI.form.ListValue.html#cbid">cbid</a></li>
1196
1197 <li data-name="LuCI.form.ListValue#cfgvalue"><a href="LuCI.form.ListValue.html#cfgvalue">cfgvalue</a></li>
1198
1199 <li data-name="LuCI.form.ListValue#depends"><a href="LuCI.form.ListValue.html#depends">depends</a></li>
1200
1201 <li data-name="LuCI.form.ListValue#formvalue"><a href="LuCI.form.ListValue.html#formvalue">formvalue</a></li>
1202
1203 <li data-name="LuCI.form.ListValue#getUIElement"><a href="LuCI.form.ListValue.html#getUIElement">getUIElement</a></li>
1204
1205 <li data-name="LuCI.form.ListValue#getValidationError"><a href="LuCI.form.ListValue.html#getValidationError">getValidationError</a></li>
1206
1207 <li data-name="LuCI.form.ListValue#isActive"><a href="LuCI.form.ListValue.html#isActive">isActive</a></li>
1208
1209 <li data-name="LuCI.form.ListValue#isValid"><a href="LuCI.form.ListValue.html#isValid">isValid</a></li>
1210
1211 <li data-name="LuCI.form.ListValue#load"><a href="LuCI.form.ListValue.html#load">load</a></li>
1212
1213 <li data-name="LuCI.form.ListValue#parse"><a href="LuCI.form.ListValue.html#parse">parse</a></li>
1214
1215 <li data-name="LuCI.form.ListValue#remove"><a href="LuCI.form.ListValue.html#remove">remove</a></li>
1216
1217 <li data-name="LuCI.form.ListValue#stripTags"><a href="LuCI.form.ListValue.html#stripTags">stripTags</a></li>
1218
1219 <li data-name="LuCI.form.ListValue#textvalue"><a href="LuCI.form.ListValue.html#textvalue">textvalue</a></li>
1220
1221 <li data-name="LuCI.form.ListValue#titleFn"><a href="LuCI.form.ListValue.html#titleFn">titleFn</a></li>
1222
1223 <li data-name="LuCI.form.ListValue#value"><a href="LuCI.form.ListValue.html#value">value</a></li>
1224
1225 <li data-name="LuCI.form.ListValue#write"><a href="LuCI.form.ListValue.html#write">write</a></li>
1226
1227 </ul>
1228 <ul class="events itemMembers">
1229
1230 </ul>
1231 </li>
1232
1233 <li class="item" data-name="LuCI.form.Map">
1234 <span class="title">
1235 <a href="LuCI.form.Map.html">LuCI.form.Map</a>
1236
1237 </span>
1238 <ul class="members itemMembers">
1239
1240 <span class="subtitle">Members</span>
1241
1242 <li data-name="LuCI.form.Map##readonly"><a href="LuCI.form.Map.html#readonly">readonly</a></li>
1243
1244 </ul>
1245 <ul class="typedefs itemMembers">
1246
1247 </ul>
1248 <ul class="typedefs itemMembers">
1249
1250 </ul>
1251 <ul class="methods itemMembers">
1252
1253 <span class="subtitle">Methods</span>
1254
1255 <li data-name="LuCI.form.Map#append"><a href="LuCI.form.Map.html#append">append</a></li>
1256
1257 <li data-name="LuCI.form.Map#chain"><a href="LuCI.form.Map.html#chain">chain</a></li>
1258
1259 <li data-name="LuCI.form.Map#findElement"><a href="LuCI.form.Map.html#findElement">findElement</a></li>
1260
1261 <li data-name="LuCI.form.Map#findElements"><a href="LuCI.form.Map.html#findElements">findElements</a></li>
1262
1263 <li data-name="LuCI.form.Map#load"><a href="LuCI.form.Map.html#load">load</a></li>
1264
1265 <li data-name="LuCI.form.Map#lookupOption"><a href="LuCI.form.Map.html#lookupOption">lookupOption</a></li>
1266
1267 <li data-name="LuCI.form.Map#parse"><a href="LuCI.form.Map.html#parse">parse</a></li>
1268
1269 <li data-name="LuCI.form.Map#render"><a href="LuCI.form.Map.html#render">render</a></li>
1270
1271 <li data-name="LuCI.form.Map#reset"><a href="LuCI.form.Map.html#reset">reset</a></li>
1272
1273 <li data-name="LuCI.form.Map#save"><a href="LuCI.form.Map.html#save">save</a></li>
1274
1275 <li data-name="LuCI.form.Map#section"><a href="LuCI.form.Map.html#section">section</a></li>
1276
1277 <li data-name="LuCI.form.Map#stripTags"><a href="LuCI.form.Map.html#stripTags">stripTags</a></li>
1278
1279 <li data-name="LuCI.form.Map#titleFn"><a href="LuCI.form.Map.html#titleFn">titleFn</a></li>
1280
1281 </ul>
1282 <ul class="events itemMembers">
1283
1284 </ul>
1285 </li>
1286
1287 <li class="item" data-name="LuCI.form.MultiValue">
1288 <span class="title">
1289 <a href="LuCI.form.MultiValue.html">LuCI.form.MultiValue</a>
1290
1291 </span>
1292 <ul class="members itemMembers">
1293
1294 <span class="subtitle">Members</span>
1295
1296 <li data-name="LuCI.form.MultiValue##display_size"><a href="LuCI.form.MultiValue.html#display_size">display_size</a></li>
1297
1298 <li data-name="LuCI.form.MultiValue##dropdown_size"><a href="LuCI.form.MultiValue.html#dropdown_size">dropdown_size</a></li>
1299
1300 <li data-name="LuCI.form.MultiValue#datatype"><a href="LuCI.form.MultiValue.html#datatype">datatype</a></li>
1301
1302 <li data-name="LuCI.form.MultiValue#default"><a href="LuCI.form.MultiValue.html#default">default</a></li>
1303
1304 <li data-name="LuCI.form.MultiValue#editable"><a href="LuCI.form.MultiValue.html#editable">editable</a></li>
1305
1306 <li data-name="LuCI.form.MultiValue#modalonly"><a href="LuCI.form.MultiValue.html#modalonly">modalonly</a></li>
1307
1308 <li data-name="LuCI.form.MultiValue#onchange"><a href="LuCI.form.MultiValue.html#onchange">onchange</a></li>
1309
1310 <li data-name="LuCI.form.MultiValue#optional"><a href="LuCI.form.MultiValue.html#optional">optional</a></li>
1311
1312 <li data-name="LuCI.form.MultiValue#password"><a href="LuCI.form.MultiValue.html#password">password</a></li>
1313
1314 <li data-name="LuCI.form.MultiValue#placeholder"><a href="LuCI.form.MultiValue.html#placeholder">placeholder</a></li>
1315
1316 <li data-name="LuCI.form.MultiValue#readonly"><a href="LuCI.form.MultiValue.html#readonly">readonly</a></li>
1317
1318 <li data-name="LuCI.form.MultiValue#retain"><a href="LuCI.form.MultiValue.html#retain">retain</a></li>
1319
1320 <li data-name="LuCI.form.MultiValue#rmempty"><a href="LuCI.form.MultiValue.html#rmempty">rmempty</a></li>
1321
1322 <li data-name="LuCI.form.MultiValue#uciconfig"><a href="LuCI.form.MultiValue.html#uciconfig">uciconfig</a></li>
1323
1324 <li data-name="LuCI.form.MultiValue#ucioption"><a href="LuCI.form.MultiValue.html#ucioption">ucioption</a></li>
1325
1326 <li data-name="LuCI.form.MultiValue#ucisection"><a href="LuCI.form.MultiValue.html#ucisection">ucisection</a></li>
1327
1328 <li data-name="LuCI.form.MultiValue#validate"><a href="LuCI.form.MultiValue.html#validate">validate</a></li>
1329
1330 <li data-name="LuCI.form.MultiValue#width"><a href="LuCI.form.MultiValue.html#width">width</a></li>
1331
1332 </ul>
1333 <ul class="typedefs itemMembers">
1334
1335 </ul>
1336 <ul class="typedefs itemMembers">
1337
1338 </ul>
1339 <ul class="methods itemMembers">
1340
1341 <span class="subtitle">Methods</span>
1342
1343 <li data-name="LuCI.form.MultiValue#append"><a href="LuCI.form.MultiValue.html#append">append</a></li>
1344
1345 <li data-name="LuCI.form.MultiValue#cbid"><a href="LuCI.form.MultiValue.html#cbid">cbid</a></li>
1346
1347 <li data-name="LuCI.form.MultiValue#cfgvalue"><a href="LuCI.form.MultiValue.html#cfgvalue">cfgvalue</a></li>
1348
1349 <li data-name="LuCI.form.MultiValue#depends"><a href="LuCI.form.MultiValue.html#depends">depends</a></li>
1350
1351 <li data-name="LuCI.form.MultiValue#formvalue"><a href="LuCI.form.MultiValue.html#formvalue">formvalue</a></li>
1352
1353 <li data-name="LuCI.form.MultiValue#getUIElement"><a href="LuCI.form.MultiValue.html#getUIElement">getUIElement</a></li>
1354
1355 <li data-name="LuCI.form.MultiValue#getValidationError"><a href="LuCI.form.MultiValue.html#getValidationError">getValidationError</a></li>
1356
1357 <li data-name="LuCI.form.MultiValue#isActive"><a href="LuCI.form.MultiValue.html#isActive">isActive</a></li>
1358
1359 <li data-name="LuCI.form.MultiValue#isValid"><a href="LuCI.form.MultiValue.html#isValid">isValid</a></li>
1360
1361 <li data-name="LuCI.form.MultiValue#load"><a href="LuCI.form.MultiValue.html#load">load</a></li>
1362
1363 <li data-name="LuCI.form.MultiValue#parse"><a href="LuCI.form.MultiValue.html#parse">parse</a></li>
1364
1365 <li data-name="LuCI.form.MultiValue#remove"><a href="LuCI.form.MultiValue.html#remove">remove</a></li>
1366
1367 <li data-name="LuCI.form.MultiValue#stripTags"><a href="LuCI.form.MultiValue.html#stripTags">stripTags</a></li>
1368
1369 <li data-name="LuCI.form.MultiValue#textvalue"><a href="LuCI.form.MultiValue.html#textvalue">textvalue</a></li>
1370
1371 <li data-name="LuCI.form.MultiValue#titleFn"><a href="LuCI.form.MultiValue.html#titleFn">titleFn</a></li>
1372
1373 <li data-name="LuCI.form.MultiValue#value"><a href="LuCI.form.MultiValue.html#value">value</a></li>
1374
1375 <li data-name="LuCI.form.MultiValue#write"><a href="LuCI.form.MultiValue.html#write">write</a></li>
1376
1377 </ul>
1378 <ul class="events itemMembers">
1379
1380 </ul>
1381 </li>
1382
1383 <li class="item" data-name="LuCI.form.NamedSection">
1384 <span class="title">
1385 <a href="LuCI.form.NamedSection.html">LuCI.form.NamedSection</a>
1386
1387 </span>
1388 <ul class="members itemMembers">
1389
1390 <span class="subtitle">Members</span>
1391
1392 <li data-name="LuCI.form.NamedSection##addremove"><a href="LuCI.form.NamedSection.html#addremove">addremove</a></li>
1393
1394 <li data-name="LuCI.form.NamedSection##uciconfig"><a href="LuCI.form.NamedSection.html#uciconfig">uciconfig</a></li>
1395
1396 <li data-name="LuCI.form.NamedSection#parentoption"><a href="LuCI.form.NamedSection.html#parentoption">parentoption</a></li>
1397
1398 </ul>
1399 <ul class="typedefs itemMembers">
1400
1401 </ul>
1402 <ul class="typedefs itemMembers">
1403
1404 </ul>
1405 <ul class="methods itemMembers">
1406
1407 <span class="subtitle">Methods</span>
1408
1409 <li data-name="LuCI.form.NamedSection#append"><a href="LuCI.form.NamedSection.html#append">append</a></li>
1410
1411 <li data-name="LuCI.form.NamedSection#cfgsections"><a href="LuCI.form.NamedSection.html#cfgsections">cfgsections</a></li>
1412
1413 <li data-name="LuCI.form.NamedSection#cfgvalue"><a href="LuCI.form.NamedSection.html#cfgvalue">cfgvalue</a></li>
1414
1415 <li data-name="LuCI.form.NamedSection#filter"><a href="LuCI.form.NamedSection.html#filter">filter</a></li>
1416
1417 <li data-name="LuCI.form.NamedSection#formvalue"><a href="LuCI.form.NamedSection.html#formvalue">formvalue</a></li>
1418
1419 <li data-name="LuCI.form.NamedSection#getOption"><a href="LuCI.form.NamedSection.html#getOption">getOption</a></li>
1420
1421 <li data-name="LuCI.form.NamedSection#getUIElement"><a href="LuCI.form.NamedSection.html#getUIElement">getUIElement</a></li>
1422
1423 <li data-name="LuCI.form.NamedSection#load"><a href="LuCI.form.NamedSection.html#load">load</a></li>
1424
1425 <li data-name="LuCI.form.NamedSection#option"><a href="LuCI.form.NamedSection.html#option">option</a></li>
1426
1427 <li data-name="LuCI.form.NamedSection#parse"><a href="LuCI.form.NamedSection.html#parse">parse</a></li>
1428
1429 <li data-name="LuCI.form.NamedSection#render"><a href="LuCI.form.NamedSection.html#render">render</a></li>
1430
1431 <li data-name="LuCI.form.NamedSection#stripTags"><a href="LuCI.form.NamedSection.html#stripTags">stripTags</a></li>
1432
1433 <li data-name="LuCI.form.NamedSection#tab"><a href="LuCI.form.NamedSection.html#tab">tab</a></li>
1434
1435 <li data-name="LuCI.form.NamedSection#taboption"><a href="LuCI.form.NamedSection.html#taboption">taboption</a></li>
1436
1437 <li data-name="LuCI.form.NamedSection#titleFn"><a href="LuCI.form.NamedSection.html#titleFn">titleFn</a></li>
1438
1439 </ul>
1440 <ul class="events itemMembers">
1441
1442 </ul>
1443 </li>
1444
1445 <li class="item" data-name="LuCI.form.SectionValue">
1446 <span class="title">
1447 <a href="LuCI.form.SectionValue.html">LuCI.form.SectionValue</a>
1448
1449 </span>
1450 <ul class="members itemMembers">
1451
1452 <span class="subtitle">Members</span>
1453
1454 <li data-name="LuCI.form.SectionValue##subsection"><a href="LuCI.form.SectionValue.html#subsection">subsection</a></li>
1455
1456 <li data-name="LuCI.form.SectionValue#datatype"><a href="LuCI.form.SectionValue.html#datatype">datatype</a></li>
1457
1458 <li data-name="LuCI.form.SectionValue#default"><a href="LuCI.form.SectionValue.html#default">default</a></li>
1459
1460 <li data-name="LuCI.form.SectionValue#editable"><a href="LuCI.form.SectionValue.html#editable">editable</a></li>
1461
1462 <li data-name="LuCI.form.SectionValue#modalonly"><a href="LuCI.form.SectionValue.html#modalonly">modalonly</a></li>
1463
1464 <li data-name="LuCI.form.SectionValue#onchange"><a href="LuCI.form.SectionValue.html#onchange">onchange</a></li>
1465
1466 <li data-name="LuCI.form.SectionValue#optional"><a href="LuCI.form.SectionValue.html#optional">optional</a></li>
1467
1468 <li data-name="LuCI.form.SectionValue#password"><a href="LuCI.form.SectionValue.html#password">password</a></li>
1469
1470 <li data-name="LuCI.form.SectionValue#placeholder"><a href="LuCI.form.SectionValue.html#placeholder">placeholder</a></li>
1471
1472 <li data-name="LuCI.form.SectionValue#readonly"><a href="LuCI.form.SectionValue.html#readonly">readonly</a></li>
1473
1474 <li data-name="LuCI.form.SectionValue#retain"><a href="LuCI.form.SectionValue.html#retain">retain</a></li>
1475
1476 <li data-name="LuCI.form.SectionValue#rmempty"><a href="LuCI.form.SectionValue.html#rmempty">rmempty</a></li>
1477
1478 <li data-name="LuCI.form.SectionValue#uciconfig"><a href="LuCI.form.SectionValue.html#uciconfig">uciconfig</a></li>
1479
1480 <li data-name="LuCI.form.SectionValue#ucioption"><a href="LuCI.form.SectionValue.html#ucioption">ucioption</a></li>
1481
1482 <li data-name="LuCI.form.SectionValue#ucisection"><a href="LuCI.form.SectionValue.html#ucisection">ucisection</a></li>
1483
1484 <li data-name="LuCI.form.SectionValue#validate"><a href="LuCI.form.SectionValue.html#validate">validate</a></li>
1485
1486 <li data-name="LuCI.form.SectionValue#width"><a href="LuCI.form.SectionValue.html#width">width</a></li>
1487
1488 </ul>
1489 <ul class="typedefs itemMembers">
1490
1491 </ul>
1492 <ul class="typedefs itemMembers">
1493
1494 </ul>
1495 <ul class="methods itemMembers">
1496
1497 <span class="subtitle">Methods</span>
1498
1499 <li data-name="LuCI.form.SectionValue#append"><a href="LuCI.form.SectionValue.html#append">append</a></li>
1500
1501 <li data-name="LuCI.form.SectionValue#cbid"><a href="LuCI.form.SectionValue.html#cbid">cbid</a></li>
1502
1503 <li data-name="LuCI.form.SectionValue#cfgvalue"><a href="LuCI.form.SectionValue.html#cfgvalue">cfgvalue</a></li>
1504
1505 <li data-name="LuCI.form.SectionValue#depends"><a href="LuCI.form.SectionValue.html#depends">depends</a></li>
1506
1507 <li data-name="LuCI.form.SectionValue#formvalue"><a href="LuCI.form.SectionValue.html#formvalue">formvalue</a></li>
1508
1509 <li data-name="LuCI.form.SectionValue#getUIElement"><a href="LuCI.form.SectionValue.html#getUIElement">getUIElement</a></li>
1510
1511 <li data-name="LuCI.form.SectionValue#getValidationError"><a href="LuCI.form.SectionValue.html#getValidationError">getValidationError</a></li>
1512
1513 <li data-name="LuCI.form.SectionValue#isActive"><a href="LuCI.form.SectionValue.html#isActive">isActive</a></li>
1514
1515 <li data-name="LuCI.form.SectionValue#isValid"><a href="LuCI.form.SectionValue.html#isValid">isValid</a></li>
1516
1517 <li data-name="LuCI.form.SectionValue#load"><a href="LuCI.form.SectionValue.html#load">load</a></li>
1518
1519 <li data-name="LuCI.form.SectionValue#parse"><a href="LuCI.form.SectionValue.html#parse">parse</a></li>
1520
1521 <li data-name="LuCI.form.SectionValue#remove"><a href="LuCI.form.SectionValue.html#remove">remove</a></li>
1522
1523 <li data-name="LuCI.form.SectionValue#stripTags"><a href="LuCI.form.SectionValue.html#stripTags">stripTags</a></li>
1524
1525 <li data-name="LuCI.form.SectionValue#textvalue"><a href="LuCI.form.SectionValue.html#textvalue">textvalue</a></li>
1526
1527 <li data-name="LuCI.form.SectionValue#titleFn"><a href="LuCI.form.SectionValue.html#titleFn">titleFn</a></li>
1528
1529 <li data-name="LuCI.form.SectionValue#value"><a href="LuCI.form.SectionValue.html#value">value</a></li>
1530
1531 <li data-name="LuCI.form.SectionValue#write"><a href="LuCI.form.SectionValue.html#write">write</a></li>
1532
1533 </ul>
1534 <ul class="events itemMembers">
1535
1536 </ul>
1537 </li>
1538
1539 <li class="item" data-name="LuCI.form.TableSection">
1540 <span class="title">
1541 <a href="LuCI.form.TableSection.html">LuCI.form.TableSection</a>
1542
1543 </span>
1544 <ul class="members itemMembers">
1545
1546 <span class="subtitle">Members</span>
1547
1548 <li data-name="LuCI.form.TableSection##addbtntitle"><a href="LuCI.form.TableSection.html#addbtntitle">addbtntitle</a></li>
1549
1550 <li data-name="LuCI.form.TableSection##addremove"><a href="LuCI.form.TableSection.html#addremove">addremove</a></li>
1551
1552 <li data-name="LuCI.form.TableSection##anonymous"><a href="LuCI.form.TableSection.html#anonymous">anonymous</a></li>
1553
1554 <li data-name="LuCI.form.TableSection##extedit"><a href="LuCI.form.TableSection.html#extedit">extedit</a></li>
1555
1556 <li data-name="LuCI.form.TableSection##max_cols"><a href="LuCI.form.TableSection.html#max_cols">max_cols</a></li>
1557
1558 <li data-name="LuCI.form.TableSection##modaltitle"><a href="LuCI.form.TableSection.html#modaltitle">modaltitle</a></li>
1559
1560 <li data-name="LuCI.form.TableSection##nodescriptions"><a href="LuCI.form.TableSection.html#nodescriptions">nodescriptions</a></li>
1561
1562 <li data-name="LuCI.form.TableSection##rowcolors"><a href="LuCI.form.TableSection.html#rowcolors">rowcolors</a></li>
1563
1564 <li data-name="LuCI.form.TableSection##sectiontitle"><a href="LuCI.form.TableSection.html#sectiontitle">sectiontitle</a></li>
1565
1566 <li data-name="LuCI.form.TableSection##sortable"><a href="LuCI.form.TableSection.html#sortable">sortable</a></li>
1567
1568 <li data-name="LuCI.form.TableSection##uciconfig"><a href="LuCI.form.TableSection.html#uciconfig">uciconfig</a></li>
1569
1570 <li data-name="LuCI.form.TableSection#addbtntitle"><a href="LuCI.form.TableSection.html#addbtntitle">addbtntitle</a></li>
1571
1572 <li data-name="LuCI.form.TableSection#addremove"><a href="LuCI.form.TableSection.html#addremove">addremove</a></li>
1573
1574 <li data-name="LuCI.form.TableSection#anonymous"><a href="LuCI.form.TableSection.html#anonymous">anonymous</a></li>
1575
1576 <li data-name="LuCI.form.TableSection#parentoption"><a href="LuCI.form.TableSection.html#parentoption">parentoption</a></li>
1577
1578 <li data-name="LuCI.form.TableSection#tabbed"><a href="LuCI.form.TableSection.html#tabbed">tabbed</a></li>
1579
1580 <li data-name="LuCI.form.TableSection#tooltip"><a href="LuCI.form.TableSection.html#tooltip">tooltip</a></li>
1581
1582 <li data-name="LuCI.form.TableSection#tooltipicon"><a href="LuCI.form.TableSection.html#tooltipicon">tooltipicon</a></li>
1583
1584 <li data-name="LuCI.form.TableSection#uciconfig"><a href="LuCI.form.TableSection.html#uciconfig">uciconfig</a></li>
1585
1586 </ul>
1587 <ul class="typedefs itemMembers">
1588
1589 </ul>
1590 <ul class="typedefs itemMembers">
1591
1592 </ul>
1593 <ul class="methods itemMembers">
1594
1595 <span class="subtitle">Methods</span>
1596
1597 <li data-name="LuCI.form.TableSection#addModalOptions"><a href="LuCI.form.TableSection.html#addModalOptions">addModalOptions</a></li>
1598
1599 <li data-name="LuCI.form.TableSection#append"><a href="LuCI.form.TableSection.html#append">append</a></li>
1600
1601 <li data-name="LuCI.form.TableSection#cfgvalue"><a href="LuCI.form.TableSection.html#cfgvalue">cfgvalue</a></li>
1602
1603 <li data-name="LuCI.form.TableSection#filter"><a href="LuCI.form.TableSection.html#filter">filter</a></li>
1604
1605 <li data-name="LuCI.form.TableSection#formvalue"><a href="LuCI.form.TableSection.html#formvalue">formvalue</a></li>
1606
1607 <li data-name="LuCI.form.TableSection#getOption"><a href="LuCI.form.TableSection.html#getOption">getOption</a></li>
1608
1609 <li data-name="LuCI.form.TableSection#getUIElement"><a href="LuCI.form.TableSection.html#getUIElement">getUIElement</a></li>
1610
1611 <li data-name="LuCI.form.TableSection#load"><a href="LuCI.form.TableSection.html#load">load</a></li>
1612
1613 <li data-name="LuCI.form.TableSection#option"><a href="LuCI.form.TableSection.html#option">option</a></li>
1614
1615 <li data-name="LuCI.form.TableSection#parse"><a href="LuCI.form.TableSection.html#parse">parse</a></li>
1616
1617 <li data-name="LuCI.form.TableSection#stripTags"><a href="LuCI.form.TableSection.html#stripTags">stripTags</a></li>
1618
1619 <li data-name="LuCI.form.TableSection#tab"><a href="LuCI.form.TableSection.html#tab">tab</a></li>
1620
1621 <li data-name="LuCI.form.TableSection#taboption"><a href="LuCI.form.TableSection.html#taboption">taboption</a></li>
1622
1623 <li data-name="LuCI.form.TableSection#titleFn"><a href="LuCI.form.TableSection.html#titleFn">titleFn</a></li>
1624
1625 </ul>
1626 <ul class="events itemMembers">
1627
1628 </ul>
1629 </li>
1630
1631 <li class="item" data-name="LuCI.form.TextValue">
1632 <span class="title">
1633 <a href="LuCI.form.TextValue.html">LuCI.form.TextValue</a>
1634
1635 </span>
1636 <ul class="members itemMembers">
1637
1638 <span class="subtitle">Members</span>
1639
1640 <li data-name="LuCI.form.TextValue##cols"><a href="LuCI.form.TextValue.html#cols">cols</a></li>
1641
1642 <li data-name="LuCI.form.TextValue##monospace"><a href="LuCI.form.TextValue.html#monospace">monospace</a></li>
1643
1644 <li data-name="LuCI.form.TextValue##rows"><a href="LuCI.form.TextValue.html#rows">rows</a></li>
1645
1646 <li data-name="LuCI.form.TextValue##wrap"><a href="LuCI.form.TextValue.html#wrap">wrap</a></li>
1647
1648 <li data-name="LuCI.form.TextValue#datatype"><a href="LuCI.form.TextValue.html#datatype">datatype</a></li>
1649
1650 <li data-name="LuCI.form.TextValue#default"><a href="LuCI.form.TextValue.html#default">default</a></li>
1651
1652 <li data-name="LuCI.form.TextValue#editable"><a href="LuCI.form.TextValue.html#editable">editable</a></li>
1653
1654 <li data-name="LuCI.form.TextValue#modalonly"><a href="LuCI.form.TextValue.html#modalonly">modalonly</a></li>
1655
1656 <li data-name="LuCI.form.TextValue#onchange"><a href="LuCI.form.TextValue.html#onchange">onchange</a></li>
1657
1658 <li data-name="LuCI.form.TextValue#optional"><a href="LuCI.form.TextValue.html#optional">optional</a></li>
1659
1660 <li data-name="LuCI.form.TextValue#password"><a href="LuCI.form.TextValue.html#password">password</a></li>
1661
1662 <li data-name="LuCI.form.TextValue#placeholder"><a href="LuCI.form.TextValue.html#placeholder">placeholder</a></li>
1663
1664 <li data-name="LuCI.form.TextValue#readonly"><a href="LuCI.form.TextValue.html#readonly">readonly</a></li>
1665
1666 <li data-name="LuCI.form.TextValue#retain"><a href="LuCI.form.TextValue.html#retain">retain</a></li>
1667
1668 <li data-name="LuCI.form.TextValue#rmempty"><a href="LuCI.form.TextValue.html#rmempty">rmempty</a></li>
1669
1670 <li data-name="LuCI.form.TextValue#uciconfig"><a href="LuCI.form.TextValue.html#uciconfig">uciconfig</a></li>
1671
1672 <li data-name="LuCI.form.TextValue#ucioption"><a href="LuCI.form.TextValue.html#ucioption">ucioption</a></li>
1673
1674 <li data-name="LuCI.form.TextValue#ucisection"><a href="LuCI.form.TextValue.html#ucisection">ucisection</a></li>
1675
1676 <li data-name="LuCI.form.TextValue#validate"><a href="LuCI.form.TextValue.html#validate">validate</a></li>
1677
1678 <li data-name="LuCI.form.TextValue#width"><a href="LuCI.form.TextValue.html#width">width</a></li>
1679
1680 </ul>
1681 <ul class="typedefs itemMembers">
1682
1683 </ul>
1684 <ul class="typedefs itemMembers">
1685
1686 </ul>
1687 <ul class="methods itemMembers">
1688
1689 <span class="subtitle">Methods</span>
1690
1691 <li data-name="LuCI.form.TextValue#append"><a href="LuCI.form.TextValue.html#append">append</a></li>
1692
1693 <li data-name="LuCI.form.TextValue#cbid"><a href="LuCI.form.TextValue.html#cbid">cbid</a></li>
1694
1695 <li data-name="LuCI.form.TextValue#cfgvalue"><a href="LuCI.form.TextValue.html#cfgvalue">cfgvalue</a></li>
1696
1697 <li data-name="LuCI.form.TextValue#depends"><a href="LuCI.form.TextValue.html#depends">depends</a></li>
1698
1699 <li data-name="LuCI.form.TextValue#formvalue"><a href="LuCI.form.TextValue.html#formvalue">formvalue</a></li>
1700
1701 <li data-name="LuCI.form.TextValue#getUIElement"><a href="LuCI.form.TextValue.html#getUIElement">getUIElement</a></li>
1702
1703 <li data-name="LuCI.form.TextValue#getValidationError"><a href="LuCI.form.TextValue.html#getValidationError">getValidationError</a></li>
1704
1705 <li data-name="LuCI.form.TextValue#isActive"><a href="LuCI.form.TextValue.html#isActive">isActive</a></li>
1706
1707 <li data-name="LuCI.form.TextValue#isValid"><a href="LuCI.form.TextValue.html#isValid">isValid</a></li>
1708
1709 <li data-name="LuCI.form.TextValue#load"><a href="LuCI.form.TextValue.html#load">load</a></li>
1710
1711 <li data-name="LuCI.form.TextValue#parse"><a href="LuCI.form.TextValue.html#parse">parse</a></li>
1712
1713 <li data-name="LuCI.form.TextValue#remove"><a href="LuCI.form.TextValue.html#remove">remove</a></li>
1714
1715 <li data-name="LuCI.form.TextValue#stripTags"><a href="LuCI.form.TextValue.html#stripTags">stripTags</a></li>
1716
1717 <li data-name="LuCI.form.TextValue#textvalue"><a href="LuCI.form.TextValue.html#textvalue">textvalue</a></li>
1718
1719 <li data-name="LuCI.form.TextValue#titleFn"><a href="LuCI.form.TextValue.html#titleFn">titleFn</a></li>
1720
1721 <li data-name="LuCI.form.TextValue#write"><a href="LuCI.form.TextValue.html#write">write</a></li>
1722
1723 </ul>
1724 <ul class="events itemMembers">
1725
1726 </ul>
1727 </li>
1728
1729 <li class="item" data-name="LuCI.form.TypedSection">
1730 <span class="title">
1731 <a href="LuCI.form.TypedSection.html">LuCI.form.TypedSection</a>
1732
1733 </span>
1734 <ul class="members itemMembers">
1735
1736 <span class="subtitle">Members</span>
1737
1738 <li data-name="LuCI.form.TypedSection##addbtntitle"><a href="LuCI.form.TypedSection.html#addbtntitle">addbtntitle</a></li>
1739
1740 <li data-name="LuCI.form.TypedSection##addremove"><a href="LuCI.form.TypedSection.html#addremove">addremove</a></li>
1741
1742 <li data-name="LuCI.form.TypedSection##anonymous"><a href="LuCI.form.TypedSection.html#anonymous">anonymous</a></li>
1743
1744 <li data-name="LuCI.form.TypedSection##tabbed"><a href="LuCI.form.TypedSection.html#tabbed">tabbed</a></li>
1745
1746 <li data-name="LuCI.form.TypedSection##tooltip"><a href="LuCI.form.TypedSection.html#tooltip">tooltip</a></li>
1747
1748 <li data-name="LuCI.form.TypedSection##tooltipicon"><a href="LuCI.form.TypedSection.html#tooltipicon">tooltipicon</a></li>
1749
1750 <li data-name="LuCI.form.TypedSection##uciconfig"><a href="LuCI.form.TypedSection.html#uciconfig">uciconfig</a></li>
1751
1752 <li data-name="LuCI.form.TypedSection#parentoption"><a href="LuCI.form.TypedSection.html#parentoption">parentoption</a></li>
1753
1754 </ul>
1755 <ul class="typedefs itemMembers">
1756
1757 </ul>
1758 <ul class="typedefs itemMembers">
1759
1760 </ul>
1761 <ul class="methods itemMembers">
1762
1763 <span class="subtitle">Methods</span>
1764
1765 <li data-name="LuCI.form.TypedSection#append"><a href="LuCI.form.TypedSection.html#append">append</a></li>
1766
1767 <li data-name="LuCI.form.TypedSection#cfgsections"><a href="LuCI.form.TypedSection.html#cfgsections">cfgsections</a></li>
1768
1769 <li data-name="LuCI.form.TypedSection#cfgvalue"><a href="LuCI.form.TypedSection.html#cfgvalue">cfgvalue</a></li>
1770
1771 <li data-name="LuCI.form.TypedSection#filter"><a href="LuCI.form.TypedSection.html#filter">filter</a></li>
1772
1773 <li data-name="LuCI.form.TypedSection#formvalue"><a href="LuCI.form.TypedSection.html#formvalue">formvalue</a></li>
1774
1775 <li data-name="LuCI.form.TypedSection#getOption"><a href="LuCI.form.TypedSection.html#getOption">getOption</a></li>
1776
1777 <li data-name="LuCI.form.TypedSection#getUIElement"><a href="LuCI.form.TypedSection.html#getUIElement">getUIElement</a></li>
1778
1779 <li data-name="LuCI.form.TypedSection#load"><a href="LuCI.form.TypedSection.html#load">load</a></li>
1780
1781 <li data-name="LuCI.form.TypedSection#option"><a href="LuCI.form.TypedSection.html#option">option</a></li>
1782
1783 <li data-name="LuCI.form.TypedSection#parse"><a href="LuCI.form.TypedSection.html#parse">parse</a></li>
1784
1785 <li data-name="LuCI.form.TypedSection#render"><a href="LuCI.form.TypedSection.html#render">render</a></li>
1786
1787 <li data-name="LuCI.form.TypedSection#stripTags"><a href="LuCI.form.TypedSection.html#stripTags">stripTags</a></li>
1788
1789 <li data-name="LuCI.form.TypedSection#tab"><a href="LuCI.form.TypedSection.html#tab">tab</a></li>
1790
1791 <li data-name="LuCI.form.TypedSection#taboption"><a href="LuCI.form.TypedSection.html#taboption">taboption</a></li>
1792
1793 <li data-name="LuCI.form.TypedSection#titleFn"><a href="LuCI.form.TypedSection.html#titleFn">titleFn</a></li>
1794
1795 </ul>
1796 <ul class="events itemMembers">
1797
1798 </ul>
1799 </li>
1800
1801 <li class="item" data-name="LuCI.form.Value">
1802 <span class="title">
1803 <a href="LuCI.form.Value.html">LuCI.form.Value</a>
1804
1805 </span>
1806 <ul class="members itemMembers">
1807
1808 <span class="subtitle">Members</span>
1809
1810 <li data-name="LuCI.form.Value##password"><a href="LuCI.form.Value.html#password">password</a></li>
1811
1812 <li data-name="LuCI.form.Value##placeholder"><a href="LuCI.form.Value.html#placeholder">placeholder</a></li>
1813
1814 <li data-name="LuCI.form.Value#datatype"><a href="LuCI.form.Value.html#datatype">datatype</a></li>
1815
1816 <li data-name="LuCI.form.Value#default"><a href="LuCI.form.Value.html#default">default</a></li>
1817
1818 <li data-name="LuCI.form.Value#editable"><a href="LuCI.form.Value.html#editable">editable</a></li>
1819
1820 <li data-name="LuCI.form.Value#modalonly"><a href="LuCI.form.Value.html#modalonly">modalonly</a></li>
1821
1822 <li data-name="LuCI.form.Value#onchange"><a href="LuCI.form.Value.html#onchange">onchange</a></li>
1823
1824 <li data-name="LuCI.form.Value#optional"><a href="LuCI.form.Value.html#optional">optional</a></li>
1825
1826 <li data-name="LuCI.form.Value#readonly"><a href="LuCI.form.Value.html#readonly">readonly</a></li>
1827
1828 <li data-name="LuCI.form.Value#retain"><a href="LuCI.form.Value.html#retain">retain</a></li>
1829
1830 <li data-name="LuCI.form.Value#rmempty"><a href="LuCI.form.Value.html#rmempty">rmempty</a></li>
1831
1832 <li data-name="LuCI.form.Value#uciconfig"><a href="LuCI.form.Value.html#uciconfig">uciconfig</a></li>
1833
1834 <li data-name="LuCI.form.Value#ucioption"><a href="LuCI.form.Value.html#ucioption">ucioption</a></li>
1835
1836 <li data-name="LuCI.form.Value#ucisection"><a href="LuCI.form.Value.html#ucisection">ucisection</a></li>
1837
1838 <li data-name="LuCI.form.Value#validate"><a href="LuCI.form.Value.html#validate">validate</a></li>
1839
1840 <li data-name="LuCI.form.Value#width"><a href="LuCI.form.Value.html#width">width</a></li>
1841
1842 </ul>
1843 <ul class="typedefs itemMembers">
1844
1845 </ul>
1846 <ul class="typedefs itemMembers">
1847
1848 </ul>
1849 <ul class="methods itemMembers">
1850
1851 <span class="subtitle">Methods</span>
1852
1853 <li data-name="LuCI.form.Value#append"><a href="LuCI.form.Value.html#append">append</a></li>
1854
1855 <li data-name="LuCI.form.Value#cbid"><a href="LuCI.form.Value.html#cbid">cbid</a></li>
1856
1857 <li data-name="LuCI.form.Value#cfgvalue"><a href="LuCI.form.Value.html#cfgvalue">cfgvalue</a></li>
1858
1859 <li data-name="LuCI.form.Value#depends"><a href="LuCI.form.Value.html#depends">depends</a></li>
1860
1861 <li data-name="LuCI.form.Value#formvalue"><a href="LuCI.form.Value.html#formvalue">formvalue</a></li>
1862
1863 <li data-name="LuCI.form.Value#getUIElement"><a href="LuCI.form.Value.html#getUIElement">getUIElement</a></li>
1864
1865 <li data-name="LuCI.form.Value#getValidationError"><a href="LuCI.form.Value.html#getValidationError">getValidationError</a></li>
1866
1867 <li data-name="LuCI.form.Value#isActive"><a href="LuCI.form.Value.html#isActive">isActive</a></li>
1868
1869 <li data-name="LuCI.form.Value#isValid"><a href="LuCI.form.Value.html#isValid">isValid</a></li>
1870
1871 <li data-name="LuCI.form.Value#load"><a href="LuCI.form.Value.html#load">load</a></li>
1872
1873 <li data-name="LuCI.form.Value#parse"><a href="LuCI.form.Value.html#parse">parse</a></li>
1874
1875 <li data-name="LuCI.form.Value#remove"><a href="LuCI.form.Value.html#remove">remove</a></li>
1876
1877 <li data-name="LuCI.form.Value#render"><a href="LuCI.form.Value.html#render">render</a></li>
1878
1879 <li data-name="LuCI.form.Value#stripTags"><a href="LuCI.form.Value.html#stripTags">stripTags</a></li>
1880
1881 <li data-name="LuCI.form.Value#textvalue"><a href="LuCI.form.Value.html#textvalue">textvalue</a></li>
1882
1883 <li data-name="LuCI.form.Value#titleFn"><a href="LuCI.form.Value.html#titleFn">titleFn</a></li>
1884
1885 <li data-name="LuCI.form.Value#value"><a href="LuCI.form.Value.html#value">value</a></li>
1886
1887 <li data-name="LuCI.form.Value#write"><a href="LuCI.form.Value.html#write">write</a></li>
1888
1889 </ul>
1890 <ul class="events itemMembers">
1891
1892 </ul>
1893 </li>
1894
1895 <li class="item" data-name="LuCI.fs">
1896 <span class="title">
1897 <a href="LuCI.fs.html">LuCI.fs</a>
1898
1899 </span>
1900 <ul class="members itemMembers">
1901
1902 </ul>
1903 <ul class="typedefs itemMembers">
1904
1905 <span class="subtitle">Typedefs</span>
1906
1907 <li data-name="LuCI.fs.FileExecResult"><a href="LuCI.fs.html#.FileExecResult">FileExecResult</a></li>
1908
1909 <li data-name="LuCI.fs.FileStatEntry"><a href="LuCI.fs.html#.FileStatEntry">FileStatEntry</a></li>
1910
1911 </ul>
1912 <ul class="typedefs itemMembers">
1913
1914 </ul>
1915 <ul class="methods itemMembers">
1916
1917 <span class="subtitle">Methods</span>
1918
1919 <li data-name="LuCI.fs#exec"><a href="LuCI.fs.html#exec">exec</a></li>
1920
1921 <li data-name="LuCI.fs#exec_direct"><a href="LuCI.fs.html#exec_direct">exec_direct</a></li>
1922
1923 <li data-name="LuCI.fs#lines"><a href="LuCI.fs.html#lines">lines</a></li>
1924
1925 <li data-name="LuCI.fs#list"><a href="LuCI.fs.html#list">list</a></li>
1926
1927 <li data-name="LuCI.fs#read"><a href="LuCI.fs.html#read">read</a></li>
1928
1929 <li data-name="LuCI.fs#read_direct"><a href="LuCI.fs.html#read_direct">read_direct</a></li>
1930
1931 <li data-name="LuCI.fs#remove"><a href="LuCI.fs.html#remove">remove</a></li>
1932
1933 <li data-name="LuCI.fs#stat"><a href="LuCI.fs.html#stat">stat</a></li>
1934
1935 <li data-name="LuCI.fs#trimmed"><a href="LuCI.fs.html#trimmed">trimmed</a></li>
1936
1937 <li data-name="LuCI.fs#write"><a href="LuCI.fs.html#write">write</a></li>
1938
1939 </ul>
1940 <ul class="events itemMembers">
1941
1942 </ul>
1943 </li>
1944
1945 <li class="item" data-name="LuCI.headers">
1946 <span class="title">
1947 <a href="LuCI.headers.html">LuCI.headers</a>
1948
1949 </span>
1950 <ul class="members itemMembers">
1951
1952 </ul>
1953 <ul class="typedefs itemMembers">
1954
1955 </ul>
1956 <ul class="typedefs itemMembers">
1957
1958 </ul>
1959 <ul class="methods itemMembers">
1960
1961 <span class="subtitle">Methods</span>
1962
1963 <li data-name="LuCI.headers#get"><a href="LuCI.headers.html#get">get</a></li>
1964
1965 <li data-name="LuCI.headers#has"><a href="LuCI.headers.html#has">has</a></li>
1966
1967 </ul>
1968 <ul class="events itemMembers">
1969
1970 </ul>
1971 </li>
1972
1973 <li class="item" data-name="LuCI.network">
1974 <span class="title">
1975 <a href="LuCI.network.html">LuCI.network</a>
1976
1977 </span>
1978 <ul class="members itemMembers">
1979
1980 </ul>
1981 <ul class="typedefs itemMembers">
1982
1983 <span class="subtitle">Typedefs</span>
1984
1985 <li data-name="LuCI.network.SwitchTopology"><a href="LuCI.network.html#.SwitchTopology">SwitchTopology</a></li>
1986
1987 <li data-name="LuCI.network.WifiEncryption"><a href="LuCI.network.html#.WifiEncryption">WifiEncryption</a></li>
1988
1989 <li data-name="LuCI.network.WifiPeerEntry"><a href="LuCI.network.html#.WifiPeerEntry">WifiPeerEntry</a></li>
1990
1991 <li data-name="LuCI.network.WifiRateEntry"><a href="LuCI.network.html#.WifiRateEntry">WifiRateEntry</a></li>
1992
1993 <li data-name="LuCI.network.WifiScanResult"><a href="LuCI.network.html#.WifiScanResult">WifiScanResult</a></li>
1994
1995 </ul>
1996 <ul class="typedefs itemMembers">
1997
1998 </ul>
1999 <ul class="methods itemMembers">
2000
2001 <span class="subtitle">Methods</span>
2002
2003 <li data-name="LuCI.network#addNetwork"><a href="LuCI.network.html#addNetwork">addNetwork</a></li>
2004
2005 <li data-name="LuCI.network#addWifiNetwork"><a href="LuCI.network.html#addWifiNetwork">addWifiNetwork</a></li>
2006
2007 <li data-name="LuCI.network#deleteNetwork"><a href="LuCI.network.html#deleteNetwork">deleteNetwork</a></li>
2008
2009 <li data-name="LuCI.network#deleteWifiNetwork"><a href="LuCI.network.html#deleteWifiNetwork">deleteWifiNetwork</a></li>
2010
2011 <li data-name="LuCI.network#flushCache"><a href="LuCI.network.html#flushCache">flushCache</a></li>
2012
2013 <li data-name="LuCI.network#formatWifiEncryption"><a href="LuCI.network.html#formatWifiEncryption">formatWifiEncryption</a></li>
2014
2015 <li data-name="LuCI.network#getDevice"><a href="LuCI.network.html#getDevice">getDevice</a></li>
2016
2017 <li data-name="LuCI.network#getDevices"><a href="LuCI.network.html#getDevices">getDevices</a></li>
2018
2019 <li data-name="LuCI.network#getDSLModemType"><a href="LuCI.network.html#getDSLModemType">getDSLModemType</a></li>
2020
2021 <li data-name="LuCI.network#getHostHints"><a href="LuCI.network.html#getHostHints">getHostHints</a></li>
2022
2023 <li data-name="LuCI.network#getIfnameOf"><a href="LuCI.network.html#getIfnameOf">getIfnameOf</a></li>
2024
2025 <li data-name="LuCI.network#getNetwork"><a href="LuCI.network.html#getNetwork">getNetwork</a></li>
2026
2027 <li data-name="LuCI.network#getNetworks"><a href="LuCI.network.html#getNetworks">getNetworks</a></li>
2028
2029 <li data-name="LuCI.network#getProtocol"><a href="LuCI.network.html#getProtocol">getProtocol</a></li>
2030
2031 <li data-name="LuCI.network#getProtocols"><a href="LuCI.network.html#getProtocols">getProtocols</a></li>
2032
2033 <li data-name="LuCI.network#getSwitchTopologies"><a href="LuCI.network.html#getSwitchTopologies">getSwitchTopologies</a></li>
2034
2035 <li data-name="LuCI.network#getWAN6Networks"><a href="LuCI.network.html#getWAN6Networks">getWAN6Networks</a></li>
2036
2037 <li data-name="LuCI.network#getWANNetworks"><a href="LuCI.network.html#getWANNetworks">getWANNetworks</a></li>
2038
2039 <li data-name="LuCI.network#getWifiDevice"><a href="LuCI.network.html#getWifiDevice">getWifiDevice</a></li>
2040
2041 <li data-name="LuCI.network#getWifiDevices"><a href="LuCI.network.html#getWifiDevices">getWifiDevices</a></li>
2042
2043 <li data-name="LuCI.network#getWifiNetwork"><a href="LuCI.network.html#getWifiNetwork">getWifiNetwork</a></li>
2044
2045 <li data-name="LuCI.network#getWifiNetworks"><a href="LuCI.network.html#getWifiNetworks">getWifiNetworks</a></li>
2046
2047 <li data-name="LuCI.network#isIgnoredDevice"><a href="LuCI.network.html#isIgnoredDevice">isIgnoredDevice</a></li>
2048
2049 <li data-name="LuCI.network#maskToPrefix"><a href="LuCI.network.html#maskToPrefix">maskToPrefix</a></li>
2050
2051 <li data-name="LuCI.network#prefixToMask"><a href="LuCI.network.html#prefixToMask">prefixToMask</a></li>
2052
2053 <li data-name="LuCI.network#registerErrorCode"><a href="LuCI.network.html#registerErrorCode">registerErrorCode</a></li>
2054
2055 <li data-name="LuCI.network#registerPatternVirtual"><a href="LuCI.network.html#registerPatternVirtual">registerPatternVirtual</a></li>
2056
2057 <li data-name="LuCI.network#registerProtocol"><a href="LuCI.network.html#registerProtocol">registerProtocol</a></li>
2058
2059 <li data-name="LuCI.network#renameNetwork"><a href="LuCI.network.html#renameNetwork">renameNetwork</a></li>
2060
2061 </ul>
2062 <ul class="events itemMembers">
2063
2064 </ul>
2065 </li>
2066
2067 <li class="item" data-name="LuCI.network.Device">
2068 <span class="title">
2069 <a href="LuCI.network.Device.html">LuCI.network.Device</a>
2070
2071 </span>
2072 <ul class="members itemMembers">
2073
2074 </ul>
2075 <ul class="typedefs itemMembers">
2076
2077 </ul>
2078 <ul class="typedefs itemMembers">
2079
2080 </ul>
2081 <ul class="methods itemMembers">
2082
2083 <span class="subtitle">Methods</span>
2084
2085 <li data-name="LuCI.network.Device#getBridgeID"><a href="LuCI.network.Device.html#getBridgeID">getBridgeID</a></li>
2086
2087 <li data-name="LuCI.network.Device#getBridgeSTP"><a href="LuCI.network.Device.html#getBridgeSTP">getBridgeSTP</a></li>
2088
2089 <li data-name="LuCI.network.Device#getCarrier"><a href="LuCI.network.Device.html#getCarrier">getCarrier</a></li>
2090
2091 <li data-name="LuCI.network.Device#getDuplex"><a href="LuCI.network.Device.html#getDuplex">getDuplex</a></li>
2092
2093 <li data-name="LuCI.network.Device#getI18n"><a href="LuCI.network.Device.html#getI18n">getI18n</a></li>
2094
2095 <li data-name="LuCI.network.Device#getIP6Addrs"><a href="LuCI.network.Device.html#getIP6Addrs">getIP6Addrs</a></li>
2096
2097 <li data-name="LuCI.network.Device#getIPAddrs"><a href="LuCI.network.Device.html#getIPAddrs">getIPAddrs</a></li>
2098
2099 <li data-name="LuCI.network.Device#getMAC"><a href="LuCI.network.Device.html#getMAC">getMAC</a></li>
2100
2101 <li data-name="LuCI.network.Device#getMTU"><a href="LuCI.network.Device.html#getMTU">getMTU</a></li>
2102
2103 <li data-name="LuCI.network.Device#getName"><a href="LuCI.network.Device.html#getName">getName</a></li>
2104
2105 <li data-name="LuCI.network.Device#getNetwork"><a href="LuCI.network.Device.html#getNetwork">getNetwork</a></li>
2106
2107 <li data-name="LuCI.network.Device#getNetworks"><a href="LuCI.network.Device.html#getNetworks">getNetworks</a></li>
2108
2109 <li data-name="LuCI.network.Device#getParent"><a href="LuCI.network.Device.html#getParent">getParent</a></li>
2110
2111 <li data-name="LuCI.network.Device#getPorts"><a href="LuCI.network.Device.html#getPorts">getPorts</a></li>
2112
2113 <li data-name="LuCI.network.Device#getRXBytes"><a href="LuCI.network.Device.html#getRXBytes">getRXBytes</a></li>
2114
2115 <li data-name="LuCI.network.Device#getRXPackets"><a href="LuCI.network.Device.html#getRXPackets">getRXPackets</a></li>
2116
2117 <li data-name="LuCI.network.Device#getShortName"><a href="LuCI.network.Device.html#getShortName">getShortName</a></li>
2118
2119 <li data-name="LuCI.network.Device#getSpeed"><a href="LuCI.network.Device.html#getSpeed">getSpeed</a></li>
2120
2121 <li data-name="LuCI.network.Device#getTXBytes"><a href="LuCI.network.Device.html#getTXBytes">getTXBytes</a></li>
2122
2123 <li data-name="LuCI.network.Device#getTXPackets"><a href="LuCI.network.Device.html#getTXPackets">getTXPackets</a></li>
2124
2125 <li data-name="LuCI.network.Device#getType"><a href="LuCI.network.Device.html#getType">getType</a></li>
2126
2127 <li data-name="LuCI.network.Device#getTypeI18n"><a href="LuCI.network.Device.html#getTypeI18n">getTypeI18n</a></li>
2128
2129 <li data-name="LuCI.network.Device#getWifiNetwork"><a href="LuCI.network.Device.html#getWifiNetwork">getWifiNetwork</a></li>
2130
2131 <li data-name="LuCI.network.Device#isBridge"><a href="LuCI.network.Device.html#isBridge">isBridge</a></li>
2132
2133 <li data-name="LuCI.network.Device#isBridgePort"><a href="LuCI.network.Device.html#isBridgePort">isBridgePort</a></li>
2134
2135 <li data-name="LuCI.network.Device#isUp"><a href="LuCI.network.Device.html#isUp">isUp</a></li>
2136
2137 </ul>
2138 <ul class="events itemMembers">
2139
2140 </ul>
2141 </li>
2142
2143 <li class="item" data-name="LuCI.network.Hosts">
2144 <span class="title">
2145 <a href="LuCI.network.Hosts.html">LuCI.network.Hosts</a>
2146
2147 </span>
2148 <ul class="members itemMembers">
2149
2150 </ul>
2151 <ul class="typedefs itemMembers">
2152
2153 </ul>
2154 <ul class="typedefs itemMembers">
2155
2156 </ul>
2157 <ul class="methods itemMembers">
2158
2159 <span class="subtitle">Methods</span>
2160
2161 <li data-name="LuCI.network.Hosts#getHostnameByIP6Addr"><a href="LuCI.network.Hosts.html#getHostnameByIP6Addr">getHostnameByIP6Addr</a></li>
2162
2163 <li data-name="LuCI.network.Hosts#getHostnameByIPAddr"><a href="LuCI.network.Hosts.html#getHostnameByIPAddr">getHostnameByIPAddr</a></li>
2164
2165 <li data-name="LuCI.network.Hosts#getHostnameByMACAddr"><a href="LuCI.network.Hosts.html#getHostnameByMACAddr">getHostnameByMACAddr</a></li>
2166
2167 <li data-name="LuCI.network.Hosts#getIP6AddrByMACAddr"><a href="LuCI.network.Hosts.html#getIP6AddrByMACAddr">getIP6AddrByMACAddr</a></li>
2168
2169 <li data-name="LuCI.network.Hosts#getIPAddrByMACAddr"><a href="LuCI.network.Hosts.html#getIPAddrByMACAddr">getIPAddrByMACAddr</a></li>
2170
2171 <li data-name="LuCI.network.Hosts#getMACAddrByIP6Addr"><a href="LuCI.network.Hosts.html#getMACAddrByIP6Addr">getMACAddrByIP6Addr</a></li>
2172
2173 <li data-name="LuCI.network.Hosts#getMACAddrByIPAddr"><a href="LuCI.network.Hosts.html#getMACAddrByIPAddr">getMACAddrByIPAddr</a></li>
2174
2175 <li data-name="LuCI.network.Hosts#getMACHints"><a href="LuCI.network.Hosts.html#getMACHints">getMACHints</a></li>
2176
2177 </ul>
2178 <ul class="events itemMembers">
2179
2180 </ul>
2181 </li>
2182
2183 <li class="item" data-name="LuCI.network.Protocol">
2184 <span class="title">
2185 <a href="LuCI.network.Protocol.html">LuCI.network.Protocol</a>
2186
2187 </span>
2188 <ul class="members itemMembers">
2189
2190 </ul>
2191 <ul class="typedefs itemMembers">
2192
2193 </ul>
2194 <ul class="typedefs itemMembers">
2195
2196 </ul>
2197 <ul class="methods itemMembers">
2198
2199 <span class="subtitle">Methods</span>
2200
2201 <li data-name="LuCI.network.Protocol#addDevice"><a href="LuCI.network.Protocol.html#addDevice">addDevice</a></li>
2202
2203 <li data-name="LuCI.network.Protocol#containsDevice"><a href="LuCI.network.Protocol.html#containsDevice">containsDevice</a></li>
2204
2205 <li data-name="LuCI.network.Protocol#deleteConfiguration"><a href="LuCI.network.Protocol.html#deleteConfiguration">deleteConfiguration</a></li>
2206
2207 <li data-name="LuCI.network.Protocol#deleteDevice"><a href="LuCI.network.Protocol.html#deleteDevice">deleteDevice</a></li>
2208
2209 <li data-name="LuCI.network.Protocol#get"><a href="LuCI.network.Protocol.html#get">get</a></li>
2210
2211 <li data-name="LuCI.network.Protocol#getDevice"><a href="LuCI.network.Protocol.html#getDevice">getDevice</a></li>
2212
2213 <li data-name="LuCI.network.Protocol#getDevices"><a href="LuCI.network.Protocol.html#getDevices">getDevices</a></li>
2214
2215 <li data-name="LuCI.network.Protocol#getDNS6Addrs"><a href="LuCI.network.Protocol.html#getDNS6Addrs">getDNS6Addrs</a></li>
2216
2217 <li data-name="LuCI.network.Protocol#getDNSAddrs"><a href="LuCI.network.Protocol.html#getDNSAddrs">getDNSAddrs</a></li>
2218
2219 <li data-name="LuCI.network.Protocol#getErrors"><a href="LuCI.network.Protocol.html#getErrors">getErrors</a></li>
2220
2221 <li data-name="LuCI.network.Protocol#getExpiry"><a href="LuCI.network.Protocol.html#getExpiry">getExpiry</a></li>
2222
2223 <li data-name="LuCI.network.Protocol#getGateway6Addr"><a href="LuCI.network.Protocol.html#getGateway6Addr">getGateway6Addr</a></li>
2224
2225 <li data-name="LuCI.network.Protocol#getGatewayAddr"><a href="LuCI.network.Protocol.html#getGatewayAddr">getGatewayAddr</a></li>
2226
2227 <li data-name="LuCI.network.Protocol#getI18n"><a href="LuCI.network.Protocol.html#getI18n">getI18n</a></li>
2228
2229 <li data-name="LuCI.network.Protocol#getIfname"><a href="LuCI.network.Protocol.html#getIfname">getIfname</a></li>
2230
2231 <li data-name="LuCI.network.Protocol#getIP6Addr"><a href="LuCI.network.Protocol.html#getIP6Addr">getIP6Addr</a></li>
2232
2233 <li data-name="LuCI.network.Protocol#getIP6Addrs"><a href="LuCI.network.Protocol.html#getIP6Addrs">getIP6Addrs</a></li>
2234
2235 <li data-name="LuCI.network.Protocol#getIP6Prefix"><a href="LuCI.network.Protocol.html#getIP6Prefix">getIP6Prefix</a></li>
2236
2237 <li data-name="LuCI.network.Protocol#getIPAddr"><a href="LuCI.network.Protocol.html#getIPAddr">getIPAddr</a></li>
2238
2239 <li data-name="LuCI.network.Protocol#getIPAddrs"><a href="LuCI.network.Protocol.html#getIPAddrs">getIPAddrs</a></li>
2240
2241 <li data-name="LuCI.network.Protocol#getL2Device"><a href="LuCI.network.Protocol.html#getL2Device">getL2Device</a></li>
2242
2243 <li data-name="LuCI.network.Protocol#getL3Device"><a href="LuCI.network.Protocol.html#getL3Device">getL3Device</a></li>
2244
2245 <li data-name="LuCI.network.Protocol#getMetric"><a href="LuCI.network.Protocol.html#getMetric">getMetric</a></li>
2246
2247 <li data-name="LuCI.network.Protocol#getName"><a href="LuCI.network.Protocol.html#getName">getName</a></li>
2248
2249 <li data-name="LuCI.network.Protocol#getNetmask"><a href="LuCI.network.Protocol.html#getNetmask">getNetmask</a></li>
2250
2251 <li data-name="LuCI.network.Protocol#getOpkgPackage"><a href="LuCI.network.Protocol.html#getOpkgPackage">getOpkgPackage</a></li>
2252
2253 <li data-name="LuCI.network.Protocol#getProtocol"><a href="LuCI.network.Protocol.html#getProtocol">getProtocol</a></li>
2254
2255 <li data-name="LuCI.network.Protocol#getType"><a href="LuCI.network.Protocol.html#getType">getType</a></li>
2256
2257 <li data-name="LuCI.network.Protocol#getUptime"><a href="LuCI.network.Protocol.html#getUptime">getUptime</a></li>
2258
2259 <li data-name="LuCI.network.Protocol#getZoneName"><a href="LuCI.network.Protocol.html#getZoneName">getZoneName</a></li>
2260
2261 <li data-name="LuCI.network.Protocol#isAlias"><a href="LuCI.network.Protocol.html#isAlias">isAlias</a></li>
2262
2263 <li data-name="LuCI.network.Protocol#isBridge"><a href="LuCI.network.Protocol.html#isBridge">isBridge</a></li>
2264
2265 <li data-name="LuCI.network.Protocol#isCreateable"><a href="LuCI.network.Protocol.html#isCreateable">isCreateable</a></li>
2266
2267 <li data-name="LuCI.network.Protocol#isDynamic"><a href="LuCI.network.Protocol.html#isDynamic">isDynamic</a></li>
2268
2269 <li data-name="LuCI.network.Protocol#isEmpty"><a href="LuCI.network.Protocol.html#isEmpty">isEmpty</a></li>
2270
2271 <li data-name="LuCI.network.Protocol#isFloating"><a href="LuCI.network.Protocol.html#isFloating">isFloating</a></li>
2272
2273 <li data-name="LuCI.network.Protocol#isInstalled"><a href="LuCI.network.Protocol.html#isInstalled">isInstalled</a></li>
2274
2275 <li data-name="LuCI.network.Protocol#isUp"><a href="LuCI.network.Protocol.html#isUp">isUp</a></li>
2276
2277 <li data-name="LuCI.network.Protocol#isVirtual"><a href="LuCI.network.Protocol.html#isVirtual">isVirtual</a></li>
2278
2279 <li data-name="LuCI.network.Protocol#set"><a href="LuCI.network.Protocol.html#set">set</a></li>
2280
2281 </ul>
2282 <ul class="events itemMembers">
2283
2284 </ul>
2285 </li>
2286
2287 <li class="item" data-name="LuCI.network.WifiDevice">
2288 <span class="title">
2289 <a href="LuCI.network.WifiDevice.html">LuCI.network.WifiDevice</a>
2290
2291 </span>
2292 <ul class="members itemMembers">
2293
2294 </ul>
2295 <ul class="typedefs itemMembers">
2296
2297 </ul>
2298 <ul class="typedefs itemMembers">
2299
2300 </ul>
2301 <ul class="methods itemMembers">
2302
2303 <span class="subtitle">Methods</span>
2304
2305 <li data-name="LuCI.network.WifiDevice#addWifiNetwork"><a href="LuCI.network.WifiDevice.html#addWifiNetwork">addWifiNetwork</a></li>
2306
2307 <li data-name="LuCI.network.WifiDevice#deleteWifiNetwork"><a href="LuCI.network.WifiDevice.html#deleteWifiNetwork">deleteWifiNetwork</a></li>
2308
2309 <li data-name="LuCI.network.WifiDevice#get"><a href="LuCI.network.WifiDevice.html#get">get</a></li>
2310
2311 <li data-name="LuCI.network.WifiDevice#getHTModes"><a href="LuCI.network.WifiDevice.html#getHTModes">getHTModes</a></li>
2312
2313 <li data-name="LuCI.network.WifiDevice#getHWModes"><a href="LuCI.network.WifiDevice.html#getHWModes">getHWModes</a></li>
2314
2315 <li data-name="LuCI.network.WifiDevice#getI18n"><a href="LuCI.network.WifiDevice.html#getI18n">getI18n</a></li>
2316
2317 <li data-name="LuCI.network.WifiDevice#getName"><a href="LuCI.network.WifiDevice.html#getName">getName</a></li>
2318
2319 <li data-name="LuCI.network.WifiDevice#getScanList"><a href="LuCI.network.WifiDevice.html#getScanList">getScanList</a></li>
2320
2321 <li data-name="LuCI.network.WifiDevice#getWifiNetwork"><a href="LuCI.network.WifiDevice.html#getWifiNetwork">getWifiNetwork</a></li>
2322
2323 <li data-name="LuCI.network.WifiDevice#getWifiNetworks"><a href="LuCI.network.WifiDevice.html#getWifiNetworks">getWifiNetworks</a></li>
2324
2325 <li data-name="LuCI.network.WifiDevice#isDisabled"><a href="LuCI.network.WifiDevice.html#isDisabled">isDisabled</a></li>
2326
2327 <li data-name="LuCI.network.WifiDevice#isUp"><a href="LuCI.network.WifiDevice.html#isUp">isUp</a></li>
2328
2329 <li data-name="LuCI.network.WifiDevice#set"><a href="LuCI.network.WifiDevice.html#set">set</a></li>
2330
2331 </ul>
2332 <ul class="events itemMembers">
2333
2334 </ul>
2335 </li>
2336
2337 <li class="item" data-name="LuCI.network.WifiNetwork">
2338 <span class="title">
2339 <a href="LuCI.network.WifiNetwork.html">LuCI.network.WifiNetwork</a>
2340
2341 </span>
2342 <ul class="members itemMembers">
2343
2344 </ul>
2345 <ul class="typedefs itemMembers">
2346
2347 </ul>
2348 <ul class="typedefs itemMembers">
2349
2350 </ul>
2351 <ul class="methods itemMembers">
2352
2353 <span class="subtitle">Methods</span>
2354
2355 <li data-name="LuCI.network.WifiNetwork#disconnectClient"><a href="LuCI.network.WifiNetwork.html#disconnectClient">disconnectClient</a></li>
2356
2357 <li data-name="LuCI.network.WifiNetwork#get"><a href="LuCI.network.WifiNetwork.html#get">get</a></li>
2358
2359 <li data-name="LuCI.network.WifiNetwork#getActiveBSSID"><a href="LuCI.network.WifiNetwork.html#getActiveBSSID">getActiveBSSID</a></li>
2360
2361 <li data-name="LuCI.network.WifiNetwork#getActiveEncryption"><a href="LuCI.network.WifiNetwork.html#getActiveEncryption">getActiveEncryption</a></li>
2362
2363 <li data-name="LuCI.network.WifiNetwork#getActiveMode"><a href="LuCI.network.WifiNetwork.html#getActiveMode">getActiveMode</a></li>
2364
2365 <li data-name="LuCI.network.WifiNetwork#getActiveModeI18n"><a href="LuCI.network.WifiNetwork.html#getActiveModeI18n">getActiveModeI18n</a></li>
2366
2367 <li data-name="LuCI.network.WifiNetwork#getActiveSSID"><a href="LuCI.network.WifiNetwork.html#getActiveSSID">getActiveSSID</a></li>
2368
2369 <li data-name="LuCI.network.WifiNetwork#getAssocList"><a href="LuCI.network.WifiNetwork.html#getAssocList">getAssocList</a></li>
2370
2371 <li data-name="LuCI.network.WifiNetwork#getBitRate"><a href="LuCI.network.WifiNetwork.html#getBitRate">getBitRate</a></li>
2372
2373 <li data-name="LuCI.network.WifiNetwork#getBSSID"><a href="LuCI.network.WifiNetwork.html#getBSSID">getBSSID</a></li>
2374
2375 <li data-name="LuCI.network.WifiNetwork#getChannel"><a href="LuCI.network.WifiNetwork.html#getChannel">getChannel</a></li>
2376
2377 <li data-name="LuCI.network.WifiNetwork#getCountryCode"><a href="LuCI.network.WifiNetwork.html#getCountryCode">getCountryCode</a></li>
2378
2379 <li data-name="LuCI.network.WifiNetwork#getDevice"><a href="LuCI.network.WifiNetwork.html#getDevice">getDevice</a></li>
2380
2381 <li data-name="LuCI.network.WifiNetwork#getFrequency"><a href="LuCI.network.WifiNetwork.html#getFrequency">getFrequency</a></li>
2382
2383 <li data-name="LuCI.network.WifiNetwork#getI18n"><a href="LuCI.network.WifiNetwork.html#getI18n">getI18n</a></li>
2384
2385 <li data-name="LuCI.network.WifiNetwork#getID"><a href="LuCI.network.WifiNetwork.html#getID">getID</a></li>
2386
2387 <li data-name="LuCI.network.WifiNetwork#getIfname"><a href="LuCI.network.WifiNetwork.html#getIfname">getIfname</a></li>
2388
2389 <li data-name="LuCI.network.WifiNetwork#getMeshID"><a href="LuCI.network.WifiNetwork.html#getMeshID">getMeshID</a></li>
2390
2391 <li data-name="LuCI.network.WifiNetwork#getMode"><a href="LuCI.network.WifiNetwork.html#getMode">getMode</a></li>
2392
2393 <li data-name="LuCI.network.WifiNetwork#getName"><a href="LuCI.network.WifiNetwork.html#getName">getName</a></li>
2394
2395 <li data-name="LuCI.network.WifiNetwork#getNetwork"><a href="LuCI.network.WifiNetwork.html#getNetwork">getNetwork</a></li>
2396
2397 <li data-name="LuCI.network.WifiNetwork#getNetworkNames"><a href="LuCI.network.WifiNetwork.html#getNetworkNames">getNetworkNames</a></li>
2398
2399 <li data-name="LuCI.network.WifiNetwork#getNetworks"><a href="LuCI.network.WifiNetwork.html#getNetworks">getNetworks</a></li>
2400
2401 <li data-name="LuCI.network.WifiNetwork#getNoise"><a href="LuCI.network.WifiNetwork.html#getNoise">getNoise</a></li>
2402
2403 <li data-name="LuCI.network.WifiNetwork#getShortName"><a href="LuCI.network.WifiNetwork.html#getShortName">getShortName</a></li>
2404
2405 <li data-name="LuCI.network.WifiNetwork#getSignal"><a href="LuCI.network.WifiNetwork.html#getSignal">getSignal</a></li>
2406
2407 <li data-name="LuCI.network.WifiNetwork#getSignalLevel"><a href="LuCI.network.WifiNetwork.html#getSignalLevel">getSignalLevel</a></li>
2408
2409 <li data-name="LuCI.network.WifiNetwork#getSignalPercent"><a href="LuCI.network.WifiNetwork.html#getSignalPercent">getSignalPercent</a></li>
2410
2411 <li data-name="LuCI.network.WifiNetwork#getSSID"><a href="LuCI.network.WifiNetwork.html#getSSID">getSSID</a></li>
2412
2413 <li data-name="LuCI.network.WifiNetwork#getTXPower"><a href="LuCI.network.WifiNetwork.html#getTXPower">getTXPower</a></li>
2414
2415 <li data-name="LuCI.network.WifiNetwork#getTXPowerOffset"><a href="LuCI.network.WifiNetwork.html#getTXPowerOffset">getTXPowerOffset</a></li>
2416
2417 <li data-name="LuCI.network.WifiNetwork#getVlanIfnames"><a href="LuCI.network.WifiNetwork.html#getVlanIfnames">getVlanIfnames</a></li>
2418
2419 <li data-name="LuCI.network.WifiNetwork#getWifiDevice"><a href="LuCI.network.WifiNetwork.html#getWifiDevice">getWifiDevice</a></li>
2420
2421 <li data-name="LuCI.network.WifiNetwork#getWifiDeviceName"><a href="LuCI.network.WifiNetwork.html#getWifiDeviceName">getWifiDeviceName</a></li>
2422
2423 <li data-name="LuCI.network.WifiNetwork#isClientDisconnectSupported"><a href="LuCI.network.WifiNetwork.html#isClientDisconnectSupported">isClientDisconnectSupported</a></li>
2424
2425 <li data-name="LuCI.network.WifiNetwork#isDisabled"><a href="LuCI.network.WifiNetwork.html#isDisabled">isDisabled</a></li>
2426
2427 <li data-name="LuCI.network.WifiNetwork#isUp"><a href="LuCI.network.WifiNetwork.html#isUp">isUp</a></li>
2428
2429 <li data-name="LuCI.network.WifiNetwork#set"><a href="LuCI.network.WifiNetwork.html#set">set</a></li>
2430
2431 </ul>
2432 <ul class="events itemMembers">
2433
2434 </ul>
2435 </li>
2436
2437 <li class="item" data-name="LuCI.poll">
2438 <span class="title">
2439 <a href="LuCI.poll.html">LuCI.poll</a>
2440
2441 </span>
2442 <ul class="members itemMembers">
2443
2444 </ul>
2445 <ul class="typedefs itemMembers">
2446
2447 </ul>
2448 <ul class="typedefs itemMembers">
2449
2450 </ul>
2451 <ul class="methods itemMembers">
2452
2453 <span class="subtitle">Methods</span>
2454
2455 <li data-name="LuCI.poll#active"><a href="LuCI.poll.html#active">active</a></li>
2456
2457 <li data-name="LuCI.poll#add"><a href="LuCI.poll.html#add">add</a></li>
2458
2459 <li data-name="LuCI.poll#remove"><a href="LuCI.poll.html#remove">remove</a></li>
2460
2461 <li data-name="LuCI.poll#start"><a href="LuCI.poll.html#start">start</a></li>
2462
2463 <li data-name="LuCI.poll#stop"><a href="LuCI.poll.html#stop">stop</a></li>
2464
2465 </ul>
2466 <ul class="events itemMembers">
2467
2468 </ul>
2469 </li>
2470
2471 <li class="item" data-name="LuCI.request">
2472 <span class="title">
2473 <a href="LuCI.request.html">LuCI.request</a>
2474
2475 </span>
2476 <ul class="members itemMembers">
2477
2478 </ul>
2479 <ul class="typedefs itemMembers">
2480
2481 <span class="subtitle">Typedefs</span>
2482
2483 <li data-name="LuCI.request.interceptorFn"><a href="LuCI.request.html#.interceptorFn">interceptorFn</a></li>
2484
2485 <li data-name="LuCI.request.RequestOptions"><a href="LuCI.request.html#.RequestOptions">RequestOptions</a></li>
2486
2487 </ul>
2488 <ul class="typedefs itemMembers">
2489
2490 </ul>
2491 <ul class="methods itemMembers">
2492
2493 <span class="subtitle">Methods</span>
2494
2495 <li data-name="LuCI.request#addInterceptor"><a href="LuCI.request.html#addInterceptor">addInterceptor</a></li>
2496
2497 <li data-name="LuCI.request#expandURL"><a href="LuCI.request.html#expandURL">expandURL</a></li>
2498
2499 <li data-name="LuCI.request#get"><a href="LuCI.request.html#get">get</a></li>
2500
2501 <li data-name="LuCI.request#post"><a href="LuCI.request.html#post">post</a></li>
2502
2503 <li data-name="LuCI.request#removeInterceptor"><a href="LuCI.request.html#removeInterceptor">removeInterceptor</a></li>
2504
2505 <li data-name="LuCI.request#request"><a href="LuCI.request.html#request">request</a></li>
2506
2507 </ul>
2508 <ul class="events itemMembers">
2509
2510 </ul>
2511 </li>
2512
2513 <li class="item" data-name="LuCI.request.poll">
2514 <span class="title">
2515 <a href="LuCI.request.poll.html">LuCI.request.poll</a>
2516
2517 </span>
2518 <ul class="members itemMembers">
2519
2520 </ul>
2521 <ul class="typedefs itemMembers">
2522
2523 <span class="subtitle">Typedefs</span>
2524
2525 <li data-name="LuCI.request.poll~callbackFn"><a href="LuCI.request.poll.html#~callbackFn">callbackFn</a></li>
2526
2527 </ul>
2528 <ul class="typedefs itemMembers">
2529
2530 </ul>
2531 <ul class="methods itemMembers">
2532
2533 <span class="subtitle">Methods</span>
2534
2535 <li data-name="LuCI.request.poll#active"><a href="LuCI.request.poll.html#active">active</a></li>
2536
2537 <li data-name="LuCI.request.poll#add"><a href="LuCI.request.poll.html#add">add</a></li>
2538
2539 <li data-name="LuCI.request.poll#remove"><a href="LuCI.request.poll.html#remove">remove</a></li>
2540
2541 <li data-name="LuCI.request.poll#start"><a href="LuCI.request.poll.html#start">start</a></li>
2542
2543 <li data-name="LuCI.request.poll#stop"><a href="LuCI.request.poll.html#stop">stop</a></li>
2544
2545 </ul>
2546 <ul class="events itemMembers">
2547
2548 </ul>
2549 </li>
2550
2551 <li class="item" data-name="LuCI.response">
2552 <span class="title">
2553 <a href="LuCI.response.html">LuCI.response</a>
2554
2555 </span>
2556 <ul class="members itemMembers">
2557
2558 <span class="subtitle">Members</span>
2559
2560 <li data-name="LuCI.response#duration"><a href="LuCI.response.html#duration">duration</a></li>
2561
2562 <li data-name="LuCI.response#headers"><a href="LuCI.response.html#headers">headers</a></li>
2563
2564 <li data-name="LuCI.response#ok"><a href="LuCI.response.html#ok">ok</a></li>
2565
2566 <li data-name="LuCI.response#status"><a href="LuCI.response.html#status">status</a></li>
2567
2568 <li data-name="LuCI.response#statusText"><a href="LuCI.response.html#statusText">statusText</a></li>
2569
2570 <li data-name="LuCI.response#url"><a href="LuCI.response.html#url">url</a></li>
2571
2572 </ul>
2573 <ul class="typedefs itemMembers">
2574
2575 </ul>
2576 <ul class="typedefs itemMembers">
2577
2578 </ul>
2579 <ul class="methods itemMembers">
2580
2581 <span class="subtitle">Methods</span>
2582
2583 <li data-name="LuCI.response#blob"><a href="LuCI.response.html#blob">blob</a></li>
2584
2585 <li data-name="LuCI.response#clone"><a href="LuCI.response.html#clone">clone</a></li>
2586
2587 <li data-name="LuCI.response#json"><a href="LuCI.response.html#json">json</a></li>
2588
2589 <li data-name="LuCI.response#text"><a href="LuCI.response.html#text">text</a></li>
2590
2591 </ul>
2592 <ul class="events itemMembers">
2593
2594 </ul>
2595 </li>
2596
2597 <li class="item" data-name="LuCI.rpc">
2598 <span class="title">
2599 <a href="LuCI.rpc.html">LuCI.rpc</a>
2600
2601 </span>
2602 <ul class="members itemMembers">
2603
2604 </ul>
2605 <ul class="typedefs itemMembers">
2606
2607 <span class="subtitle">Typedefs</span>
2608
2609 <li data-name="LuCI.rpc.DeclareOptions"><a href="LuCI.rpc.html#.DeclareOptions">DeclareOptions</a></li>
2610
2611 <li data-name="LuCI.rpc~filterFn"><a href="LuCI.rpc.html#~filterFn">filterFn</a></li>
2612
2613 <li data-name="LuCI.rpc~interceptorFn"><a href="LuCI.rpc.html#~interceptorFn">interceptorFn</a></li>
2614
2615 <li data-name="LuCI.rpc~invokeFn"><a href="LuCI.rpc.html#~invokeFn">invokeFn</a></li>
2616
2617 </ul>
2618 <ul class="typedefs itemMembers">
2619
2620 </ul>
2621 <ul class="methods itemMembers">
2622
2623 <span class="subtitle">Methods</span>
2624
2625 <li data-name="LuCI.rpc#addInterceptor"><a href="LuCI.rpc.html#addInterceptor">addInterceptor</a></li>
2626
2627 <li data-name="LuCI.rpc#declare"><a href="LuCI.rpc.html#declare">declare</a></li>
2628
2629 <li data-name="LuCI.rpc#getBaseURL"><a href="LuCI.rpc.html#getBaseURL">getBaseURL</a></li>
2630
2631 <li data-name="LuCI.rpc#getSessionID"><a href="LuCI.rpc.html#getSessionID">getSessionID</a></li>
2632
2633 <li data-name="LuCI.rpc#getStatusText"><a href="LuCI.rpc.html#getStatusText">getStatusText</a></li>
2634
2635 <li data-name="LuCI.rpc#list"><a href="LuCI.rpc.html#list">list</a></li>
2636
2637 <li data-name="LuCI.rpc#removeInterceptor"><a href="LuCI.rpc.html#removeInterceptor">removeInterceptor</a></li>
2638
2639 <li data-name="LuCI.rpc#setBaseURL"><a href="LuCI.rpc.html#setBaseURL">setBaseURL</a></li>
2640
2641 <li data-name="LuCI.rpc#setSessionID"><a href="LuCI.rpc.html#setSessionID">setSessionID</a></li>
2642
2643 </ul>
2644 <ul class="events itemMembers">
2645
2646 </ul>
2647 </li>
2648
2649 <li class="item" data-name="LuCI.session">
2650 <span class="title">
2651 <a href="LuCI.session.html">LuCI.session</a>
2652
2653 </span>
2654 <ul class="members itemMembers">
2655
2656 </ul>
2657 <ul class="typedefs itemMembers">
2658
2659 </ul>
2660 <ul class="typedefs itemMembers">
2661
2662 </ul>
2663 <ul class="methods itemMembers">
2664
2665 <span class="subtitle">Methods</span>
2666
2667 <li data-name="LuCI.session#getID"><a href="LuCI.session.html#getID">getID</a></li>
2668
2669 <li data-name="LuCI.session#getLocalData"><a href="LuCI.session.html#getLocalData">getLocalData</a></li>
2670
2671 <li data-name="LuCI.session#getToken"><a href="LuCI.session.html#getToken">getToken</a></li>
2672
2673 <li data-name="LuCI.session#setLocalData"><a href="LuCI.session.html#setLocalData">setLocalData</a></li>
2674
2675 </ul>
2676 <ul class="events itemMembers">
2677
2678 </ul>
2679 </li>
2680
2681 <li class="item" data-name="LuCI.uci">
2682 <span class="title">
2683 <a href="LuCI.uci.html">LuCI.uci</a>
2684
2685 </span>
2686 <ul class="members itemMembers">
2687
2688 </ul>
2689 <ul class="typedefs itemMembers">
2690
2691 <span class="subtitle">Typedefs</span>
2692
2693 <li data-name="LuCI.uci.ChangeRecord"><a href="LuCI.uci.html#.ChangeRecord">ChangeRecord</a></li>
2694
2695 <li data-name="LuCI.uci.SectionObject"><a href="LuCI.uci.html#.SectionObject">SectionObject</a></li>
2696
2697 <li data-name="LuCI.uci~sectionsFn"><a href="LuCI.uci.html#~sectionsFn">sectionsFn</a></li>
2698
2699 </ul>
2700 <ul class="typedefs itemMembers">
2701
2702 </ul>
2703 <ul class="methods itemMembers">
2704
2705 <span class="subtitle">Methods</span>
2706
2707 <li data-name="LuCI.uci#add"><a href="LuCI.uci.html#add">add</a></li>
2708
2709 <li data-name="LuCI.uci#apply"><a href="LuCI.uci.html#apply">apply</a></li>
2710
2711 <li data-name="LuCI.uci#changes"><a href="LuCI.uci.html#changes">changes</a></li>
2712
2713 <li data-name="LuCI.uci#createSID"><a href="LuCI.uci.html#createSID">createSID</a></li>
2714
2715 <li data-name="LuCI.uci#get"><a href="LuCI.uci.html#get">get</a></li>
2716
2717 <li data-name="LuCI.uci#get_first"><a href="LuCI.uci.html#get_first">get_first</a></li>
2718
2719 <li data-name="LuCI.uci#load"><a href="LuCI.uci.html#load">load</a></li>
2720
2721 <li data-name="LuCI.uci#move"><a href="LuCI.uci.html#move">move</a></li>
2722
2723 <li data-name="LuCI.uci#remove"><a href="LuCI.uci.html#remove">remove</a></li>
2724
2725 <li data-name="LuCI.uci#resolveSID"><a href="LuCI.uci.html#resolveSID">resolveSID</a></li>
2726
2727 <li data-name="LuCI.uci#save"><a href="LuCI.uci.html#save">save</a></li>
2728
2729 <li data-name="LuCI.uci#sections"><a href="LuCI.uci.html#sections">sections</a></li>
2730
2731 <li data-name="LuCI.uci#set"><a href="LuCI.uci.html#set">set</a></li>
2732
2733 <li data-name="LuCI.uci#set_first"><a href="LuCI.uci.html#set_first">set_first</a></li>
2734
2735 <li data-name="LuCI.uci#unload"><a href="LuCI.uci.html#unload">unload</a></li>
2736
2737 <li data-name="LuCI.uci#unset"><a href="LuCI.uci.html#unset">unset</a></li>
2738
2739 <li data-name="LuCI.uci#unset_first"><a href="LuCI.uci.html#unset_first">unset_first</a></li>
2740
2741 </ul>
2742 <ul class="events itemMembers">
2743
2744 </ul>
2745 </li>
2746
2747 <li class="item" data-name="LuCI.ui">
2748 <span class="title">
2749 <a href="LuCI.ui.html">LuCI.ui</a>
2750
2751 </span>
2752 <ul class="members itemMembers">
2753
2754 </ul>
2755 <ul class="typedefs itemMembers">
2756
2757 <span class="subtitle">Typedefs</span>
2758
2759 <li data-name="LuCI.ui.FileUploadReply"><a href="LuCI.ui.html#.FileUploadReply">FileUploadReply</a></li>
2760
2761 </ul>
2762 <ul class="typedefs itemMembers">
2763
2764 </ul>
2765 <ul class="methods itemMembers">
2766
2767 <span class="subtitle">Methods</span>
2768
2769 <li data-name="LuCI.ui#addNotification"><a href="LuCI.ui.html#addNotification">addNotification</a></li>
2770
2771 <li data-name="LuCI.ui#addValidator"><a href="LuCI.ui.html#addValidator">addValidator</a></li>
2772
2773 <li data-name="LuCI.ui#awaitReconnect"><a href="LuCI.ui.html#awaitReconnect">awaitReconnect</a></li>
2774
2775 <li data-name="LuCI.ui#createHandlerFn"><a href="LuCI.ui.html#createHandlerFn">createHandlerFn</a></li>
2776
2777 <li data-name="LuCI.ui#hideIndicator"><a href="LuCI.ui.html#hideIndicator">hideIndicator</a></li>
2778
2779 <li data-name="LuCI.ui#hideModal"><a href="LuCI.ui.html#hideModal">hideModal</a></li>
2780
2781 <li data-name="LuCI.ui#instantiateView"><a href="LuCI.ui.html#instantiateView">instantiateView</a></li>
2782
2783 <li data-name="LuCI.ui#itemlist"><a href="LuCI.ui.html#itemlist">itemlist</a></li>
2784
2785 <li data-name="LuCI.ui#pingDevice"><a href="LuCI.ui.html#pingDevice">pingDevice</a></li>
2786
2787 <li data-name="LuCI.ui#showIndicator"><a href="LuCI.ui.html#showIndicator">showIndicator</a></li>
2788
2789 <li data-name="LuCI.ui#showModal"><a href="LuCI.ui.html#showModal">showModal</a></li>
2790
2791 <li data-name="LuCI.ui#uploadFile"><a href="LuCI.ui.html#uploadFile">uploadFile</a></li>
2792
2793 </ul>
2794 <ul class="events itemMembers">
2795
2796 </ul>
2797 </li>
2798
2799 <li class="item" data-name="LuCI.ui.AbstractElement">
2800 <span class="title">
2801 <a href="LuCI.ui.AbstractElement.html">LuCI.ui.AbstractElement</a>
2802
2803 </span>
2804 <ul class="members itemMembers">
2805
2806 </ul>
2807 <ul class="typedefs itemMembers">
2808
2809 <span class="subtitle">Typedefs</span>
2810
2811 <li data-name="LuCI.ui.AbstractElement.InitOptions"><a href="LuCI.ui.AbstractElement.html#.InitOptions">InitOptions</a></li>
2812
2813 </ul>
2814 <ul class="typedefs itemMembers">
2815
2816 </ul>
2817 <ul class="methods itemMembers">
2818
2819 <span class="subtitle">Methods</span>
2820
2821 <li data-name="LuCI.ui.AbstractElement#getValidationError"><a href="LuCI.ui.AbstractElement.html#getValidationError">getValidationError</a></li>
2822
2823 <li data-name="LuCI.ui.AbstractElement#getValue"><a href="LuCI.ui.AbstractElement.html#getValue">getValue</a></li>
2824
2825 <li data-name="LuCI.ui.AbstractElement#isChanged"><a href="LuCI.ui.AbstractElement.html#isChanged">isChanged</a></li>
2826
2827 <li data-name="LuCI.ui.AbstractElement#isValid"><a href="LuCI.ui.AbstractElement.html#isValid">isValid</a></li>
2828
2829 <li data-name="LuCI.ui.AbstractElement#registerEvents"><a href="LuCI.ui.AbstractElement.html#registerEvents">registerEvents</a></li>
2830
2831 <li data-name="LuCI.ui.AbstractElement#render"><a href="LuCI.ui.AbstractElement.html#render">render</a></li>
2832
2833 <li data-name="LuCI.ui.AbstractElement#setChangeEvents"><a href="LuCI.ui.AbstractElement.html#setChangeEvents">setChangeEvents</a></li>
2834
2835 <li data-name="LuCI.ui.AbstractElement#setPlaceholder"><a href="LuCI.ui.AbstractElement.html#setPlaceholder">setPlaceholder</a></li>
2836
2837 <li data-name="LuCI.ui.AbstractElement#setUpdateEvents"><a href="LuCI.ui.AbstractElement.html#setUpdateEvents">setUpdateEvents</a></li>
2838
2839 <li data-name="LuCI.ui.AbstractElement#setValue"><a href="LuCI.ui.AbstractElement.html#setValue">setValue</a></li>
2840
2841 <li data-name="LuCI.ui.AbstractElement#triggerValidation"><a href="LuCI.ui.AbstractElement.html#triggerValidation">triggerValidation</a></li>
2842
2843 </ul>
2844 <ul class="events itemMembers">
2845
2846 </ul>
2847 </li>
2848
2849 <li class="item" data-name="LuCI.ui.changes">
2850 <span class="title">
2851 <a href="LuCI.ui.changes.html">LuCI.ui.changes</a>
2852
2853 </span>
2854 <ul class="members itemMembers">
2855
2856 </ul>
2857 <ul class="typedefs itemMembers">
2858
2859 </ul>
2860 <ul class="typedefs itemMembers">
2861
2862 </ul>
2863 <ul class="methods itemMembers">
2864
2865 <span class="subtitle">Methods</span>
2866
2867 <li data-name="LuCI.ui.changes#apply"><a href="LuCI.ui.changes.html#apply">apply</a></li>
2868
2869 <li data-name="LuCI.ui.changes#displayChanges"><a href="LuCI.ui.changes.html#displayChanges">displayChanges</a></li>
2870
2871 <li data-name="LuCI.ui.changes#renderChangeIndicator"><a href="LuCI.ui.changes.html#renderChangeIndicator">renderChangeIndicator</a></li>
2872
2873 <li data-name="LuCI.ui.changes#revert"><a href="LuCI.ui.changes.html#revert">revert</a></li>
2874
2875 <li data-name="LuCI.ui.changes#setIndicator"><a href="LuCI.ui.changes.html#setIndicator">setIndicator</a></li>
2876
2877 </ul>
2878 <ul class="events itemMembers">
2879
2880 </ul>
2881 </li>
2882
2883 <li class="item" data-name="LuCI.ui.Checkbox">
2884 <span class="title">
2885 <a href="LuCI.ui.Checkbox.html">LuCI.ui.Checkbox</a>
2886
2887 </span>
2888 <ul class="members itemMembers">
2889
2890 </ul>
2891 <ul class="typedefs itemMembers">
2892
2893 <span class="subtitle">Typedefs</span>
2894
2895 <li data-name="LuCI.ui.Checkbox.InitOptions"><a href="LuCI.ui.Checkbox.html#.InitOptions">InitOptions</a></li>
2896
2897 </ul>
2898 <ul class="typedefs itemMembers">
2899
2900 </ul>
2901 <ul class="methods itemMembers">
2902
2903 <span class="subtitle">Methods</span>
2904
2905 <li data-name="LuCI.ui.Checkbox#getValidationError"><a href="LuCI.ui.Checkbox.html#getValidationError">getValidationError</a></li>
2906
2907 <li data-name="LuCI.ui.Checkbox#getValue"><a href="LuCI.ui.Checkbox.html#getValue">getValue</a></li>
2908
2909 <li data-name="LuCI.ui.Checkbox#isChanged"><a href="LuCI.ui.Checkbox.html#isChanged">isChanged</a></li>
2910
2911 <li data-name="LuCI.ui.Checkbox#isChecked"><a href="LuCI.ui.Checkbox.html#isChecked">isChecked</a></li>
2912
2913 <li data-name="LuCI.ui.Checkbox#isValid"><a href="LuCI.ui.Checkbox.html#isValid">isValid</a></li>
2914
2915 <li data-name="LuCI.ui.Checkbox#registerEvents"><a href="LuCI.ui.Checkbox.html#registerEvents">registerEvents</a></li>
2916
2917 <li data-name="LuCI.ui.Checkbox#render"><a href="LuCI.ui.Checkbox.html#render">render</a></li>
2918
2919 <li data-name="LuCI.ui.Checkbox#setChangeEvents"><a href="LuCI.ui.Checkbox.html#setChangeEvents">setChangeEvents</a></li>
2920
2921 <li data-name="LuCI.ui.Checkbox#setPlaceholder"><a href="LuCI.ui.Checkbox.html#setPlaceholder">setPlaceholder</a></li>
2922
2923 <li data-name="LuCI.ui.Checkbox#setUpdateEvents"><a href="LuCI.ui.Checkbox.html#setUpdateEvents">setUpdateEvents</a></li>
2924
2925 <li data-name="LuCI.ui.Checkbox#setValue"><a href="LuCI.ui.Checkbox.html#setValue">setValue</a></li>
2926
2927 <li data-name="LuCI.ui.Checkbox#triggerValidation"><a href="LuCI.ui.Checkbox.html#triggerValidation">triggerValidation</a></li>
2928
2929 </ul>
2930 <ul class="events itemMembers">
2931
2932 </ul>
2933 </li>
2934
2935 <li class="item" data-name="LuCI.ui.Combobox">
2936 <span class="title">
2937 <a href="LuCI.ui.Combobox.html">LuCI.ui.Combobox</a>
2938
2939 </span>
2940 <ul class="members itemMembers">
2941
2942 </ul>
2943 <ul class="typedefs itemMembers">
2944
2945 <span class="subtitle">Typedefs</span>
2946
2947 <li data-name="LuCI.ui.Combobox.InitOptions"><a href="LuCI.ui.Combobox.html#.InitOptions">InitOptions</a></li>
2948
2949 </ul>
2950 <ul class="typedefs itemMembers">
2951
2952 </ul>
2953 <ul class="methods itemMembers">
2954
2955 <span class="subtitle">Methods</span>
2956
2957 <li data-name="LuCI.ui.Combobox#addChoices"><a href="LuCI.ui.Combobox.html#addChoices">addChoices</a></li>
2958
2959 <li data-name="LuCI.ui.Combobox#clearChoices"><a href="LuCI.ui.Combobox.html#clearChoices">clearChoices</a></li>
2960
2961 <li data-name="LuCI.ui.Combobox#closeAllDropdowns"><a href="LuCI.ui.Combobox.html#closeAllDropdowns">closeAllDropdowns</a></li>
2962
2963 <li data-name="LuCI.ui.Combobox#getValidationError"><a href="LuCI.ui.Combobox.html#getValidationError">getValidationError</a></li>
2964
2965 <li data-name="LuCI.ui.Combobox#isChanged"><a href="LuCI.ui.Combobox.html#isChanged">isChanged</a></li>
2966
2967 <li data-name="LuCI.ui.Combobox#isValid"><a href="LuCI.ui.Combobox.html#isValid">isValid</a></li>
2968
2969 <li data-name="LuCI.ui.Combobox#registerEvents"><a href="LuCI.ui.Combobox.html#registerEvents">registerEvents</a></li>
2970
2971 <li data-name="LuCI.ui.Combobox#setChangeEvents"><a href="LuCI.ui.Combobox.html#setChangeEvents">setChangeEvents</a></li>
2972
2973 <li data-name="LuCI.ui.Combobox#setPlaceholder"><a href="LuCI.ui.Combobox.html#setPlaceholder">setPlaceholder</a></li>
2974
2975 <li data-name="LuCI.ui.Combobox#setUpdateEvents"><a href="LuCI.ui.Combobox.html#setUpdateEvents">setUpdateEvents</a></li>
2976
2977 <li data-name="LuCI.ui.Combobox#triggerValidation"><a href="LuCI.ui.Combobox.html#triggerValidation">triggerValidation</a></li>
2978
2979 </ul>
2980 <ul class="events itemMembers">
2981
2982 </ul>
2983 </li>
2984
2985 <li class="item" data-name="LuCI.ui.ComboButton">
2986 <span class="title">
2987 <a href="LuCI.ui.ComboButton.html">LuCI.ui.ComboButton</a>
2988
2989 </span>
2990 <ul class="members itemMembers">
2991
2992 </ul>
2993 <ul class="typedefs itemMembers">
2994
2995 <span class="subtitle">Typedefs</span>
2996
2997 <li data-name="LuCI.ui.ComboButton.InitOptions"><a href="LuCI.ui.ComboButton.html#.InitOptions">InitOptions</a></li>
2998
2999 </ul>
3000 <ul class="typedefs itemMembers">
3001
3002 </ul>
3003 <ul class="methods itemMembers">
3004
3005 <span class="subtitle">Methods</span>
3006
3007 <li data-name="LuCI.ui.ComboButton#addChoices"><a href="LuCI.ui.ComboButton.html#addChoices">addChoices</a></li>
3008
3009 <li data-name="LuCI.ui.ComboButton#clearChoices"><a href="LuCI.ui.ComboButton.html#clearChoices">clearChoices</a></li>
3010
3011 <li data-name="LuCI.ui.ComboButton#closeAllDropdowns"><a href="LuCI.ui.ComboButton.html#closeAllDropdowns">closeAllDropdowns</a></li>
3012
3013 <li data-name="LuCI.ui.ComboButton#getValidationError"><a href="LuCI.ui.ComboButton.html#getValidationError">getValidationError</a></li>
3014
3015 <li data-name="LuCI.ui.ComboButton#isChanged"><a href="LuCI.ui.ComboButton.html#isChanged">isChanged</a></li>
3016
3017 <li data-name="LuCI.ui.ComboButton#isValid"><a href="LuCI.ui.ComboButton.html#isValid">isValid</a></li>
3018
3019 <li data-name="LuCI.ui.ComboButton#registerEvents"><a href="LuCI.ui.ComboButton.html#registerEvents">registerEvents</a></li>
3020
3021 <li data-name="LuCI.ui.ComboButton#setChangeEvents"><a href="LuCI.ui.ComboButton.html#setChangeEvents">setChangeEvents</a></li>
3022
3023 <li data-name="LuCI.ui.ComboButton#setPlaceholder"><a href="LuCI.ui.ComboButton.html#setPlaceholder">setPlaceholder</a></li>
3024
3025 <li data-name="LuCI.ui.ComboButton#setUpdateEvents"><a href="LuCI.ui.ComboButton.html#setUpdateEvents">setUpdateEvents</a></li>
3026
3027 <li data-name="LuCI.ui.ComboButton#triggerValidation"><a href="LuCI.ui.ComboButton.html#triggerValidation">triggerValidation</a></li>
3028
3029 </ul>
3030 <ul class="events itemMembers">
3031
3032 </ul>
3033 </li>
3034
3035 <li class="item" data-name="LuCI.ui.Dropdown">
3036 <span class="title">
3037 <a href="LuCI.ui.Dropdown.html">LuCI.ui.Dropdown</a>
3038
3039 </span>
3040 <ul class="members itemMembers">
3041
3042 </ul>
3043 <ul class="typedefs itemMembers">
3044
3045 <span class="subtitle">Typedefs</span>
3046
3047 <li data-name="LuCI.ui.Dropdown.InitOptions"><a href="LuCI.ui.Dropdown.html#.InitOptions">InitOptions</a></li>
3048
3049 </ul>
3050 <ul class="typedefs itemMembers">
3051
3052 </ul>
3053 <ul class="methods itemMembers">
3054
3055 <span class="subtitle">Methods</span>
3056
3057 <li data-name="LuCI.ui.Dropdown#addChoices"><a href="LuCI.ui.Dropdown.html#addChoices">addChoices</a></li>
3058
3059 <li data-name="LuCI.ui.Dropdown#clearChoices"><a href="LuCI.ui.Dropdown.html#clearChoices">clearChoices</a></li>
3060
3061 <li data-name="LuCI.ui.Dropdown#closeAllDropdowns"><a href="LuCI.ui.Dropdown.html#closeAllDropdowns">closeAllDropdowns</a></li>
3062
3063 <li data-name="LuCI.ui.Dropdown#getValidationError"><a href="LuCI.ui.Dropdown.html#getValidationError">getValidationError</a></li>
3064
3065 <li data-name="LuCI.ui.Dropdown#getValue"><a href="LuCI.ui.Dropdown.html#getValue">getValue</a></li>
3066
3067 <li data-name="LuCI.ui.Dropdown#isChanged"><a href="LuCI.ui.Dropdown.html#isChanged">isChanged</a></li>
3068
3069 <li data-name="LuCI.ui.Dropdown#isValid"><a href="LuCI.ui.Dropdown.html#isValid">isValid</a></li>
3070
3071 <li data-name="LuCI.ui.Dropdown#registerEvents"><a href="LuCI.ui.Dropdown.html#registerEvents">registerEvents</a></li>
3072
3073 <li data-name="LuCI.ui.Dropdown#render"><a href="LuCI.ui.Dropdown.html#render">render</a></li>
3074
3075 <li data-name="LuCI.ui.Dropdown#setChangeEvents"><a href="LuCI.ui.Dropdown.html#setChangeEvents">setChangeEvents</a></li>
3076
3077 <li data-name="LuCI.ui.Dropdown#setPlaceholder"><a href="LuCI.ui.Dropdown.html#setPlaceholder">setPlaceholder</a></li>
3078
3079 <li data-name="LuCI.ui.Dropdown#setUpdateEvents"><a href="LuCI.ui.Dropdown.html#setUpdateEvents">setUpdateEvents</a></li>
3080
3081 <li data-name="LuCI.ui.Dropdown#setValue"><a href="LuCI.ui.Dropdown.html#setValue">setValue</a></li>
3082
3083 <li data-name="LuCI.ui.Dropdown#triggerValidation"><a href="LuCI.ui.Dropdown.html#triggerValidation">triggerValidation</a></li>
3084
3085 </ul>
3086 <ul class="events itemMembers">
3087
3088 </ul>
3089 </li>
3090
3091 <li class="item" data-name="LuCI.ui.DynamicList">
3092 <span class="title">
3093 <a href="LuCI.ui.DynamicList.html">LuCI.ui.DynamicList</a>
3094
3095 </span>
3096 <ul class="members itemMembers">
3097
3098 </ul>
3099 <ul class="typedefs itemMembers">
3100
3101 <span class="subtitle">Typedefs</span>
3102
3103 <li data-name="LuCI.ui.DynamicList.InitOptions"><a href="LuCI.ui.DynamicList.html#.InitOptions">InitOptions</a></li>
3104
3105 </ul>
3106 <ul class="typedefs itemMembers">
3107
3108 </ul>
3109 <ul class="methods itemMembers">
3110
3111 <span class="subtitle">Methods</span>
3112
3113 <li data-name="LuCI.ui.DynamicList#addChoices"><a href="LuCI.ui.DynamicList.html#addChoices">addChoices</a></li>
3114
3115 <li data-name="LuCI.ui.DynamicList#clearChoices"><a href="LuCI.ui.DynamicList.html#clearChoices">clearChoices</a></li>
3116
3117 <li data-name="LuCI.ui.DynamicList#getValidationError"><a href="LuCI.ui.DynamicList.html#getValidationError">getValidationError</a></li>
3118
3119 <li data-name="LuCI.ui.DynamicList#getValue"><a href="LuCI.ui.DynamicList.html#getValue">getValue</a></li>
3120
3121 <li data-name="LuCI.ui.DynamicList#isChanged"><a href="LuCI.ui.DynamicList.html#isChanged">isChanged</a></li>
3122
3123 <li data-name="LuCI.ui.DynamicList#isValid"><a href="LuCI.ui.DynamicList.html#isValid">isValid</a></li>
3124
3125 <li data-name="LuCI.ui.DynamicList#registerEvents"><a href="LuCI.ui.DynamicList.html#registerEvents">registerEvents</a></li>
3126
3127 <li data-name="LuCI.ui.DynamicList#render"><a href="LuCI.ui.DynamicList.html#render">render</a></li>
3128
3129 <li data-name="LuCI.ui.DynamicList#setChangeEvents"><a href="LuCI.ui.DynamicList.html#setChangeEvents">setChangeEvents</a></li>
3130
3131 <li data-name="LuCI.ui.DynamicList#setPlaceholder"><a href="LuCI.ui.DynamicList.html#setPlaceholder">setPlaceholder</a></li>
3132
3133 <li data-name="LuCI.ui.DynamicList#setUpdateEvents"><a href="LuCI.ui.DynamicList.html#setUpdateEvents">setUpdateEvents</a></li>
3134
3135 <li data-name="LuCI.ui.DynamicList#setValue"><a href="LuCI.ui.DynamicList.html#setValue">setValue</a></li>
3136
3137 <li data-name="LuCI.ui.DynamicList#triggerValidation"><a href="LuCI.ui.DynamicList.html#triggerValidation">triggerValidation</a></li>
3138
3139 </ul>
3140 <ul class="events itemMembers">
3141
3142 </ul>
3143 </li>
3144
3145 <li class="item" data-name="LuCI.ui.FileUpload">
3146 <span class="title">
3147 <a href="LuCI.ui.FileUpload.html">LuCI.ui.FileUpload</a>
3148
3149 </span>
3150 <ul class="members itemMembers">
3151
3152 </ul>
3153 <ul class="typedefs itemMembers">
3154
3155 <span class="subtitle">Typedefs</span>
3156
3157 <li data-name="LuCI.ui.FileUpload.InitOptions"><a href="LuCI.ui.FileUpload.html#.InitOptions">InitOptions</a></li>
3158
3159 </ul>
3160 <ul class="typedefs itemMembers">
3161
3162 </ul>
3163 <ul class="methods itemMembers">
3164
3165 <span class="subtitle">Methods</span>
3166
3167 <li data-name="LuCI.ui.FileUpload#getValidationError"><a href="LuCI.ui.FileUpload.html#getValidationError">getValidationError</a></li>
3168
3169 <li data-name="LuCI.ui.FileUpload#getValue"><a href="LuCI.ui.FileUpload.html#getValue">getValue</a></li>
3170
3171 <li data-name="LuCI.ui.FileUpload#isChanged"><a href="LuCI.ui.FileUpload.html#isChanged">isChanged</a></li>
3172
3173 <li data-name="LuCI.ui.FileUpload#isValid"><a href="LuCI.ui.FileUpload.html#isValid">isValid</a></li>
3174
3175 <li data-name="LuCI.ui.FileUpload#registerEvents"><a href="LuCI.ui.FileUpload.html#registerEvents">registerEvents</a></li>
3176
3177 <li data-name="LuCI.ui.FileUpload#render"><a href="LuCI.ui.FileUpload.html#render">render</a></li>
3178
3179 <li data-name="LuCI.ui.FileUpload#setChangeEvents"><a href="LuCI.ui.FileUpload.html#setChangeEvents">setChangeEvents</a></li>
3180
3181 <li data-name="LuCI.ui.FileUpload#setPlaceholder"><a href="LuCI.ui.FileUpload.html#setPlaceholder">setPlaceholder</a></li>
3182
3183 <li data-name="LuCI.ui.FileUpload#setUpdateEvents"><a href="LuCI.ui.FileUpload.html#setUpdateEvents">setUpdateEvents</a></li>
3184
3185 <li data-name="LuCI.ui.FileUpload#setValue"><a href="LuCI.ui.FileUpload.html#setValue">setValue</a></li>
3186
3187 <li data-name="LuCI.ui.FileUpload#triggerValidation"><a href="LuCI.ui.FileUpload.html#triggerValidation">triggerValidation</a></li>
3188
3189 </ul>
3190 <ul class="events itemMembers">
3191
3192 </ul>
3193 </li>
3194
3195 <li class="item" data-name="LuCI.ui.Hiddenfield">
3196 <span class="title">
3197 <a href="LuCI.ui.Hiddenfield.html">LuCI.ui.Hiddenfield</a>
3198
3199 </span>
3200 <ul class="members itemMembers">
3201
3202 </ul>
3203 <ul class="typedefs itemMembers">
3204
3205 </ul>
3206 <ul class="typedefs itemMembers">
3207
3208 </ul>
3209 <ul class="methods itemMembers">
3210
3211 <span class="subtitle">Methods</span>
3212
3213 <li data-name="LuCI.ui.Hiddenfield#getValidationError"><a href="LuCI.ui.Hiddenfield.html#getValidationError">getValidationError</a></li>
3214
3215 <li data-name="LuCI.ui.Hiddenfield#getValue"><a href="LuCI.ui.Hiddenfield.html#getValue">getValue</a></li>
3216
3217 <li data-name="LuCI.ui.Hiddenfield#isChanged"><a href="LuCI.ui.Hiddenfield.html#isChanged">isChanged</a></li>
3218
3219 <li data-name="LuCI.ui.Hiddenfield#isValid"><a href="LuCI.ui.Hiddenfield.html#isValid">isValid</a></li>
3220
3221 <li data-name="LuCI.ui.Hiddenfield#registerEvents"><a href="LuCI.ui.Hiddenfield.html#registerEvents">registerEvents</a></li>
3222
3223 <li data-name="LuCI.ui.Hiddenfield#render"><a href="LuCI.ui.Hiddenfield.html#render">render</a></li>
3224
3225 <li data-name="LuCI.ui.Hiddenfield#setChangeEvents"><a href="LuCI.ui.Hiddenfield.html#setChangeEvents">setChangeEvents</a></li>
3226
3227 <li data-name="LuCI.ui.Hiddenfield#setPlaceholder"><a href="LuCI.ui.Hiddenfield.html#setPlaceholder">setPlaceholder</a></li>
3228
3229 <li data-name="LuCI.ui.Hiddenfield#setUpdateEvents"><a href="LuCI.ui.Hiddenfield.html#setUpdateEvents">setUpdateEvents</a></li>
3230
3231 <li data-name="LuCI.ui.Hiddenfield#setValue"><a href="LuCI.ui.Hiddenfield.html#setValue">setValue</a></li>
3232
3233 <li data-name="LuCI.ui.Hiddenfield#triggerValidation"><a href="LuCI.ui.Hiddenfield.html#triggerValidation">triggerValidation</a></li>
3234
3235 </ul>
3236 <ul class="events itemMembers">
3237
3238 </ul>
3239 </li>
3240
3241 <li class="item" data-name="LuCI.ui.menu">
3242 <span class="title">
3243 <a href="LuCI.ui.menu.html">LuCI.ui.menu</a>
3244
3245 </span>
3246 <ul class="members itemMembers">
3247
3248 </ul>
3249 <ul class="typedefs itemMembers">
3250
3251 <span class="subtitle">Typedefs</span>
3252
3253 <li data-name="LuCI.ui.menu.MenuNode"><a href="LuCI.ui.menu.html#.MenuNode">MenuNode</a></li>
3254
3255 </ul>
3256 <ul class="typedefs itemMembers">
3257
3258 </ul>
3259 <ul class="methods itemMembers">
3260
3261 <span class="subtitle">Methods</span>
3262
3263 <li data-name="LuCI.ui.menu#flushCache"><a href="LuCI.ui.menu.html#flushCache">flushCache</a></li>
3264
3265 <li data-name="LuCI.ui.menu#getChildren"><a href="LuCI.ui.menu.html#getChildren">getChildren</a></li>
3266
3267 <li data-name="LuCI.ui.menu#load"><a href="LuCI.ui.menu.html#load">load</a></li>
3268
3269 </ul>
3270 <ul class="events itemMembers">
3271
3272 </ul>
3273 </li>
3274
3275 <li class="item" data-name="LuCI.ui.Select">
3276 <span class="title">
3277 <a href="LuCI.ui.Select.html">LuCI.ui.Select</a>
3278
3279 </span>
3280 <ul class="members itemMembers">
3281
3282 </ul>
3283 <ul class="typedefs itemMembers">
3284
3285 <span class="subtitle">Typedefs</span>
3286
3287 <li data-name="LuCI.ui.Select.InitOptions"><a href="LuCI.ui.Select.html#.InitOptions">InitOptions</a></li>
3288
3289 </ul>
3290 <ul class="typedefs itemMembers">
3291
3292 </ul>
3293 <ul class="methods itemMembers">
3294
3295 <span class="subtitle">Methods</span>
3296
3297 <li data-name="LuCI.ui.Select#getValidationError"><a href="LuCI.ui.Select.html#getValidationError">getValidationError</a></li>
3298
3299 <li data-name="LuCI.ui.Select#getValue"><a href="LuCI.ui.Select.html#getValue">getValue</a></li>
3300
3301 <li data-name="LuCI.ui.Select#isChanged"><a href="LuCI.ui.Select.html#isChanged">isChanged</a></li>
3302
3303 <li data-name="LuCI.ui.Select#isValid"><a href="LuCI.ui.Select.html#isValid">isValid</a></li>
3304
3305 <li data-name="LuCI.ui.Select#registerEvents"><a href="LuCI.ui.Select.html#registerEvents">registerEvents</a></li>
3306
3307 <li data-name="LuCI.ui.Select#render"><a href="LuCI.ui.Select.html#render">render</a></li>
3308
3309 <li data-name="LuCI.ui.Select#setChangeEvents"><a href="LuCI.ui.Select.html#setChangeEvents">setChangeEvents</a></li>
3310
3311 <li data-name="LuCI.ui.Select#setPlaceholder"><a href="LuCI.ui.Select.html#setPlaceholder">setPlaceholder</a></li>
3312
3313 <li data-name="LuCI.ui.Select#setUpdateEvents"><a href="LuCI.ui.Select.html#setUpdateEvents">setUpdateEvents</a></li>
3314
3315 <li data-name="LuCI.ui.Select#setValue"><a href="LuCI.ui.Select.html#setValue">setValue</a></li>
3316
3317 <li data-name="LuCI.ui.Select#triggerValidation"><a href="LuCI.ui.Select.html#triggerValidation">triggerValidation</a></li>
3318
3319 </ul>
3320 <ul class="events itemMembers">
3321
3322 </ul>
3323 </li>
3324
3325 <li class="item" data-name="LuCI.ui.tabs">
3326 <span class="title">
3327 <a href="LuCI.ui.tabs.html">LuCI.ui.tabs</a>
3328
3329 </span>
3330 <ul class="members itemMembers">
3331
3332 </ul>
3333 <ul class="typedefs itemMembers">
3334
3335 </ul>
3336 <ul class="typedefs itemMembers">
3337
3338 </ul>
3339 <ul class="methods itemMembers">
3340
3341 <span class="subtitle">Methods</span>
3342
3343 <li data-name="LuCI.ui.tabs#initTabGroup"><a href="LuCI.ui.tabs.html#initTabGroup">initTabGroup</a></li>
3344
3345 <li data-name="LuCI.ui.tabs#isEmptyPane"><a href="LuCI.ui.tabs.html#isEmptyPane">isEmptyPane</a></li>
3346
3347 </ul>
3348 <ul class="events itemMembers">
3349
3350 </ul>
3351 </li>
3352
3353 <li class="item" data-name="LuCI.ui.Textarea">
3354 <span class="title">
3355 <a href="LuCI.ui.Textarea.html">LuCI.ui.Textarea</a>
3356
3357 </span>
3358 <ul class="members itemMembers">
3359
3360 </ul>
3361 <ul class="typedefs itemMembers">
3362
3363 <span class="subtitle">Typedefs</span>
3364
3365 <li data-name="LuCI.ui.Textarea.InitOptions"><a href="LuCI.ui.Textarea.html#.InitOptions">InitOptions</a></li>
3366
3367 </ul>
3368 <ul class="typedefs itemMembers">
3369
3370 </ul>
3371 <ul class="methods itemMembers">
3372
3373 <span class="subtitle">Methods</span>
3374
3375 <li data-name="LuCI.ui.Textarea#getValidationError"><a href="LuCI.ui.Textarea.html#getValidationError">getValidationError</a></li>
3376
3377 <li data-name="LuCI.ui.Textarea#getValue"><a href="LuCI.ui.Textarea.html#getValue">getValue</a></li>
3378
3379 <li data-name="LuCI.ui.Textarea#isChanged"><a href="LuCI.ui.Textarea.html#isChanged">isChanged</a></li>
3380
3381 <li data-name="LuCI.ui.Textarea#isValid"><a href="LuCI.ui.Textarea.html#isValid">isValid</a></li>
3382
3383 <li data-name="LuCI.ui.Textarea#registerEvents"><a href="LuCI.ui.Textarea.html#registerEvents">registerEvents</a></li>
3384
3385 <li data-name="LuCI.ui.Textarea#render"><a href="LuCI.ui.Textarea.html#render">render</a></li>
3386
3387 <li data-name="LuCI.ui.Textarea#setChangeEvents"><a href="LuCI.ui.Textarea.html#setChangeEvents">setChangeEvents</a></li>
3388
3389 <li data-name="LuCI.ui.Textarea#setPlaceholder"><a href="LuCI.ui.Textarea.html#setPlaceholder">setPlaceholder</a></li>
3390
3391 <li data-name="LuCI.ui.Textarea#setUpdateEvents"><a href="LuCI.ui.Textarea.html#setUpdateEvents">setUpdateEvents</a></li>
3392
3393 <li data-name="LuCI.ui.Textarea#setValue"><a href="LuCI.ui.Textarea.html#setValue">setValue</a></li>
3394
3395 <li data-name="LuCI.ui.Textarea#triggerValidation"><a href="LuCI.ui.Textarea.html#triggerValidation">triggerValidation</a></li>
3396
3397 </ul>
3398 <ul class="events itemMembers">
3399
3400 </ul>
3401 </li>
3402
3403 <li class="item" data-name="LuCI.ui.Textfield">
3404 <span class="title">
3405 <a href="LuCI.ui.Textfield.html">LuCI.ui.Textfield</a>
3406
3407 </span>
3408 <ul class="members itemMembers">
3409
3410 </ul>
3411 <ul class="typedefs itemMembers">
3412
3413 <span class="subtitle">Typedefs</span>
3414
3415 <li data-name="LuCI.ui.Textfield.InitOptions"><a href="LuCI.ui.Textfield.html#.InitOptions">InitOptions</a></li>
3416
3417 </ul>
3418 <ul class="typedefs itemMembers">
3419
3420 </ul>
3421 <ul class="methods itemMembers">
3422
3423 <span class="subtitle">Methods</span>
3424
3425 <li data-name="LuCI.ui.Textfield#getValidationError"><a href="LuCI.ui.Textfield.html#getValidationError">getValidationError</a></li>
3426
3427 <li data-name="LuCI.ui.Textfield#getValue"><a href="LuCI.ui.Textfield.html#getValue">getValue</a></li>
3428
3429 <li data-name="LuCI.ui.Textfield#isChanged"><a href="LuCI.ui.Textfield.html#isChanged">isChanged</a></li>
3430
3431 <li data-name="LuCI.ui.Textfield#isValid"><a href="LuCI.ui.Textfield.html#isValid">isValid</a></li>
3432
3433 <li data-name="LuCI.ui.Textfield#registerEvents"><a href="LuCI.ui.Textfield.html#registerEvents">registerEvents</a></li>
3434
3435 <li data-name="LuCI.ui.Textfield#render"><a href="LuCI.ui.Textfield.html#render">render</a></li>
3436
3437 <li data-name="LuCI.ui.Textfield#setChangeEvents"><a href="LuCI.ui.Textfield.html#setChangeEvents">setChangeEvents</a></li>
3438
3439 <li data-name="LuCI.ui.Textfield#setPlaceholder"><a href="LuCI.ui.Textfield.html#setPlaceholder">setPlaceholder</a></li>
3440
3441 <li data-name="LuCI.ui.Textfield#setUpdateEvents"><a href="LuCI.ui.Textfield.html#setUpdateEvents">setUpdateEvents</a></li>
3442
3443 <li data-name="LuCI.ui.Textfield#setValue"><a href="LuCI.ui.Textfield.html#setValue">setValue</a></li>
3444
3445 <li data-name="LuCI.ui.Textfield#triggerValidation"><a href="LuCI.ui.Textfield.html#triggerValidation">triggerValidation</a></li>
3446
3447 </ul>
3448 <ul class="events itemMembers">
3449
3450 </ul>
3451 </li>
3452
3453 <li class="item" data-name="LuCI.view">
3454 <span class="title">
3455 <a href="LuCI.view.html">LuCI.view</a>
3456
3457 </span>
3458 <ul class="members itemMembers">
3459
3460 </ul>
3461 <ul class="typedefs itemMembers">
3462
3463 </ul>
3464 <ul class="typedefs itemMembers">
3465
3466 </ul>
3467 <ul class="methods itemMembers">
3468
3469 <span class="subtitle">Methods</span>
3470
3471 <li data-name="LuCI.view#addFooter"><a href="LuCI.view.html#addFooter">addFooter</a></li>
3472
3473 <li data-name="LuCI.view#handleReset"><a href="LuCI.view.html#handleReset">handleReset</a></li>
3474
3475 <li data-name="LuCI.view#handleSave"><a href="LuCI.view.html#handleSave">handleSave</a></li>
3476
3477 <li data-name="LuCI.view#handleSaveApply"><a href="LuCI.view.html#handleSaveApply">handleSaveApply</a></li>
3478
3479 <li data-name="LuCI.view#load"><a href="LuCI.view.html#load">load</a></li>
3480
3481 <li data-name="LuCI.view#render"><a href="LuCI.view.html#render">render</a></li>
3482
3483 </ul>
3484 <ul class="events itemMembers">
3485
3486 </ul>
3487 </li>
3488
3489 <li class="item" data-name="LuCI.xhr">
3490 <span class="title">
3491 <a href="LuCI.xhr.html">LuCI.xhr</a>
3492
3493 </span>
3494 <ul class="members itemMembers">
3495
3496 </ul>
3497 <ul class="typedefs itemMembers">
3498
3499 </ul>
3500 <ul class="typedefs itemMembers">
3501
3502 </ul>
3503 <ul class="methods itemMembers">
3504
3505 <span class="subtitle">Methods</span>
3506
3507 <li data-name="LuCI.xhr#abort"><a href="LuCI.xhr.html#abort">abort</a></li>
3508
3509 <li data-name="LuCI.xhr#busy"><a href="LuCI.xhr.html#busy">busy</a></li>
3510
3511 <li data-name="LuCI.xhr#cancel"><a href="LuCI.xhr.html#cancel">cancel</a></li>
3512
3513 <li data-name="LuCI.xhr#get"><a href="LuCI.xhr.html#get">get</a></li>
3514
3515 <li data-name="LuCI.xhr#post"><a href="LuCI.xhr.html#post">post</a></li>
3516
3517 <li data-name="LuCI.xhr#send_form"><a href="LuCI.xhr.html#send_form">send_form</a></li>
3518
3519 </ul>
3520 <ul class="events itemMembers">
3521
3522 </ul>
3523 </li>
3524
3525 </ul>
3526 </div>
3527 <div class="main">
3528 <h1 class="page-title" data-filename="luci.js.html">Source: luci.js</h1>
3529
3530
3531
3532
3533 <section>
3534 <article>
3535 <pre id="source-code" class="prettyprint source "><code>/**
3536 * @class LuCI
3537 * @classdesc
3538 *
3539 * This is the LuCI base class. It is automatically instantiated and
3540 * accessible using the global `L` variable.
3541 *
3542 * @param {Object} env
3543 * The environment settings to use for the LuCI runtime.
3544 */
3545
3546 (function(window, document, undefined) {
3547 'use strict';
3548
3549 var env = {};
3550
3551 /* Object.assign polyfill for IE */
3552 if (typeof Object.assign !== 'function') {
3553 Object.defineProperty(Object, 'assign', {
3554 value: function assign(target, varArgs) {
3555 if (target == null)
3556 throw new TypeError('Cannot convert undefined or null to object');
3557
3558 var to = Object(target);
3559
3560 for (var index = 1; index &lt; arguments.length; index++)
3561 if (arguments[index] != null)
3562 for (var nextKey in arguments[index])
3563 if (Object.prototype.hasOwnProperty.call(arguments[index], nextKey))
3564 to[nextKey] = arguments[index][nextKey];
3565
3566 return to;
3567 },
3568 writable: true,
3569 configurable: true
3570 });
3571 }
3572
3573 /* Promise.finally polyfill */
3574 if (typeof Promise.prototype.finally !== 'function') {
3575 Promise.prototype.finally = function(fn) {
3576 var onFinally = function(cb) {
3577 return Promise.resolve(fn.call(this)).then(cb);
3578 };
3579
3580 return this.then(
3581 function(result) { return onFinally.call(this, function() { return result }) },
3582 function(reason) { return onFinally.call(this, function() { return Promise.reject(reason) }) }
3583 );
3584 };
3585 }
3586
3587 /*
3588 * Class declaration and inheritance helper
3589 */
3590
3591 var toCamelCase = function(s) {
3592 return s.replace(/(?:^|[\. -])(.)/g, function(m0, m1) { return m1.toUpperCase() });
3593 };
3594
3595 /**
3596 * @class baseclass
3597 * @hideconstructor
3598 * @memberof LuCI
3599 * @classdesc
3600 *
3601 * `LuCI.baseclass` is the abstract base class all LuCI classes inherit from.
3602 *
3603 * It provides simple means to create subclasses of given classes and
3604 * implements prototypal inheritance.
3605 */
3606 var superContext = {}, classIndex = 0, Class = Object.assign(function() {}, {
3607 /**
3608 * Extends this base class with the properties described in
3609 * `properties` and returns a new subclassed Class instance
3610 *
3611 * @memberof LuCI.baseclass
3612 *
3613 * @param {Object&lt;string, *>} properties
3614 * An object describing the properties to add to the new
3615 * subclass.
3616 *
3617 * @returns {LuCI.baseclass}
3618 * Returns a new LuCI.baseclass subclassed from this class, extended
3619 * by the given properties and with its prototype set to this base
3620 * class to enable inheritance. The resulting value represents a
3621 * class constructor and can be instantiated with `new`.
3622 */
3623 extend: function(properties) {
3624 var props = {
3625 __id__: { value: classIndex },
3626 __base__: { value: this.prototype },
3627 __name__: { value: properties.__name__ || 'anonymous' + classIndex++ }
3628 };
3629
3630 var ClassConstructor = function() {
3631 if (!(this instanceof ClassConstructor))
3632 throw new TypeError('Constructor must not be called without "new"');
3633
3634 if (Object.getPrototypeOf(this).hasOwnProperty('__init__')) {
3635 if (typeof(this.__init__) != 'function')
3636 throw new TypeError('Class __init__ member is not a function');
3637
3638 this.__init__.apply(this, arguments)
3639 }
3640 else {
3641 this.super('__init__', arguments);
3642 }
3643 };
3644
3645 for (var key in properties)
3646 if (!props[key] &amp;&amp; properties.hasOwnProperty(key))
3647 props[key] = { value: properties[key], writable: true };
3648
3649 ClassConstructor.prototype = Object.create(this.prototype, props);
3650 ClassConstructor.prototype.constructor = ClassConstructor;
3651 Object.assign(ClassConstructor, this);
3652 ClassConstructor.displayName = toCamelCase(props.__name__.value + 'Class');
3653
3654 return ClassConstructor;
3655 },
3656
3657 /**
3658 * Extends this base class with the properties described in
3659 * `properties`, instantiates the resulting subclass using
3660 * the additional optional arguments passed to this function
3661 * and returns the resulting subclassed Class instance.
3662 *
3663 * This function serves as a convenience shortcut for
3664 * {@link LuCI.baseclass.extend Class.extend()} and subsequent
3665 * `new`.
3666 *
3667 * @memberof LuCI.baseclass
3668 *
3669 * @param {Object&lt;string, *>} properties
3670 * An object describing the properties to add to the new
3671 * subclass.
3672 *
3673 * @param {...*} [new_args]
3674 * Specifies arguments to be passed to the subclass constructor
3675 * as-is in order to instantiate the new subclass.
3676 *
3677 * @returns {LuCI.baseclass}
3678 * Returns a new LuCI.baseclass instance extended by the given
3679 * properties with its prototype set to this base class to
3680 * enable inheritance.
3681 */
3682 singleton: function(properties /*, ... */) {
3683 return Class.extend(properties)
3684 .instantiate(Class.prototype.varargs(arguments, 1));
3685 },
3686
3687 /**
3688 * Calls the class constructor using `new` with the given argument
3689 * array being passed as variadic parameters to the constructor.
3690 *
3691 * @memberof LuCI.baseclass
3692 *
3693 * @param {Array&lt;*>} params
3694 * An array of arbitrary values which will be passed as arguments
3695 * to the constructor function.
3696 *
3697 * @param {...*} [new_args]
3698 * Specifies arguments to be passed to the subclass constructor
3699 * as-is in order to instantiate the new subclass.
3700 *
3701 * @returns {LuCI.baseclass}
3702 * Returns a new LuCI.baseclass instance extended by the given
3703 * properties with its prototype set to this base class to
3704 * enable inheritance.
3705 */
3706 instantiate: function(args) {
3707 return new (Function.prototype.bind.apply(this,
3708 Class.prototype.varargs(args, 0, null)))();
3709 },
3710
3711 /* unused */
3712 call: function(self, method) {
3713 if (typeof(this.prototype[method]) != 'function')
3714 throw new ReferenceError(method + ' is not defined in class');
3715
3716 return this.prototype[method].apply(self, self.varargs(arguments, 1));
3717 },
3718
3719 /**
3720 * Checks whether the given class value is a subclass of this class.
3721 *
3722 * @memberof LuCI.baseclass
3723 *
3724 * @param {LuCI.baseclass} classValue
3725 * The class object to test.
3726 *
3727 * @returns {boolean}
3728 * Returns `true` when the given `classValue` is a subclass of this
3729 * class or `false` if the given value is not a valid class or not
3730 * a subclass of this class'.
3731 */
3732 isSubclass: function(classValue) {
3733 return (classValue != null &amp;&amp;
3734 typeof(classValue) == 'function' &amp;&amp;
3735 classValue.prototype instanceof this);
3736 },
3737
3738 prototype: {
3739 /**
3740 * Extract all values from the given argument array beginning from
3741 * `offset` and prepend any further given optional parameters to
3742 * the beginning of the resulting array copy.
3743 *
3744 * @memberof LuCI.baseclass
3745 * @instance
3746 *
3747 * @param {Array&lt;*>} args
3748 * The array to extract the values from.
3749 *
3750 * @param {number} offset
3751 * The offset from which to extract the values. An offset of `0`
3752 * would copy all values till the end.
3753 *
3754 * @param {...*} [extra_args]
3755 * Extra arguments to add to prepend to the resulting array.
3756 *
3757 * @returns {Array&lt;*>}
3758 * Returns a new array consisting of the optional extra arguments
3759 * and the values extracted from the `args` array beginning with
3760 * `offset`.
3761 */
3762 varargs: function(args, offset /*, ... */) {
3763 return Array.prototype.slice.call(arguments, 2)
3764 .concat(Array.prototype.slice.call(args, offset));
3765 },
3766
3767 /**
3768 * Walks up the parent class chain and looks for a class member
3769 * called `key` in any of the parent classes this class inherits
3770 * from. Returns the member value of the superclass or calls the
3771 * member as function and returns its return value when the
3772 * optional `callArgs` array is given.
3773 *
3774 * This function has two signatures and is sensitive to the
3775 * amount of arguments passed to it:
3776 * - `super('key')` -
3777 * Returns the value of `key` when found within one of the
3778 * parent classes.
3779 * - `super('key', ['arg1', 'arg2'])` -
3780 * Calls the `key()` method with parameters `arg1` and `arg2`
3781 * when found within one of the parent classes.
3782 *
3783 * @memberof LuCI.baseclass
3784 * @instance
3785 *
3786 * @param {string} key
3787 * The name of the superclass member to retrieve.
3788 *
3789 * @param {Array&lt;*>} [callArgs]
3790 * An optional array of function call parameters to use. When
3791 * this parameter is specified, the found member value is called
3792 * as function using the values of this array as arguments.
3793 *
3794 * @throws {ReferenceError}
3795 * Throws a `ReferenceError` when `callArgs` are specified and
3796 * the found member named by `key` is not a function value.
3797 *
3798 * @returns {*|null}
3799 * Returns the value of the found member or the return value of
3800 * the call to the found method. Returns `null` when no member
3801 * was found in the parent class chain or when the call to the
3802 * superclass method returned `null`.
3803 */
3804 super: function(key, callArgs) {
3805 if (key == null)
3806 return null;
3807
3808 var slotIdx = this.__id__ + '.' + key,
3809 symStack = superContext[slotIdx],
3810 protoCtx = null;
3811
3812 for (protoCtx = Object.getPrototypeOf(symStack ? symStack[0] : Object.getPrototypeOf(this));
3813 protoCtx != null &amp;&amp; !protoCtx.hasOwnProperty(key);
3814 protoCtx = Object.getPrototypeOf(protoCtx)) {}
3815
3816 if (protoCtx == null)
3817 return null;
3818
3819 var res = protoCtx[key];
3820
3821 if (arguments.length > 1) {
3822 if (typeof(res) != 'function')
3823 throw new ReferenceError(key + ' is not a function in base class');
3824
3825 if (typeof(callArgs) != 'object')
3826 callArgs = this.varargs(arguments, 1);
3827
3828 if (symStack)
3829 symStack.unshift(protoCtx);
3830 else
3831 superContext[slotIdx] = [ protoCtx ];
3832
3833 res = res.apply(this, callArgs);
3834
3835 if (symStack &amp;&amp; symStack.length > 1)
3836 symStack.shift(protoCtx);
3837 else
3838 delete superContext[slotIdx];
3839 }
3840
3841 return res;
3842 },
3843
3844 /**
3845 * Returns a string representation of this class.
3846 *
3847 * @returns {string}
3848 * Returns a string representation of this class containing the
3849 * constructor functions `displayName` and describing the class
3850 * members and their respective types.
3851 */
3852 toString: function() {
3853 var s = '[' + this.constructor.displayName + ']', f = true;
3854 for (var k in this) {
3855 if (this.hasOwnProperty(k)) {
3856 s += (f ? ' {\n' : '') + ' ' + k + ': ' + typeof(this[k]) + '\n';
3857 f = false;
3858 }
3859 }
3860 return s + (f ? '' : '}');
3861 }
3862 }
3863 });
3864
3865
3866 /**
3867 * @class headers
3868 * @memberof LuCI
3869 * @hideconstructor
3870 * @classdesc
3871 *
3872 * The `Headers` class is an internal utility class exposed in HTTP
3873 * response objects using the `response.headers` property.
3874 */
3875 var Headers = Class.extend(/** @lends LuCI.headers.prototype */ {
3876 __name__: 'LuCI.headers',
3877 __init__: function(xhr) {
3878 var hdrs = this.headers = {};
3879 xhr.getAllResponseHeaders().split(/\r\n/).forEach(function(line) {
3880 var m = /^([^:]+):(.*)$/.exec(line);
3881 if (m != null)
3882 hdrs[m[1].trim().toLowerCase()] = m[2].trim();
3883 });
3884 },
3885
3886 /**
3887 * Checks whether the given header name is present.
3888 * Note: Header-Names are case-insensitive.
3889 *
3890 * @instance
3891 * @memberof LuCI.headers
3892 * @param {string} name
3893 * The header name to check
3894 *
3895 * @returns {boolean}
3896 * Returns `true` if the header name is present, `false` otherwise
3897 */
3898 has: function(name) {
3899 return this.headers.hasOwnProperty(String(name).toLowerCase());
3900 },
3901
3902 /**
3903 * Returns the value of the given header name.
3904 * Note: Header-Names are case-insensitive.
3905 *
3906 * @instance
3907 * @memberof LuCI.headers
3908 * @param {string} name
3909 * The header name to read
3910 *
3911 * @returns {string|null}
3912 * The value of the given header name or `null` if the header isn't present.
3913 */
3914 get: function(name) {
3915 var key = String(name).toLowerCase();
3916 return this.headers.hasOwnProperty(key) ? this.headers[key] : null;
3917 }
3918 });
3919
3920 /**
3921 * @class response
3922 * @memberof LuCI
3923 * @hideconstructor
3924 * @classdesc
3925 *
3926 * The `Response` class is an internal utility class representing HTTP responses.
3927 */
3928 var Response = Class.extend({
3929 __name__: 'LuCI.response',
3930 __init__: function(xhr, url, duration, headers, content) {
3931 /**
3932 * Describes whether the response is successful (status codes `200..299`) or not
3933 * @instance
3934 * @memberof LuCI.response
3935 * @name ok
3936 * @type {boolean}
3937 */
3938 this.ok = (xhr.status >= 200 &amp;&amp; xhr.status &lt;= 299);
3939
3940 /**
3941 * The numeric HTTP status code of the response
3942 * @instance
3943 * @memberof LuCI.response
3944 * @name status
3945 * @type {number}
3946 */
3947 this.status = xhr.status;
3948
3949 /**
3950 * The HTTP status description message of the response
3951 * @instance
3952 * @memberof LuCI.response
3953 * @name statusText
3954 * @type {string}
3955 */
3956 this.statusText = xhr.statusText;
3957
3958 /**
3959 * The HTTP headers of the response
3960 * @instance
3961 * @memberof LuCI.response
3962 * @name headers
3963 * @type {LuCI.headers}
3964 */
3965 this.headers = (headers != null) ? headers : new Headers(xhr);
3966
3967 /**
3968 * The total duration of the HTTP request in milliseconds
3969 * @instance
3970 * @memberof LuCI.response
3971 * @name duration
3972 * @type {number}
3973 */
3974 this.duration = duration;
3975
3976 /**
3977 * The final URL of the request, i.e. after following redirects.
3978 * @instance
3979 * @memberof LuCI.response
3980 * @name url
3981 * @type {string}
3982 */
3983 this.url = url;
3984
3985 /* privates */
3986 this.xhr = xhr;
3987
3988 if (content instanceof Blob) {
3989 this.responseBlob = content;
3990 this.responseJSON = null;
3991 this.responseText = null;
3992 }
3993 else if (content != null &amp;&amp; typeof(content) == 'object') {
3994 this.responseBlob = null;
3995 this.responseJSON = content;
3996 this.responseText = null;
3997 }
3998 else if (content != null) {
3999 this.responseBlob = null;
4000 this.responseJSON = null;
4001 this.responseText = String(content);
4002 }
4003 else {
4004 this.responseJSON = null;
4005
4006 if (xhr.responseType == 'blob') {
4007 this.responseBlob = xhr.response;
4008 this.responseText = null;
4009 }
4010 else {
4011 this.responseBlob = null;
4012 this.responseText = xhr.responseText;
4013 }
4014 }
4015 },
4016
4017 /**
4018 * Clones the given response object, optionally overriding the content
4019 * of the cloned instance.
4020 *
4021 * @instance
4022 * @memberof LuCI.response
4023 * @param {*} [content]
4024 * Override the content of the cloned response. Object values will be
4025 * treated as JSON response data, all other types will be converted
4026 * using `String()` and treated as response text.
4027 *
4028 * @returns {LuCI.response}
4029 * The cloned `Response` instance.
4030 */
4031 clone: function(content) {
4032 var copy = new Response(this.xhr, this.url, this.duration, this.headers, content);
4033
4034 copy.ok = this.ok;
4035 copy.status = this.status;
4036 copy.statusText = this.statusText;
4037
4038 return copy;
4039 },
4040
4041 /**
4042 * Access the response content as JSON data.
4043 *
4044 * @instance
4045 * @memberof LuCI.response
4046 * @throws {SyntaxError}
4047 * Throws `SyntaxError` if the content isn't valid JSON.
4048 *
4049 * @returns {*}
4050 * The parsed JSON data.
4051 */
4052 json: function() {
4053 if (this.responseJSON == null)
4054 this.responseJSON = JSON.parse(this.responseText);
4055
4056 return this.responseJSON;
4057 },
4058
4059 /**
4060 * Access the response content as string.
4061 *
4062 * @instance
4063 * @memberof LuCI.response
4064 * @returns {string}
4065 * The response content.
4066 */
4067 text: function() {
4068 if (this.responseText == null &amp;&amp; this.responseJSON != null)
4069 this.responseText = JSON.stringify(this.responseJSON);
4070
4071 return this.responseText;
4072 },
4073
4074 /**
4075 * Access the response content as blob.
4076 *
4077 * @instance
4078 * @memberof LuCI.response
4079 * @returns {Blob}
4080 * The response content as blob.
4081 */
4082 blob: function() {
4083 return this.responseBlob;
4084 }
4085 });
4086
4087
4088 var requestQueue = [];
4089
4090 function isQueueableRequest(opt) {
4091 if (!classes.rpc)
4092 return false;
4093
4094 if (opt.method != 'POST' || typeof(opt.content) != 'object')
4095 return false;
4096
4097 if (opt.nobatch === true)
4098 return false;
4099
4100 var rpcBaseURL = Request.expandURL(classes.rpc.getBaseURL());
4101
4102 return (rpcBaseURL != null &amp;&amp; opt.url.indexOf(rpcBaseURL) == 0);
4103 }
4104
4105 function flushRequestQueue() {
4106 if (!requestQueue.length)
4107 return;
4108
4109 var reqopt = Object.assign({}, requestQueue[0][0], { content: [], nobatch: true }),
4110 batch = [];
4111
4112 for (var i = 0; i &lt; requestQueue.length; i++) {
4113 batch[i] = requestQueue[i];
4114 reqopt.content[i] = batch[i][0].content;
4115 }
4116
4117 requestQueue.length = 0;
4118
4119 Request.request(rpcBaseURL, reqopt).then(function(reply) {
4120 var json = null, req = null;
4121
4122 try { json = reply.json() }
4123 catch(e) { }
4124
4125 while ((req = batch.shift()) != null)
4126 if (Array.isArray(json) &amp;&amp; json.length)
4127 req[2].call(reqopt, reply.clone(json.shift()));
4128 else
4129 req[1].call(reqopt, new Error('No related RPC reply'));
4130 }).catch(function(error) {
4131 var req = null;
4132
4133 while ((req = batch.shift()) != null)
4134 req[1].call(reqopt, error);
4135 });
4136 }
4137
4138 /**
4139 * @class request
4140 * @memberof LuCI
4141 * @hideconstructor
4142 * @classdesc
4143 *
4144 * The `Request` class allows initiating HTTP requests and provides utilities
4145 * for dealing with responses.
4146 */
4147 var Request = Class.singleton(/** @lends LuCI.request.prototype */ {
4148 __name__: 'LuCI.request',
4149
4150 interceptors: [],
4151
4152 /**
4153 * Turn the given relative URL into an absolute URL if necessary.
4154 *
4155 * @instance
4156 * @memberof LuCI.request
4157 * @param {string} url
4158 * The URL to convert.
4159 *
4160 * @returns {string}
4161 * The absolute URL derived from the given one, or the original URL
4162 * if it already was absolute.
4163 */
4164 expandURL: function(url) {
4165 if (!/^(?:[^/]+:)?\/\//.test(url))
4166 url = location.protocol + '//' + location.host + url;
4167
4168 return url;
4169 },
4170
4171 /**
4172 * @typedef {Object} RequestOptions
4173 * @memberof LuCI.request
4174 *
4175 * @property {string} [method=GET]
4176 * The HTTP method to use, e.g. `GET` or `POST`.
4177 *
4178 * @property {Object&lt;string, Object|string>} [query]
4179 * Query string data to append to the URL. Non-string values of the
4180 * given object will be converted to JSON.
4181 *
4182 * @property {boolean} [cache=false]
4183 * Specifies whether the HTTP response may be retrieved from cache.
4184 *
4185 * @property {string} [username]
4186 * Provides a username for HTTP basic authentication.
4187 *
4188 * @property {string} [password]
4189 * Provides a password for HTTP basic authentication.
4190 *
4191 * @property {number} [timeout]
4192 * Specifies the request timeout in milliseconds.
4193 *
4194 * @property {boolean} [credentials=false]
4195 * Whether to include credentials such as cookies in the request.
4196 *
4197 * @property {string} [responseType=text]
4198 * Overrides the request response type. Valid values or `text` to
4199 * interpret the response as UTF-8 string or `blob` to handle the
4200 * response as binary `Blob` data.
4201 *
4202 * @property {*} [content]
4203 * Specifies the HTTP message body to send along with the request.
4204 * If the value is a function, it is invoked and the return value
4205 * used as content, if it is a FormData instance, it is used as-is,
4206 * if it is an object, it will be converted to JSON, in all other
4207 * cases it is converted to a string.
4208 *
4209 * @property {Object&lt;string, string>} [header]
4210 * Specifies HTTP headers to set for the request.
4211 *
4212 * @property {function} [progress]
4213 * An optional request callback function which receives ProgressEvent
4214 * instances as sole argument during the HTTP request transfer.
4215 */
4216
4217 /**
4218 * Initiate an HTTP request to the given target.
4219 *
4220 * @instance
4221 * @memberof LuCI.request
4222 * @param {string} target
4223 * The URL to request.
4224 *
4225 * @param {LuCI.request.RequestOptions} [options]
4226 * Additional options to configure the request.
4227 *
4228 * @returns {Promise&lt;LuCI.response>}
4229 * The resulting HTTP response.
4230 */
4231 request: function(target, options) {
4232 return Promise.resolve(target).then((function(url) {
4233 var state = { xhr: new XMLHttpRequest(), url: this.expandURL(url), start: Date.now() },
4234 opt = Object.assign({}, options, state),
4235 content = null,
4236 contenttype = null,
4237 callback = this.handleReadyStateChange;
4238
4239 return new Promise(function(resolveFn, rejectFn) {
4240 opt.xhr.onreadystatechange = callback.bind(opt, resolveFn, rejectFn);
4241 opt.method = String(opt.method || 'GET').toUpperCase();
4242
4243 if ('query' in opt) {
4244 var q = (opt.query != null) ? Object.keys(opt.query).map(function(k) {
4245 if (opt.query[k] != null) {
4246 var v = (typeof(opt.query[k]) == 'object')
4247 ? JSON.stringify(opt.query[k])
4248 : String(opt.query[k]);
4249
4250 return '%s=%s'.format(encodeURIComponent(k), encodeURIComponent(v));
4251 }
4252 else {
4253 return encodeURIComponent(k);
4254 }
4255 }).join('&amp;') : '';
4256
4257 if (q !== '') {
4258 switch (opt.method) {
4259 case 'GET':
4260 case 'HEAD':
4261 case 'OPTIONS':
4262 opt.url += ((/\?/).test(opt.url) ? '&amp;' : '?') + q;
4263 break;
4264
4265 default:
4266 if (content == null) {
4267 content = q;
4268 contenttype = 'application/x-www-form-urlencoded';
4269 }
4270 }
4271 }
4272 }
4273
4274 if (!opt.cache)
4275 opt.url += ((/\?/).test(opt.url) ? '&amp;' : '?') + (new Date()).getTime();
4276
4277 if (isQueueableRequest(opt)) {
4278 requestQueue.push([opt, rejectFn, resolveFn]);
4279 requestAnimationFrame(flushRequestQueue);
4280 return;
4281 }
4282
4283 if ('username' in opt &amp;&amp; 'password' in opt)
4284 opt.xhr.open(opt.method, opt.url, true, opt.username, opt.password);
4285 else
4286 opt.xhr.open(opt.method, opt.url, true);
4287
4288 opt.xhr.responseType = opt.responseType || 'text';
4289
4290 if ('overrideMimeType' in opt.xhr)
4291 opt.xhr.overrideMimeType('application/octet-stream');
4292
4293 if ('timeout' in opt)
4294 opt.xhr.timeout = +opt.timeout;
4295
4296 if ('credentials' in opt)
4297 opt.xhr.withCredentials = !!opt.credentials;
4298
4299 if (opt.content != null) {
4300 switch (typeof(opt.content)) {
4301 case 'function':
4302 content = opt.content(opt.xhr);
4303 break;
4304
4305 case 'object':
4306 if (!(opt.content instanceof FormData)) {
4307 content = JSON.stringify(opt.content);
4308 contenttype = 'application/json';
4309 }
4310 else {
4311 content = opt.content;
4312 }
4313 break;
4314
4315 default:
4316 content = String(opt.content);
4317 }
4318 }
4319
4320 if ('headers' in opt)
4321 for (var header in opt.headers)
4322 if (opt.headers.hasOwnProperty(header)) {
4323 if (header.toLowerCase() != 'content-type')
4324 opt.xhr.setRequestHeader(header, opt.headers[header]);
4325 else
4326 contenttype = opt.headers[header];
4327 }
4328
4329 if ('progress' in opt &amp;&amp; 'upload' in opt.xhr)
4330 opt.xhr.upload.addEventListener('progress', opt.progress);
4331
4332 if (contenttype != null)
4333 opt.xhr.setRequestHeader('Content-Type', contenttype);
4334
4335 try {
4336 opt.xhr.send(content);
4337 }
4338 catch (e) {
4339 rejectFn.call(opt, e);
4340 }
4341 });
4342 }).bind(this));
4343 },
4344
4345 handleReadyStateChange: function(resolveFn, rejectFn, ev) {
4346 var xhr = this.xhr,
4347 duration = Date.now() - this.start;
4348
4349 if (xhr.readyState !== 4)
4350 return;
4351
4352 if (xhr.status === 0 &amp;&amp; xhr.statusText === '') {
4353 if (duration >= this.timeout)
4354 rejectFn.call(this, new Error('XHR request timed out'));
4355 else
4356 rejectFn.call(this, new Error('XHR request aborted by browser'));
4357 }
4358 else {
4359 var response = new Response(
4360 xhr, xhr.responseURL || this.url, duration);
4361
4362 Promise.all(Request.interceptors.map(function(fn) { return fn(response) }))
4363 .then(resolveFn.bind(this, response))
4364 .catch(rejectFn.bind(this));
4365 }
4366 },
4367
4368 /**
4369 * Initiate an HTTP GET request to the given target.
4370 *
4371 * @instance
4372 * @memberof LuCI.request
4373 * @param {string} url
4374 * The URL to request.
4375 *
4376 * @param {LuCI.request.RequestOptions} [options]
4377 * Additional options to configure the request.
4378 *
4379 * @returns {Promise&lt;LuCI.response>}
4380 * The resulting HTTP response.
4381 */
4382 get: function(url, options) {
4383 return this.request(url, Object.assign({ method: 'GET' }, options));
4384 },
4385
4386 /**
4387 * Initiate an HTTP POST request to the given target.
4388 *
4389 * @instance
4390 * @memberof LuCI.request
4391 * @param {string} url
4392 * The URL to request.
4393 *
4394 * @param {*} [data]
4395 * The request data to send, see {@link LuCI.request.RequestOptions} for details.
4396 *
4397 * @param {LuCI.request.RequestOptions} [options]
4398 * Additional options to configure the request.
4399 *
4400 * @returns {Promise&lt;LuCI.response>}
4401 * The resulting HTTP response.
4402 */
4403 post: function(url, data, options) {
4404 return this.request(url, Object.assign({ method: 'POST', content: data }, options));
4405 },
4406
4407 /**
4408 * Interceptor functions are invoked whenever an HTTP reply is received, in the order
4409 * these functions have been registered.
4410 * @callback LuCI.request.interceptorFn
4411 * @param {LuCI.response} res
4412 * The HTTP response object
4413 */
4414
4415 /**
4416 * Register an HTTP response interceptor function. Interceptor
4417 * functions are useful to perform default actions on incoming HTTP
4418 * responses, such as checking for expired authentication or for
4419 * implementing request retries before returning a failure.
4420 *
4421 * @instance
4422 * @memberof LuCI.request
4423 * @param {LuCI.request.interceptorFn} interceptorFn
4424 * The interceptor function to register.
4425 *
4426 * @returns {LuCI.request.interceptorFn}
4427 * The registered function.
4428 */
4429 addInterceptor: function(interceptorFn) {
4430 if (typeof(interceptorFn) == 'function')
4431 this.interceptors.push(interceptorFn);
4432 return interceptorFn;
4433 },
4434
4435 /**
4436 * Remove an HTTP response interceptor function. The passed function
4437 * value must be the very same value that was used to register the
4438 * function.
4439 *
4440 * @instance
4441 * @memberof LuCI.request
4442 * @param {LuCI.request.interceptorFn} interceptorFn
4443 * The interceptor function to remove.
4444 *
4445 * @returns {boolean}
4446 * Returns `true` if any function has been removed, else `false`.
4447 */
4448 removeInterceptor: function(interceptorFn) {
4449 var oldlen = this.interceptors.length, i = oldlen;
4450 while (i--)
4451 if (this.interceptors[i] === interceptorFn)
4452 this.interceptors.splice(i, 1);
4453 return (this.interceptors.length &lt; oldlen);
4454 },
4455
4456 /**
4457 * @class
4458 * @memberof LuCI.request
4459 * @hideconstructor
4460 * @classdesc
4461 *
4462 * The `Request.poll` class provides some convince wrappers around
4463 * {@link LuCI.poll} mainly to simplify registering repeating HTTP
4464 * request calls as polling functions.
4465 */
4466 poll: {
4467 /**
4468 * The callback function is invoked whenever an HTTP reply to a
4469 * polled request is received or when the polled request timed
4470 * out.
4471 *
4472 * @callback LuCI.request.poll~callbackFn
4473 * @param {LuCI.response} res
4474 * The HTTP response object.
4475 *
4476 * @param {*} data
4477 * The response JSON if the response could be parsed as such,
4478 * else `null`.
4479 *
4480 * @param {number} duration
4481 * The total duration of the request in milliseconds.
4482 */
4483
4484 /**
4485 * Register a repeating HTTP request with an optional callback
4486 * to invoke whenever a response for the request is received.
4487 *
4488 * @instance
4489 * @memberof LuCI.request.poll
4490 * @param {number} interval
4491 * The poll interval in seconds.
4492 *
4493 * @param {string} url
4494 * The URL to request on each poll.
4495 *
4496 * @param {LuCI.request.RequestOptions} [options]
4497 * Additional options to configure the request.
4498 *
4499 * @param {LuCI.request.poll~callbackFn} [callback]
4500 * {@link LuCI.request.poll~callbackFn Callback} function to
4501 * invoke for each HTTP reply.
4502 *
4503 * @throws {TypeError}
4504 * Throws `TypeError` when an invalid interval was passed.
4505 *
4506 * @returns {function}
4507 * Returns the internally created poll function.
4508 */
4509 add: function(interval, url, options, callback) {
4510 if (isNaN(interval) || interval &lt;= 0)
4511 throw new TypeError('Invalid poll interval');
4512
4513 var ival = interval >>> 0,
4514 opts = Object.assign({}, options, { timeout: ival * 1000 - 5 });
4515
4516 var fn = function() {
4517 return Request.request(url, options).then(function(res) {
4518 if (!Poll.active())
4519 return;
4520
4521 var res_json = null;
4522 try {
4523 res_json = res.json();
4524 }
4525 catch (err) {}
4526
4527 callback(res, res_json, res.duration);
4528 });
4529 };
4530
4531 return (Poll.add(fn, ival) ? fn : null);
4532 },
4533
4534 /**
4535 * Remove a polling request that has been previously added using `add()`.
4536 * This function is essentially a wrapper around
4537 * {@link LuCI.poll.remove LuCI.poll.remove()}.
4538 *
4539 * @instance
4540 * @memberof LuCI.request.poll
4541 * @param {function} entry
4542 * The poll function returned by {@link LuCI.request.poll#add add()}.
4543 *
4544 * @returns {boolean}
4545 * Returns `true` if any function has been removed, else `false`.
4546 */
4547 remove: function(entry) { return Poll.remove(entry) },
4548
4549 /**
4550 * Alias for {@link LuCI.poll.start LuCI.poll.start()}.
4551 *
4552 * @instance
4553 * @memberof LuCI.request.poll
4554 */
4555 start: function() { return Poll.start() },
4556
4557 /**
4558 * Alias for {@link LuCI.poll.stop LuCI.poll.stop()}.
4559 *
4560 * @instance
4561 * @memberof LuCI.request.poll
4562 */
4563 stop: function() { return Poll.stop() },
4564
4565 /**
4566 * Alias for {@link LuCI.poll.active LuCI.poll.active()}.
4567 *
4568 * @instance
4569 * @memberof LuCI.request.poll
4570 */
4571 active: function() { return Poll.active() }
4572 }
4573 });
4574
4575 /**
4576 * @class poll
4577 * @memberof LuCI
4578 * @hideconstructor
4579 * @classdesc
4580 *
4581 * The `Poll` class allows registering and unregistering poll actions,
4582 * as well as starting, stopping and querying the state of the polling
4583 * loop.
4584 */
4585 var Poll = Class.singleton(/** @lends LuCI.poll.prototype */ {
4586 __name__: 'LuCI.poll',
4587
4588 queue: [],
4589
4590 /**
4591 * Add a new operation to the polling loop. If the polling loop is not
4592 * already started at this point, it will be implicitly started.
4593 *
4594 * @instance
4595 * @memberof LuCI.poll
4596 * @param {function} fn
4597 * The function to invoke on each poll interval.
4598 *
4599 * @param {number} interval
4600 * The poll interval in seconds.
4601 *
4602 * @throws {TypeError}
4603 * Throws `TypeError` when an invalid interval was passed.
4604 *
4605 * @returns {boolean}
4606 * Returns `true` if the function has been added or `false` if it
4607 * already is registered.
4608 */
4609 add: function(fn, interval) {
4610 if (interval == null || interval &lt;= 0)
4611 interval = env.pollinterval || null;
4612
4613 if (isNaN(interval) || typeof(fn) != 'function')
4614 throw new TypeError('Invalid argument to LuCI.poll.add()');
4615
4616 for (var i = 0; i &lt; this.queue.length; i++)
4617 if (this.queue[i].fn === fn)
4618 return false;
4619
4620 var e = {
4621 r: true,
4622 i: interval >>> 0,
4623 fn: fn
4624 };
4625
4626 this.queue.push(e);
4627
4628 if (this.tick != null &amp;&amp; !this.active())
4629 this.start();
4630
4631 return true;
4632 },
4633
4634 /**
4635 * Remove an operation from the polling loop. If no further operations
4636 * are registered, the polling loop is implicitly stopped.
4637 *
4638 * @instance
4639 * @memberof LuCI.poll
4640 * @param {function} fn
4641 * The function to remove.
4642 *
4643 * @throws {TypeError}
4644 * Throws `TypeError` when the given argument isn't a function.
4645 *
4646 * @returns {boolean}
4647 * Returns `true` if the function has been removed or `false` if it
4648 * wasn't found.
4649 */
4650 remove: function(fn) {
4651 if (typeof(fn) != 'function')
4652 throw new TypeError('Invalid argument to LuCI.poll.remove()');
4653
4654 var len = this.queue.length;
4655
4656 for (var i = len; i > 0; i--)
4657 if (this.queue[i-1].fn === fn)
4658 this.queue.splice(i-1, 1);
4659
4660 if (!this.queue.length &amp;&amp; this.stop())
4661 this.tick = 0;
4662
4663 return (this.queue.length != len);
4664 },
4665
4666 /**
4667 * (Re)start the polling loop. Dispatches a custom `poll-start` event
4668 * to the `document` object upon successful start.
4669 *
4670 * @instance
4671 * @memberof LuCI.poll
4672 * @returns {boolean}
4673 * Returns `true` if polling has been started (or if no functions
4674 * where registered) or `false` when the polling loop already runs.
4675 */
4676 start: function() {
4677 if (this.active())
4678 return false;
4679
4680 this.tick = 0;
4681
4682 if (this.queue.length) {
4683 this.timer = window.setInterval(this.step, 1000);
4684 this.step();
4685 document.dispatchEvent(new CustomEvent('poll-start'));
4686 }
4687
4688 return true;
4689 },
4690
4691 /**
4692 * Stop the polling loop. Dispatches a custom `poll-stop` event
4693 * to the `document` object upon successful stop.
4694 *
4695 * @instance
4696 * @memberof LuCI.poll
4697 * @returns {boolean}
4698 * Returns `true` if polling has been stopped or `false` if it didn't
4699 * run to begin with.
4700 */
4701 stop: function() {
4702 if (!this.active())
4703 return false;
4704
4705 document.dispatchEvent(new CustomEvent('poll-stop'));
4706 window.clearInterval(this.timer);
4707 delete this.timer;
4708 delete this.tick;
4709 return true;
4710 },
4711
4712 /* private */
4713 step: function() {
4714 for (var i = 0, e = null; (e = Poll.queue[i]) != null; i++) {
4715 if ((Poll.tick % e.i) != 0)
4716 continue;
4717
4718 if (!e.r)
4719 continue;
4720
4721 e.r = false;
4722
4723 Promise.resolve(e.fn()).finally((function() { this.r = true }).bind(e));
4724 }
4725
4726 Poll.tick = (Poll.tick + 1) % Math.pow(2, 32);
4727 },
4728
4729 /**
4730 * Test whether the polling loop is running.
4731 *
4732 * @instance
4733 * @memberof LuCI.poll
4734 * @returns {boolean} - Returns `true` if polling is active, else `false`.
4735 */
4736 active: function() {
4737 return (this.timer != null);
4738 }
4739 });
4740
4741 /**
4742 * @class dom
4743 * @memberof LuCI
4744 * @hideconstructor
4745 * @classdesc
4746 *
4747 * The `dom` class provides convenience method for creating and
4748 * manipulating DOM elements.
4749 *
4750 * To import the class in views, use `'require dom'`, to import it in
4751 * external JavaScript, use `L.require("dom").then(...)`.
4752 */
4753 var DOM = Class.singleton(/** @lends LuCI.dom.prototype */ {
4754 __name__: 'LuCI.dom',
4755
4756 /**
4757 * Tests whether the given argument is a valid DOM `Node`.
4758 *
4759 * @instance
4760 * @memberof LuCI.dom
4761 * @param {*} e
4762 * The value to test.
4763 *
4764 * @returns {boolean}
4765 * Returns `true` if the value is a DOM `Node`, else `false`.
4766 */
4767 elem: function(e) {
4768 return (e != null &amp;&amp; typeof(e) == 'object' &amp;&amp; 'nodeType' in e);
4769 },
4770
4771 /**
4772 * Parses a given string as HTML and returns the first child node.
4773 *
4774 * @instance
4775 * @memberof LuCI.dom
4776 * @param {string} s
4777 * A string containing an HTML fragment to parse. Note that only
4778 * the first result of the resulting structure is returned, so an
4779 * input value of `&lt;div>foo&lt;/div> &lt;div>bar&lt;/div>` will only return
4780 * the first `div` element node.
4781 *
4782 * @returns {Node}
4783 * Returns the first DOM `Node` extracted from the HTML fragment or
4784 * `null` on parsing failures or if no element could be found.
4785 */
4786 parse: function(s) {
4787 var elem = null;
4788
4789 try {
4790 domParser = domParser || new DOMParser();
4791 elem = domParser.parseFromString(s, 'text/html').body.firstChild;
4792 }
4793 catch(e) {}
4794
4795 return elem;
4796 },
4797
4798 /**
4799 * Tests whether a given `Node` matches the given query selector.
4800 *
4801 * This function is a convenience wrapper around the standard
4802 * `Node.matches("selector")` function with the added benefit that
4803 * the `node` argument may be a non-`Node` value, in which case
4804 * this function simply returns `false`.
4805 *
4806 * @instance
4807 * @memberof LuCI.dom
4808 * @param {*} node
4809 * The `Node` argument to test the selector against.
4810 *
4811 * @param {string} [selector]
4812 * The query selector expression to test against the given node.
4813 *
4814 * @returns {boolean}
4815 * Returns `true` if the given node matches the specified selector
4816 * or `false` when the node argument is no valid DOM `Node` or the
4817 * selector didn't match.
4818 */
4819 matches: function(node, selector) {
4820 var m = this.elem(node) ? node.matches || node.msMatchesSelector : null;
4821 return m ? m.call(node, selector) : false;
4822 },
4823
4824 /**
4825 * Returns the closest parent node that matches the given query
4826 * selector expression.
4827 *
4828 * This function is a convenience wrapper around the standard
4829 * `Node.closest("selector")` function with the added benefit that
4830 * the `node` argument may be a non-`Node` value, in which case
4831 * this function simply returns `null`.
4832 *
4833 * @instance
4834 * @memberof LuCI.dom
4835 * @param {*} node
4836 * The `Node` argument to find the closest parent for.
4837 *
4838 * @param {string} [selector]
4839 * The query selector expression to test against each parent.
4840 *
4841 * @returns {Node|null}
4842 * Returns the closest parent node matching the selector or
4843 * `null` when the node argument is no valid DOM `Node` or the
4844 * selector didn't match any parent.
4845 */
4846 parent: function(node, selector) {
4847 if (this.elem(node) &amp;&amp; node.closest)
4848 return node.closest(selector);
4849
4850 while (this.elem(node))
4851 if (this.matches(node, selector))
4852 return node;
4853 else
4854 node = node.parentNode;
4855
4856 return null;
4857 },
4858
4859 /**
4860 * Appends the given children data to the given node.
4861 *
4862 * @instance
4863 * @memberof LuCI.dom
4864 * @param {*} node
4865 * The `Node` argument to append the children to.
4866 *
4867 * @param {*} [children]
4868 * The children to append to the given node.
4869 *
4870 * When `children` is an array, then each item of the array
4871 * will be either appended as child element or text node,
4872 * depending on whether the item is a DOM `Node` instance or
4873 * some other non-`null` value. Non-`Node`, non-`null` values
4874 * will be converted to strings first before being passed as
4875 * argument to `createTextNode()`.
4876 *
4877 * When `children` is a function, it will be invoked with
4878 * the passed `node` argument as sole parameter and the `append`
4879 * function will be invoked again, with the given `node` argument
4880 * as first and the return value of the `children` function as
4881 * second parameter.
4882 *
4883 * When `children` is a DOM `Node` instance, it will be
4884 * appended to the given `node`.
4885 *
4886 * When `children` is any other non-`null` value, it will be
4887 * converted to a string and appended to the `innerHTML` property
4888 * of the given `node`.
4889 *
4890 * @returns {Node|null}
4891 * Returns the last children `Node` appended to the node or `null`
4892 * if either the `node` argument was no valid DOM `node` or if the
4893 * `children` was `null` or didn't result in further DOM nodes.
4894 */
4895 append: function(node, children) {
4896 if (!this.elem(node))
4897 return null;
4898
4899 if (Array.isArray(children)) {
4900 for (var i = 0; i &lt; children.length; i++)
4901 if (this.elem(children[i]))
4902 node.appendChild(children[i]);
4903 else if (children !== null &amp;&amp; children !== undefined)
4904 node.appendChild(document.createTextNode('' + children[i]));
4905
4906 return node.lastChild;
4907 }
4908 else if (typeof(children) === 'function') {
4909 return this.append(node, children(node));
4910 }
4911 else if (this.elem(children)) {
4912 return node.appendChild(children);
4913 }
4914 else if (children !== null &amp;&amp; children !== undefined) {
4915 node.innerHTML = '' + children;
4916 return node.lastChild;
4917 }
4918
4919 return null;
4920 },
4921
4922 /**
4923 * Replaces the content of the given node with the given children.
4924 *
4925 * This function first removes any children of the given DOM
4926 * `Node` and then adds the given children following the
4927 * rules outlined below.
4928 *
4929 * @instance
4930 * @memberof LuCI.dom
4931 * @param {*} node
4932 * The `Node` argument to replace the children of.
4933 *
4934 * @param {*} [children]
4935 * The children to replace into the given node.
4936 *
4937 * When `children` is an array, then each item of the array
4938 * will be either appended as child element or text node,
4939 * depending on whether the item is a DOM `Node` instance or
4940 * some other non-`null` value. Non-`Node`, non-`null` values
4941 * will be converted to strings first before being passed as
4942 * argument to `createTextNode()`.
4943 *
4944 * When `children` is a function, it will be invoked with
4945 * the passed `node` argument as sole parameter and the `append`
4946 * function will be invoked again, with the given `node` argument
4947 * as first and the return value of the `children` function as
4948 * second parameter.
4949 *
4950 * When `children` is a DOM `Node` instance, it will be
4951 * appended to the given `node`.
4952 *
4953 * When `children` is any other non-`null` value, it will be
4954 * converted to a string and appended to the `innerHTML` property
4955 * of the given `node`.
4956 *
4957 * @returns {Node|null}
4958 * Returns the last children `Node` appended to the node or `null`
4959 * if either the `node` argument was no valid DOM `node` or if the
4960 * `children` was `null` or didn't result in further DOM nodes.
4961 */
4962 content: function(node, children) {
4963 if (!this.elem(node))
4964 return null;
4965
4966 var dataNodes = node.querySelectorAll('[data-idref]');
4967
4968 for (var i = 0; i &lt; dataNodes.length; i++)
4969 delete this.registry[dataNodes[i].getAttribute('data-idref')];
4970
4971 while (node.firstChild)
4972 node.removeChild(node.firstChild);
4973
4974 return this.append(node, children);
4975 },
4976
4977 /**
4978 * Sets attributes or registers event listeners on element nodes.
4979 *
4980 * @instance
4981 * @memberof LuCI.dom
4982 * @param {*} node
4983 * The `Node` argument to set the attributes or add the event
4984 * listeners for. When the given `node` value is not a valid
4985 * DOM `Node`, the function returns and does nothing.
4986 *
4987 * @param {string|Object&lt;string, *>} key
4988 * Specifies either the attribute or event handler name to use,
4989 * or an object containing multiple key, value pairs which are
4990 * each added to the node as either attribute or event handler,
4991 * depending on the respective value.
4992 *
4993 * @param {*} [val]
4994 * Specifies the attribute value or event handler function to add.
4995 * If the `key` parameter is an `Object`, this parameter will be
4996 * ignored.
4997 *
4998 * When `val` is of type function, it will be registered as event
4999 * handler on the given `node` with the `key` parameter being the
5000 * event name.
5001 *
5002 * When `val` is of type object, it will be serialized as JSON and
5003 * added as attribute to the given `node`, using the given `key`
5004 * as attribute name.
5005 *
5006 * When `val` is of any other type, it will be added as attribute
5007 * to the given `node` as-is, with the underlying `setAttribute()`
5008 * call implicitly turning it into a string.
5009 */
5010 attr: function(node, key, val) {
5011 if (!this.elem(node))
5012 return null;
5013
5014 var attr = null;
5015
5016 if (typeof(key) === 'object' &amp;&amp; key !== null)
5017 attr = key;
5018 else if (typeof(key) === 'string')
5019 attr = {}, attr[key] = val;
5020
5021 for (key in attr) {
5022 if (!attr.hasOwnProperty(key) || attr[key] == null)
5023 continue;
5024
5025 switch (typeof(attr[key])) {
5026 case 'function':
5027 node.addEventListener(key, attr[key]);
5028 break;
5029
5030 case 'object':
5031 node.setAttribute(key, JSON.stringify(attr[key]));
5032 break;
5033
5034 default:
5035 node.setAttribute(key, attr[key]);
5036 }
5037 }
5038 },
5039
5040 /**
5041 * Creates a new DOM `Node` from the given `html`, `attr` and
5042 * `data` parameters.
5043 *
5044 * This function has multiple signatures, it can be either invoked
5045 * in the form `create(html[, attr[, data]])` or in the form
5046 * `create(html[, data])`. The used variant is determined from the
5047 * type of the second argument.
5048 *
5049 * @instance
5050 * @memberof LuCI.dom
5051 * @param {*} html
5052 * Describes the node to create.
5053 *
5054 * When the value of `html` is of type array, a `DocumentFragment`
5055 * node is created and each item of the array is first converted
5056 * to a DOM `Node` by passing it through `create()` and then added
5057 * as child to the fragment.
5058 *
5059 * When the value of `html` is a DOM `Node` instance, no new
5060 * element will be created but the node will be used as-is.
5061 *
5062 * When the value of `html` is a string starting with `&lt;`, it will
5063 * be passed to `dom.parse()` and the resulting value is used.
5064 *
5065 * When the value of `html` is any other string, it will be passed
5066 * to `document.createElement()` for creating a new DOM `Node` of
5067 * the given name.
5068 *
5069 * @param {Object&lt;string, *>} [attr]
5070 * Specifies an Object of key, value pairs to set as attributes
5071 * or event handlers on the created node. Refer to
5072 * {@link LuCI.dom#attr dom.attr()} for details.
5073 *
5074 * @param {*} [data]
5075 * Specifies children to append to the newly created element.
5076 * Refer to {@link LuCI.dom#append dom.append()} for details.
5077 *
5078 * @throws {InvalidCharacterError}
5079 * Throws an `InvalidCharacterError` when the given `html`
5080 * argument contained malformed markup (such as not escaped
5081 * `&amp;` characters in XHTML mode) or when the given node name
5082 * in `html` contains characters which are not legal in DOM
5083 * element names, such as spaces.
5084 *
5085 * @returns {Node}
5086 * Returns the newly created `Node`.
5087 */
5088 create: function() {
5089 var html = arguments[0],
5090 attr = arguments[1],
5091 data = arguments[2],
5092 elem;
5093
5094 if (!(attr instanceof Object) || Array.isArray(attr))
5095 data = attr, attr = null;
5096
5097 if (Array.isArray(html)) {
5098 elem = document.createDocumentFragment();
5099 for (var i = 0; i &lt; html.length; i++)
5100 elem.appendChild(this.create(html[i]));
5101 }
5102 else if (this.elem(html)) {
5103 elem = html;
5104 }
5105 else if (html.charCodeAt(0) === 60) {
5106 elem = this.parse(html);
5107 }
5108 else {
5109 elem = document.createElement(html);
5110 }
5111
5112 if (!elem)
5113 return null;
5114
5115 this.attr(elem, attr);
5116 this.append(elem, data);
5117
5118 return elem;
5119 },
5120
5121 registry: {},
5122
5123 /**
5124 * Attaches or detaches arbitrary data to and from a DOM `Node`.
5125 *
5126 * This function is useful to attach non-string values or runtime
5127 * data that is not serializable to DOM nodes. To decouple data
5128 * from the DOM, values are not added directly to nodes, but
5129 * inserted into a registry instead which is then referenced by a
5130 * string key stored as `data-idref` attribute in the node.
5131 *
5132 * This function has multiple signatures and is sensitive to the
5133 * number of arguments passed to it.
5134 *
5135 * - `dom.data(node)` -
5136 * Fetches all data associated with the given node.
5137 * - `dom.data(node, key)` -
5138 * Fetches a specific key associated with the given node.
5139 * - `dom.data(node, key, val)` -
5140 * Sets a specific key to the given value associated with the
5141 * given node.
5142 * - `dom.data(node, null)` -
5143 * Clears any data associated with the node.
5144 * - `dom.data(node, key, null)` -
5145 * Clears the given key associated with the node.
5146 *
5147 * @instance
5148 * @memberof LuCI.dom
5149 * @param {Node} node
5150 * The DOM `Node` instance to set or retrieve the data for.
5151 *
5152 * @param {string|null} [key]
5153 * This is either a string specifying the key to retrieve, or
5154 * `null` to unset the entire node data.
5155 *
5156 * @param {*|null} [val]
5157 * This is either a non-`null` value to set for a given key or
5158 * `null` to remove the given `key` from the specified node.
5159 *
5160 * @returns {*}
5161 * Returns the get or set value, or `null` when no value could
5162 * be found.
5163 */
5164 data: function(node, key, val) {
5165 if (!node || !node.getAttribute)
5166 return null;
5167
5168 var id = node.getAttribute('data-idref');
5169
5170 /* clear all data */
5171 if (arguments.length > 1 &amp;&amp; key == null) {
5172 if (id != null) {
5173 node.removeAttribute('data-idref');
5174 val = this.registry[id]
5175 delete this.registry[id];
5176 return val;
5177 }
5178
5179 return null;
5180 }
5181
5182 /* clear a key */
5183 else if (arguments.length > 2 &amp;&amp; key != null &amp;&amp; val == null) {
5184 if (id != null) {
5185 val = this.registry[id][key];
5186 delete this.registry[id][key];
5187 return val;
5188 }
5189
5190 return null;
5191 }
5192
5193 /* set a key */
5194 else if (arguments.length > 2 &amp;&amp; key != null &amp;&amp; val != null) {
5195 if (id == null) {
5196 do { id = Math.floor(Math.random() * 0xffffffff).toString(16) }
5197 while (this.registry.hasOwnProperty(id));
5198
5199 node.setAttribute('data-idref', id);
5200 this.registry[id] = {};
5201 }
5202
5203 return (this.registry[id][key] = val);
5204 }
5205
5206 /* get all data */
5207 else if (arguments.length == 1) {
5208 if (id != null)
5209 return this.registry[id];
5210
5211 return null;
5212 }
5213
5214 /* get a key */
5215 else if (arguments.length == 2) {
5216 if (id != null)
5217 return this.registry[id][key];
5218 }
5219
5220 return null;
5221 },
5222
5223 /**
5224 * Binds the given class instance ot the specified DOM `Node`.
5225 *
5226 * This function uses the `dom.data()` facility to attach the
5227 * passed instance of a Class to a node. This is needed for
5228 * complex widget elements or similar where the corresponding
5229 * class instance responsible for the element must be retrieved
5230 * from DOM nodes obtained by `querySelector()` or similar means.
5231 *
5232 * @instance
5233 * @memberof LuCI.dom
5234 * @param {Node} node
5235 * The DOM `Node` instance to bind the class to.
5236 *
5237 * @param {Class} inst
5238 * The Class instance to bind to the node.
5239 *
5240 * @throws {TypeError}
5241 * Throws a `TypeError` when the given instance argument isn't
5242 * a valid Class instance.
5243 *
5244 * @returns {Class}
5245 * Returns the bound class instance.
5246 */
5247 bindClassInstance: function(node, inst) {
5248 if (!(inst instanceof Class))
5249 LuCI.prototype.error('TypeError', 'Argument must be a class instance');
5250
5251 return this.data(node, '_class', inst);
5252 },
5253
5254 /**
5255 * Finds a bound class instance on the given node itself or the
5256 * first bound instance on its closest parent node.
5257 *
5258 * @instance
5259 * @memberof LuCI.dom
5260 * @param {Node} node
5261 * The DOM `Node` instance to start from.
5262 *
5263 * @returns {Class|null}
5264 * Returns the founds class instance if any or `null` if no bound
5265 * class could be found on the node itself or any of its parents.
5266 */
5267 findClassInstance: function(node) {
5268 var inst = null;
5269
5270 do {
5271 inst = this.data(node, '_class');
5272 node = node.parentNode;
5273 }
5274 while (!(inst instanceof Class) &amp;&amp; node != null);
5275
5276 return inst;
5277 },
5278
5279 /**
5280 * Finds a bound class instance on the given node itself or the
5281 * first bound instance on its closest parent node and invokes
5282 * the specified method name on the found class instance.
5283 *
5284 * @instance
5285 * @memberof LuCI.dom
5286 * @param {Node} node
5287 * The DOM `Node` instance to start from.
5288 *
5289 * @param {string} method
5290 * The name of the method to invoke on the found class instance.
5291 *
5292 * @param {...*} params
5293 * Additional arguments to pass to the invoked method as-is.
5294 *
5295 * @returns {*|null}
5296 * Returns the return value of the invoked method if a class
5297 * instance and method has been found. Returns `null` if either
5298 * no bound class instance could be found, or if the found
5299 * instance didn't have the requested `method`.
5300 */
5301 callClassMethod: function(node, method /*, ... */) {
5302 var inst = this.findClassInstance(node);
5303
5304 if (inst == null || typeof(inst[method]) != 'function')
5305 return null;
5306
5307 return inst[method].apply(inst, inst.varargs(arguments, 2));
5308 },
5309
5310 /**
5311 * The ignore callback function is invoked by `isEmpty()` for each
5312 * child node to decide whether to ignore a child node or not.
5313 *
5314 * When this function returns `false`, the node passed to it is
5315 * ignored, else not.
5316 *
5317 * @callback LuCI.dom~ignoreCallbackFn
5318 * @param {Node} node
5319 * The child node to test.
5320 *
5321 * @returns {boolean}
5322 * Boolean indicating whether to ignore the node or not.
5323 */
5324
5325 /**
5326 * Tests whether a given DOM `Node` instance is empty or appears
5327 * empty.
5328 *
5329 * Any element child nodes which have the CSS class `hidden` set
5330 * or for which the optionally passed `ignoreFn` callback function
5331 * returns `false` are ignored.
5332 *
5333 * @instance
5334 * @memberof LuCI.dom
5335 * @param {Node} node
5336 * The DOM `Node` instance to test.
5337 *
5338 * @param {LuCI.dom~ignoreCallbackFn} [ignoreFn]
5339 * Specifies an optional function which is invoked for each child
5340 * node to decide whether the child node should be ignored or not.
5341 *
5342 * @returns {boolean}
5343 * Returns `true` if the node does not have any children or if
5344 * any children node either has a `hidden` CSS class or a `false`
5345 * result when testing it using the given `ignoreFn`.
5346 */
5347 isEmpty: function(node, ignoreFn) {
5348 for (var child = node.firstElementChild; child != null; child = child.nextElementSibling)
5349 if (!child.classList.contains('hidden') &amp;&amp; (!ignoreFn || !ignoreFn(child)))
5350 return false;
5351
5352 return true;
5353 }
5354 });
5355
5356 /**
5357 * @class session
5358 * @memberof LuCI
5359 * @hideconstructor
5360 * @classdesc
5361 *
5362 * The `session` class provides various session related functionality.
5363 */
5364 var Session = Class.singleton(/** @lends LuCI.session.prototype */ {
5365 __name__: 'LuCI.session',
5366
5367 /**
5368 * Retrieve the current session ID.
5369 *
5370 * @returns {string}
5371 * Returns the current session ID.
5372 */
5373 getID: function() {
5374 return env.sessionid || '00000000000000000000000000000000';
5375 },
5376
5377 /**
5378 * Retrieve the current session token.
5379 *
5380 * @returns {string|null}
5381 * Returns the current session token or `null` if not logged in.
5382 */
5383 getToken: function() {
5384 return env.token || null;
5385 },
5386
5387 /**
5388 * Retrieve data from the local session storage.
5389 *
5390 * @param {string} [key]
5391 * The key to retrieve from the session data store. If omitted, all
5392 * session data will be returned.
5393 *
5394 * @returns {*}
5395 * Returns the stored session data or `null` if the given key wasn't
5396 * found.
5397 */
5398 getLocalData: function(key) {
5399 try {
5400 var sid = this.getID(),
5401 item = 'luci-session-store',
5402 data = JSON.parse(window.sessionStorage.getItem(item));
5403
5404 if (!LuCI.prototype.isObject(data) || !data.hasOwnProperty(sid)) {
5405 data = {};
5406 data[sid] = {};
5407 }
5408
5409 if (key != null)
5410 return data[sid].hasOwnProperty(key) ? data[sid][key] : null;
5411
5412 return data[sid];
5413 }
5414 catch (e) {
5415 return (key != null) ? null : {};
5416 }
5417 },
5418
5419 /**
5420 * Set data in the local session storage.
5421 *
5422 * @param {string} key
5423 * The key to set in the session data store.
5424 *
5425 * @param {*} value
5426 * The value to store. It will be internally converted to JSON before
5427 * being put in the session store.
5428 *
5429 * @returns {boolean}
5430 * Returns `true` if the data could be stored or `false` on error.
5431 */
5432 setLocalData: function(key, value) {
5433 if (key == null)
5434 return false;
5435
5436 try {
5437 var sid = this.getID(),
5438 item = 'luci-session-store',
5439 data = JSON.parse(window.sessionStorage.getItem(item));
5440
5441 if (!LuCI.prototype.isObject(data) || !data.hasOwnProperty(sid)) {
5442 data = {};
5443 data[sid] = {};
5444 }
5445
5446 if (value != null)
5447 data[sid][key] = value;
5448 else
5449 delete data[sid][key];
5450
5451 window.sessionStorage.setItem(item, JSON.stringify(data));
5452
5453 return true;
5454 }
5455 catch (e) {
5456 return false;
5457 }
5458 }
5459 });
5460
5461 /**
5462 * @class view
5463 * @memberof LuCI
5464 * @hideconstructor
5465 * @classdesc
5466 *
5467 * The `view` class forms the basis of views and provides a standard
5468 * set of methods to inherit from.
5469 */
5470 var View = Class.extend(/** @lends LuCI.view.prototype */ {
5471 __name__: 'LuCI.view',
5472
5473 __init__: function() {
5474 var vp = document.getElementById('view');
5475
5476 DOM.content(vp, E('div', { 'class': 'spinning' }, _('Loading view…')));
5477
5478 return Promise.resolve(this.load())
5479 .then(LuCI.prototype.bind(this.render, this))
5480 .then(LuCI.prototype.bind(function(nodes) {
5481 var vp = document.getElementById('view');
5482
5483 DOM.content(vp, nodes);
5484 DOM.append(vp, this.addFooter());
5485 }, this)).catch(LuCI.prototype.error);
5486 },
5487
5488 /**
5489 * The load function is invoked before the view is rendered.
5490 *
5491 * The invocation of this function is wrapped by
5492 * `Promise.resolve()` so it may return Promises if needed.
5493 *
5494 * The return value of the function (or the resolved values
5495 * of the promise returned by it) will be passed as first
5496 * argument to `render()`.
5497 *
5498 * This function is supposed to be overwritten by subclasses,
5499 * the default implementation does nothing.
5500 *
5501 * @instance
5502 * @abstract
5503 * @memberof LuCI.view
5504 *
5505 * @returns {*|Promise&lt;*>}
5506 * May return any value or a Promise resolving to any value.
5507 */
5508 load: function() {},
5509
5510 /**
5511 * The render function is invoked after the
5512 * {@link LuCI.view#load load()} function and responsible
5513 * for setting up the view contents. It must return a DOM
5514 * `Node` or `DocumentFragment` holding the contents to
5515 * insert into the view area.
5516 *
5517 * The invocation of this function is wrapped by
5518 * `Promise.resolve()` so it may return Promises if needed.
5519 *
5520 * The return value of the function (or the resolved values
5521 * of the promise returned by it) will be inserted into the
5522 * main content area using
5523 * {@link LuCI.dom#append dom.append()}.
5524 *
5525 * This function is supposed to be overwritten by subclasses,
5526 * the default implementation does nothing.
5527 *
5528 * @instance
5529 * @abstract
5530 * @memberof LuCI.view
5531 * @param {*|null} load_results
5532 * This function will receive the return value of the
5533 * {@link LuCI.view#load view.load()} function as first
5534 * argument.
5535 *
5536 * @returns {Node|Promise&lt;Node>}
5537 * Should return a DOM `Node` value or a `Promise` resolving
5538 * to a `Node` value.
5539 */
5540 render: function() {},
5541
5542 /**
5543 * The handleSave function is invoked when the user clicks
5544 * the `Save` button in the page action footer.
5545 *
5546 * The default implementation should be sufficient for most
5547 * views using {@link form#Map form.Map()} based forms - it
5548 * will iterate all forms present in the view and invoke
5549 * the {@link form#Map#save Map.save()} method on each form.
5550 *
5551 * Views not using `Map` instances or requiring other special
5552 * logic should overwrite `handleSave()` with a custom
5553 * implementation.
5554 *
5555 * To disable the `Save` page footer button, views extending
5556 * this base class should overwrite the `handleSave` function
5557 * with `null`.
5558 *
5559 * The invocation of this function is wrapped by
5560 * `Promise.resolve()` so it may return Promises if needed.
5561 *
5562 * @instance
5563 * @memberof LuCI.view
5564 * @param {Event} ev
5565 * The DOM event that triggered the function.
5566 *
5567 * @returns {*|Promise&lt;*>}
5568 * Any return values of this function are discarded, but
5569 * passed through `Promise.resolve()` to ensure that any
5570 * returned promise runs to completion before the button
5571 * is re-enabled.
5572 */
5573 handleSave: function(ev) {
5574 var tasks = [];
5575
5576 document.getElementById('maincontent')
5577 .querySelectorAll('.cbi-map').forEach(function(map) {
5578 tasks.push(DOM.callClassMethod(map, 'save'));
5579 });
5580
5581 return Promise.all(tasks);
5582 },
5583
5584 /**
5585 * The handleSaveApply function is invoked when the user clicks
5586 * the `Save &amp; Apply` button in the page action footer.
5587 *
5588 * The default implementation should be sufficient for most
5589 * views using {@link form#Map form.Map()} based forms - it
5590 * will first invoke
5591 * {@link LuCI.view.handleSave view.handleSave()} and then
5592 * call {@link ui#changes#apply ui.changes.apply()} to start the
5593 * modal config apply and page reload flow.
5594 *
5595 * Views not using `Map` instances or requiring other special
5596 * logic should overwrite `handleSaveApply()` with a custom
5597 * implementation.
5598 *
5599 * To disable the `Save &amp; Apply` page footer button, views
5600 * extending this base class should overwrite the
5601 * `handleSaveApply` function with `null`.
5602 *
5603 * The invocation of this function is wrapped by
5604 * `Promise.resolve()` so it may return Promises if needed.
5605 *
5606 * @instance
5607 * @memberof LuCI.view
5608 * @param {Event} ev
5609 * The DOM event that triggered the function.
5610 *
5611 * @returns {*|Promise&lt;*>}
5612 * Any return values of this function are discarded, but
5613 * passed through `Promise.resolve()` to ensure that any
5614 * returned promise runs to completion before the button
5615 * is re-enabled.
5616 */
5617 handleSaveApply: function(ev, mode) {
5618 return this.handleSave(ev).then(function() {
5619 classes.ui.changes.apply(mode == '0');
5620 });
5621 },
5622
5623 /**
5624 * The handleReset function is invoked when the user clicks
5625 * the `Reset` button in the page action footer.
5626 *
5627 * The default implementation should be sufficient for most
5628 * views using {@link form#Map form.Map()} based forms - it
5629 * will iterate all forms present in the view and invoke
5630 * the {@link form#Map#save Map.reset()} method on each form.
5631 *
5632 * Views not using `Map` instances or requiring other special
5633 * logic should overwrite `handleReset()` with a custom
5634 * implementation.
5635 *
5636 * To disable the `Reset` page footer button, views extending
5637 * this base class should overwrite the `handleReset` function
5638 * with `null`.
5639 *
5640 * The invocation of this function is wrapped by
5641 * `Promise.resolve()` so it may return Promises if needed.
5642 *
5643 * @instance
5644 * @memberof LuCI.view
5645 * @param {Event} ev
5646 * The DOM event that triggered the function.
5647 *
5648 * @returns {*|Promise&lt;*>}
5649 * Any return values of this function are discarded, but
5650 * passed through `Promise.resolve()` to ensure that any
5651 * returned promise runs to completion before the button
5652 * is re-enabled.
5653 */
5654 handleReset: function(ev) {
5655 var tasks = [];
5656
5657 document.getElementById('maincontent')
5658 .querySelectorAll('.cbi-map').forEach(function(map) {
5659 tasks.push(DOM.callClassMethod(map, 'reset'));
5660 });
5661
5662 return Promise.all(tasks);
5663 },
5664
5665 /**
5666 * Renders a standard page action footer if any of the
5667 * `handleSave()`, `handleSaveApply()` or `handleReset()`
5668 * functions are defined.
5669 *
5670 * The default implementation should be sufficient for most
5671 * views - it will render a standard page footer with action
5672 * buttons labeled `Save`, `Save &amp; Apply` and `Reset`
5673 * triggering the `handleSave()`, `handleSaveApply()` and
5674 * `handleReset()` functions respectively.
5675 *
5676 * When any of these `handle*()` functions is overwritten
5677 * with `null` by a view extending this class, the
5678 * corresponding button will not be rendered.
5679 *
5680 * @instance
5681 * @memberof LuCI.view
5682 * @returns {DocumentFragment}
5683 * Returns a `DocumentFragment` containing the footer bar
5684 * with buttons for each corresponding `handle*()` action
5685 * or an empty `DocumentFragment` if all three `handle*()`
5686 * methods are overwritten with `null`.
5687 */
5688 addFooter: function() {
5689 var footer = E([]),
5690 vp = document.getElementById('view'),
5691 hasmap = false,
5692 readonly = true;
5693
5694 vp.querySelectorAll('.cbi-map').forEach(function(map) {
5695 var m = DOM.findClassInstance(map);
5696 if (m) {
5697 hasmap = true;
5698
5699 if (!m.readonly)
5700 readonly = false;
5701 }
5702 });
5703
5704 if (!hasmap)
5705 readonly = !LuCI.prototype.hasViewPermission();
5706
5707 var saveApplyBtn = this.handleSaveApply ? new classes.ui.ComboButton('0', {
5708 0: [ _('Save &amp; Apply') ],
5709 1: [ _('Apply unchecked') ]
5710 }, {
5711 classes: {
5712 0: 'btn cbi-button cbi-button-apply important',
5713 1: 'btn cbi-button cbi-button-negative important'
5714 },
5715 click: classes.ui.createHandlerFn(this, 'handleSaveApply'),
5716 disabled: readonly || null
5717 }).render() : E([]);
5718
5719 if (this.handleSaveApply || this.handleSave || this.handleReset) {
5720 footer.appendChild(E('div', { 'class': 'cbi-page-actions' }, [
5721 saveApplyBtn, ' ',
5722 this.handleSave ? E('button', {
5723 'class': 'cbi-button cbi-button-save',
5724 'click': classes.ui.createHandlerFn(this, 'handleSave'),
5725 'disabled': readonly || null
5726 }, [ _('Save') ]) : '', ' ',
5727 this.handleReset ? E('button', {
5728 'class': 'cbi-button cbi-button-reset',
5729 'click': classes.ui.createHandlerFn(this, 'handleReset'),
5730 'disabled': readonly || null
5731 }, [ _('Reset') ]) : ''
5732 ]));
5733 }
5734
5735 return footer;
5736 }
5737 });
5738
5739
5740 var dummyElem = null,
5741 domParser = null,
5742 originalCBIInit = null,
5743 rpcBaseURL = null,
5744 sysFeatures = null,
5745 preloadClasses = null;
5746
5747 /* "preload" builtin classes to make the available via require */
5748 var classes = {
5749 baseclass: Class,
5750 dom: DOM,
5751 poll: Poll,
5752 request: Request,
5753 session: Session,
5754 view: View
5755 };
5756
5757 var naturalCompare = new Intl.Collator(undefined, { numeric: true }).compare;
5758
5759 var LuCI = Class.extend(/** @lends LuCI.prototype */ {
5760 __name__: 'LuCI',
5761 __init__: function(setenv) {
5762
5763 document.querySelectorAll('script[src*="/luci.js"]').forEach(function(s) {
5764 if (setenv.base_url == null || setenv.base_url == '') {
5765 var m = (s.getAttribute('src') || '').match(/^(.*)\/luci\.js(?:\?v=([^?]+))?$/);
5766 if (m) {
5767 setenv.base_url = m[1];
5768 setenv.resource_version = m[2];
5769 }
5770 }
5771 });
5772
5773 if (setenv.base_url == null)
5774 this.error('InternalError', 'Cannot find url of luci.js');
5775
5776 setenv.cgi_base = setenv.scriptname.replace(/\/[^\/]+$/, '');
5777
5778 Object.assign(env, setenv);
5779
5780 var domReady = new Promise(function(resolveFn, rejectFn) {
5781 document.addEventListener('DOMContentLoaded', resolveFn);
5782 });
5783
5784 Promise.all([
5785 domReady,
5786 this.require('ui'),
5787 this.require('rpc'),
5788 this.require('form'),
5789 this.probeRPCBaseURL()
5790 ]).then(this.setupDOM.bind(this)).catch(this.error);
5791
5792 originalCBIInit = window.cbi_init;
5793 window.cbi_init = function() {};
5794 },
5795
5796 /**
5797 * Captures the current stack trace and throws an error of the
5798 * specified type as a new exception. Also logs the exception as
5799 * error to the debug console if it is available.
5800 *
5801 * @instance
5802 * @memberof LuCI
5803 *
5804 * @param {Error|string} [type=Error]
5805 * Either a string specifying the type of the error to throw or an
5806 * existing `Error` instance to copy.
5807 *
5808 * @param {string} [fmt=Unspecified error]
5809 * A format string which is used to form the error message, together
5810 * with all subsequent optional arguments.
5811 *
5812 * @param {...*} [args]
5813 * Zero or more variable arguments to the supplied format string.
5814 *
5815 * @throws {Error}
5816 * Throws the created error object with the captured stack trace
5817 * appended to the message and the type set to the given type
5818 * argument or copied from the given error instance.
5819 */
5820 raise: function(type, fmt /*, ...*/) {
5821 var e = null,
5822 msg = fmt ? String.prototype.format.apply(fmt, this.varargs(arguments, 2)) : null,
5823 stack = null;
5824
5825 if (type instanceof Error) {
5826 e = type;
5827
5828 if (msg)
5829 e.message = msg + ': ' + e.message;
5830 }
5831 else {
5832 try { throw new Error('stacktrace') }
5833 catch (e2) { stack = (e2.stack || '').split(/\n/) }
5834
5835 e = new (window[type || 'Error'] || Error)(msg || 'Unspecified error');
5836 e.name = type || 'Error';
5837 }
5838
5839 stack = (stack || []).map(function(frame) {
5840 frame = frame.replace(/(.*?)@(.+):(\d+):(\d+)/g, 'at $1 ($2:$3:$4)').trim();
5841 return frame ? ' ' + frame : '';
5842 });
5843
5844 if (!/^ at /.test(stack[0]))
5845 stack.shift();
5846
5847 if (/\braise /.test(stack[0]))
5848 stack.shift();
5849
5850 if (/\berror /.test(stack[0]))
5851 stack.shift();
5852
5853 if (stack.length)
5854 e.message += '\n' + stack.join('\n');
5855
5856 if (window.console &amp;&amp; console.debug)
5857 console.debug(e);
5858
5859 throw e;
5860 },
5861
5862 /**
5863 * A wrapper around {@link LuCI#raise raise()} which also renders
5864 * the error either as modal overlay when `ui.js` is already loaded
5865 * or directly into the view body.
5866 *
5867 * @instance
5868 * @memberof LuCI
5869 *
5870 * @param {Error|string} [type=Error]
5871 * Either a string specifying the type of the error to throw or an
5872 * existing `Error` instance to copy.
5873 *
5874 * @param {string} [fmt=Unspecified error]
5875 * A format string which is used to form the error message, together
5876 * with all subsequent optional arguments.
5877 *
5878 * @param {...*} [args]
5879 * Zero or more variable arguments to the supplied format string.
5880 *
5881 * @throws {Error}
5882 * Throws the created error object with the captured stack trace
5883 * appended to the message and the type set to the given type
5884 * argument or copied from the given error instance.
5885 */
5886 error: function(type, fmt /*, ...*/) {
5887 try {
5888 LuCI.prototype.raise.apply(LuCI.prototype,
5889 Array.prototype.slice.call(arguments));
5890 }
5891 catch (e) {
5892 if (!e.reported) {
5893 if (classes.ui)
5894 classes.ui.addNotification(e.name || _('Runtime error'),
5895 E('pre', {}, e.message), 'danger');
5896 else
5897 DOM.content(document.querySelector('#maincontent'),
5898 E('pre', { 'class': 'alert-message error' }, e.message));
5899
5900 e.reported = true;
5901 }
5902
5903 throw e;
5904 }
5905 },
5906
5907 /**
5908 * Return a bound function using the given `self` as `this` context
5909 * and any further arguments as parameters to the bound function.
5910 *
5911 * @instance
5912 * @memberof LuCI
5913 *
5914 * @param {function} fn
5915 * The function to bind.
5916 *
5917 * @param {*} self
5918 * The value to bind as `this` context to the specified function.
5919 *
5920 * @param {...*} [args]
5921 * Zero or more variable arguments which are bound to the function
5922 * as parameters.
5923 *
5924 * @returns {function}
5925 * Returns the bound function.
5926 */
5927 bind: function(fn, self /*, ... */) {
5928 return Function.prototype.bind.apply(fn, this.varargs(arguments, 2, self));
5929 },
5930
5931 /**
5932 * Load an additional LuCI JavaScript class and its dependencies,
5933 * instantiate it and return the resulting class instance. Each
5934 * class is only loaded once. Subsequent attempts to load the same
5935 * class will return the already instantiated class.
5936 *
5937 * @instance
5938 * @memberof LuCI
5939 *
5940 * @param {string} name
5941 * The name of the class to load in dotted notation. Dots will
5942 * be replaced by spaces and joined with the runtime-determined
5943 * base URL of LuCI.js to form an absolute URL to load the class
5944 * file from.
5945 *
5946 * @throws {DependencyError}
5947 * Throws a `DependencyError` when the class to load includes
5948 * circular dependencies.
5949 *
5950 * @throws {NetworkError}
5951 * Throws `NetworkError` when the underlying {@link LuCI.request}
5952 * call failed.
5953 *
5954 * @throws {SyntaxError}
5955 * Throws `SyntaxError` when the loaded class file code cannot
5956 * be interpreted by `eval`.
5957 *
5958 * @throws {TypeError}
5959 * Throws `TypeError` when the class file could be loaded and
5960 * interpreted, but when invoking its code did not yield a valid
5961 * class instance.
5962 *
5963 * @returns {Promise&lt;LuCI.baseclass>}
5964 * Returns the instantiated class.
5965 */
5966 require: function(name, from) {
5967 var L = this, url = null, from = from || [];
5968
5969 /* Class already loaded */
5970 if (classes[name] != null) {
5971 /* Circular dependency */
5972 if (from.indexOf(name) != -1)
5973 LuCI.prototype.raise('DependencyError',
5974 'Circular dependency: class "%s" depends on "%s"',
5975 name, from.join('" which depends on "'));
5976
5977 return Promise.resolve(classes[name]);
5978 }
5979
5980 url = '%s/%s.js%s'.format(env.base_url, name.replace(/\./g, '/'), (env.resource_version ? '?v=' + env.resource_version : ''));
5981 from = [ name ].concat(from);
5982
5983 var compileClass = function(res) {
5984 if (!res.ok)
5985 LuCI.prototype.raise('NetworkError',
5986 'HTTP error %d while loading class file "%s"', res.status, url);
5987
5988 var source = res.text(),
5989 requirematch = /^require[ \t]+(\S+)(?:[ \t]+as[ \t]+([a-zA-Z_]\S*))?$/,
5990 strictmatch = /^use[ \t]+strict$/,
5991 depends = [],
5992 args = '';
5993
5994 /* find require statements in source */
5995 for (var i = 0, off = -1, prev = -1, quote = -1, comment = -1, esc = false; i &lt; source.length; i++) {
5996 var chr = source.charCodeAt(i);
5997
5998 if (esc) {
5999 esc = false;
6000 }
6001 else if (comment != -1) {
6002 if ((comment == 47 &amp;&amp; chr == 10) || (comment == 42 &amp;&amp; prev == 42 &amp;&amp; chr == 47))
6003 comment = -1;
6004 }
6005 else if ((chr == 42 || chr == 47) &amp;&amp; prev == 47) {
6006 comment = chr;
6007 }
6008 else if (chr == 92) {
6009 esc = true;
6010 }
6011 else if (chr == quote) {
6012 var s = source.substring(off, i),
6013 m = requirematch.exec(s);
6014
6015 if (m) {
6016 var dep = m[1], as = m[2] || dep.replace(/[^a-zA-Z0-9_]/g, '_');
6017 depends.push(LuCI.prototype.require(dep, from));
6018 args += ', ' + as;
6019 }
6020 else if (!strictmatch.exec(s)) {
6021 break;
6022 }
6023
6024 off = -1;
6025 quote = -1;
6026 }
6027 else if (quote == -1 &amp;&amp; (chr == 34 || chr == 39)) {
6028 off = i + 1;
6029 quote = chr;
6030 }
6031
6032 prev = chr;
6033 }
6034
6035 /* load dependencies and instantiate class */
6036 return Promise.all(depends).then(function(instances) {
6037 var _factory, _class;
6038
6039 try {
6040 _factory = eval(
6041 '(function(window, document, L%s) { %s })\n\n//# sourceURL=%s\n'
6042 .format(args, source, res.url));
6043 }
6044 catch (error) {
6045 LuCI.prototype.raise('SyntaxError', '%s\n in %s:%s',
6046 error.message, res.url, error.lineNumber || '?');
6047 }
6048
6049 _factory.displayName = toCamelCase(name + 'ClassFactory');
6050 _class = _factory.apply(_factory, [window, document, L].concat(instances));
6051
6052 if (!Class.isSubclass(_class))
6053 LuCI.prototype.error('TypeError', '"%s" factory yields invalid constructor', name);
6054
6055 if (_class.displayName == 'AnonymousClass')
6056 _class.displayName = toCamelCase(name + 'Class');
6057
6058 var ptr = Object.getPrototypeOf(L),
6059 parts = name.split(/\./),
6060 instance = new _class();
6061
6062 for (var i = 0; ptr &amp;&amp; i &lt; parts.length - 1; i++)
6063 ptr = ptr[parts[i]];
6064
6065 if (ptr)
6066 ptr[parts[i]] = instance;
6067
6068 classes[name] = instance;
6069
6070 return instance;
6071 });
6072 };
6073
6074 /* Request class file */
6075 classes[name] = Request.get(url, { cache: true }).then(compileClass);
6076
6077 return classes[name];
6078 },
6079
6080 /* DOM setup */
6081 probeRPCBaseURL: function() {
6082 if (rpcBaseURL == null)
6083 rpcBaseURL = Session.getLocalData('rpcBaseURL');
6084
6085 if (rpcBaseURL == null) {
6086 var msg = {
6087 jsonrpc: '2.0',
6088 id: 'init',
6089 method: 'list',
6090 params: undefined
6091 };
6092 var rpcFallbackURL = this.url('admin/ubus');
6093
6094 rpcBaseURL = Request.post(env.ubuspath, msg, { nobatch: true }).then(function(res) {
6095 return (rpcBaseURL = res.status == 200 ? env.ubuspath : rpcFallbackURL);
6096 }, function() {
6097 return (rpcBaseURL = rpcFallbackURL);
6098 }).then(function(url) {
6099 Session.setLocalData('rpcBaseURL', url);
6100 return url;
6101 });
6102 }
6103
6104 return Promise.resolve(rpcBaseURL);
6105 },
6106
6107 probeSystemFeatures: function() {
6108 if (sysFeatures == null)
6109 sysFeatures = Session.getLocalData('features');
6110
6111 if (!this.isObject(sysFeatures)) {
6112 sysFeatures = classes.rpc.declare({
6113 object: 'luci',
6114 method: 'getFeatures',
6115 expect: { '': {} }
6116 })().then(function(features) {
6117 Session.setLocalData('features', features);
6118 sysFeatures = features;
6119
6120 return features;
6121 });
6122 }
6123
6124 return Promise.resolve(sysFeatures);
6125 },
6126
6127 probePreloadClasses: function() {
6128 if (preloadClasses == null)
6129 preloadClasses = Session.getLocalData('preload');
6130
6131 if (!Array.isArray(preloadClasses)) {
6132 preloadClasses = this.resolveDefault(classes.rpc.declare({
6133 object: 'file',
6134 method: 'list',
6135 params: [ 'path' ],
6136 expect: { 'entries': [] }
6137 })(this.fspath(this.resource('preload'))), []).then(function(entries) {
6138 var classes = [];
6139
6140 for (var i = 0; i &lt; entries.length; i++) {
6141 if (entries[i].type != 'file')
6142 continue;
6143
6144 var m = entries[i].name.match(/(.+)\.js$/);
6145
6146 if (m)
6147 classes.push('preload.%s'.format(m[1]));
6148 }
6149
6150 Session.setLocalData('preload', classes);
6151 preloadClasses = classes;
6152
6153 return classes;
6154 });
6155 }
6156
6157 return Promise.resolve(preloadClasses);
6158 },
6159
6160 /**
6161 * Test whether a particular system feature is available, such as
6162 * hostapd SAE support or an installed firewall. The features are
6163 * queried once at the beginning of the LuCI session and cached in
6164 * `SessionStorage` throughout the lifetime of the associated tab or
6165 * browser window.
6166 *
6167 * @instance
6168 * @memberof LuCI
6169 *
6170 * @param {string} feature
6171 * The feature to test. For detailed list of known feature flags,
6172 * see `/modules/luci-base/root/usr/libexec/rpcd/luci`.
6173 *
6174 * @param {string} [subfeature]
6175 * Some feature classes like `hostapd` provide sub-feature flags,
6176 * such as `sae` or `11w` support. The `subfeature` argument can
6177 * be used to query these.
6178 *
6179 * @return {boolean|null}
6180 * Return `true` if the queried feature (and sub-feature) is available
6181 * or `false` if the requested feature isn't present or known.
6182 * Return `null` when a sub-feature was queried for a feature which
6183 * has no sub-features.
6184 */
6185 hasSystemFeature: function() {
6186 var ft = sysFeatures[arguments[0]];
6187
6188 if (arguments.length == 2)
6189 return this.isObject(ft) ? ft[arguments[1]] : null;
6190
6191 return (ft != null &amp;&amp; ft != false);
6192 },
6193
6194 /* private */
6195 notifySessionExpiry: function() {
6196 Poll.stop();
6197
6198 classes.ui.showModal(_('Session expired'), [
6199 E('div', { class: 'alert-message warning' },
6200 _('A new login is required since the authentication session expired.')),
6201 E('div', { class: 'right' },
6202 E('div', {
6203 class: 'btn primary',
6204 click: function() {
6205 var loc = window.location;
6206 window.location = loc.protocol + '//' + loc.host + loc.pathname + loc.search;
6207 }
6208 }, _('Log in…')))
6209 ]);
6210
6211 LuCI.prototype.raise('SessionError', 'Login session is expired');
6212 },
6213
6214 /* private */
6215 setupDOM: function(res) {
6216 var domEv = res[0],
6217 uiClass = res[1],
6218 rpcClass = res[2],
6219 formClass = res[3],
6220 rpcBaseURL = res[4];
6221
6222 rpcClass.setBaseURL(rpcBaseURL);
6223
6224 rpcClass.addInterceptor(function(msg, req) {
6225 if (!LuCI.prototype.isObject(msg) ||
6226 !LuCI.prototype.isObject(msg.error) ||
6227 msg.error.code != -32002)
6228 return;
6229
6230 if (!LuCI.prototype.isObject(req) ||
6231 (req.object == 'session' &amp;&amp; req.method == 'access'))
6232 return;
6233
6234 return rpcClass.declare({
6235 'object': 'session',
6236 'method': 'access',
6237 'params': [ 'scope', 'object', 'function' ],
6238 'expect': { access: true }
6239 })('uci', 'luci', 'read').catch(LuCI.prototype.notifySessionExpiry);
6240 });
6241
6242 Request.addInterceptor(function(res) {
6243 var isDenied = false;
6244
6245 if (res.status == 403 &amp;&amp; res.headers.get('X-LuCI-Login-Required') == 'yes')
6246 isDenied = true;
6247
6248 if (!isDenied)
6249 return;
6250
6251 LuCI.prototype.notifySessionExpiry();
6252 });
6253
6254 document.addEventListener('poll-start', function(ev) {
6255 uiClass.showIndicator('poll-status', _('Refreshing'), function(ev) {
6256 Request.poll.active() ? Request.poll.stop() : Request.poll.start();
6257 });
6258 });
6259
6260 document.addEventListener('poll-stop', function(ev) {
6261 uiClass.showIndicator('poll-status', _('Paused'), null, 'inactive');
6262 });
6263
6264 return Promise.all([
6265 this.probeSystemFeatures(),
6266 this.probePreloadClasses()
6267 ]).finally(LuCI.prototype.bind(function() {
6268 var tasks = [];
6269
6270 if (Array.isArray(preloadClasses))
6271 for (var i = 0; i &lt; preloadClasses.length; i++)
6272 tasks.push(this.require(preloadClasses[i]));
6273
6274 return Promise.all(tasks);
6275 }, this)).finally(this.initDOM);
6276 },
6277
6278 /* private */
6279 initDOM: function() {
6280 originalCBIInit();
6281 Poll.start();
6282 document.dispatchEvent(new CustomEvent('luci-loaded'));
6283 },
6284
6285 /**
6286 * The `env` object holds environment settings used by LuCI, such
6287 * as request timeouts, base URLs etc.
6288 *
6289 * @instance
6290 * @memberof LuCI
6291 */
6292 env: env,
6293
6294 /**
6295 * Construct an absolute filesystem path relative to the server
6296 * document root.
6297 *
6298 * @instance
6299 * @memberof LuCI
6300 *
6301 * @param {...string} [parts]
6302 * An array of parts to join into a path.
6303 *
6304 * @return {string}
6305 * Return the joined path.
6306 */
6307 fspath: function(/* ... */) {
6308 var path = env.documentroot;
6309
6310 for (var i = 0; i &lt; arguments.length; i++)
6311 path += '/' + arguments[i];
6312
6313 var p = path.replace(/\/+$/, '').replace(/\/+/g, '/').split(/\//),
6314 res = [];
6315
6316 for (var i = 0; i &lt; p.length; i++)
6317 if (p[i] == '..')
6318 res.pop();
6319 else if (p[i] != '.')
6320 res.push(p[i]);
6321
6322 return res.join('/');
6323 },
6324
6325 /**
6326 * Construct a relative URL path from the given prefix and parts.
6327 * The resulting URL is guaranteed to only contain the characters
6328 * `a-z`, `A-Z`, `0-9`, `_`, `.`, `%`, `,`, `;`, and `-` as well
6329 * as `/` for the path separator.
6330 *
6331 * @instance
6332 * @memberof LuCI
6333 *
6334 * @param {string} [prefix]
6335 * The prefix to join the given parts with. If the `prefix` is
6336 * omitted, it defaults to an empty string.
6337 *
6338 * @param {string[]} [parts]
6339 * An array of parts to join into a URL path. Parts may contain
6340 * slashes and any of the other characters mentioned above.
6341 *
6342 * @return {string}
6343 * Return the joined URL path.
6344 */
6345 path: function(prefix, parts) {
6346 var url = [ prefix || '' ];
6347
6348 for (var i = 0; i &lt; parts.length; i++)
6349 if (/^(?:[a-zA-Z0-9_.%,;-]+\/)*[a-zA-Z0-9_.%,;-]+$/.test(parts[i]))
6350 url.push('/', parts[i]);
6351
6352 if (url.length === 1)
6353 url.push('/');
6354
6355 return url.join('');
6356 },
6357
6358 /**
6359 * Construct a URL with path relative to the script path of the server
6360 * side LuCI application (usually `/cgi-bin/luci`).
6361 *
6362 * The resulting URL is guaranteed to only contain the characters
6363 * `a-z`, `A-Z`, `0-9`, `_`, `.`, `%`, `,`, `;`, and `-` as well
6364 * as `/` for the path separator.
6365 *
6366 * @instance
6367 * @memberof LuCI
6368 *
6369 * @param {string[]} [parts]
6370 * An array of parts to join into a URL path. Parts may contain
6371 * slashes and any of the other characters mentioned above.
6372 *
6373 * @return {string}
6374 * Returns the resulting URL path.
6375 */
6376 url: function() {
6377 return this.path(env.scriptname, arguments);
6378 },
6379
6380 /**
6381 * Construct a URL path relative to the global static resource path
6382 * of the LuCI ui (usually `/luci-static/resources`).
6383 *
6384 * The resulting URL is guaranteed to only contain the characters
6385 * `a-z`, `A-Z`, `0-9`, `_`, `.`, `%`, `,`, `;`, and `-` as well
6386 * as `/` for the path separator.
6387 *
6388 * @instance
6389 * @memberof LuCI
6390 *
6391 * @param {string[]} [parts]
6392 * An array of parts to join into a URL path. Parts may contain
6393 * slashes and any of the other characters mentioned above.
6394 *
6395 * @return {string}
6396 * Returns the resulting URL path.
6397 */
6398 resource: function() {
6399 return this.path(env.resource, arguments);
6400 },
6401
6402 /**
6403 * Construct a URL path relative to the media resource path of the
6404 * LuCI ui (usually `/luci-static/$theme_name`).
6405 *
6406 * The resulting URL is guaranteed to only contain the characters
6407 * `a-z`, `A-Z`, `0-9`, `_`, `.`, `%`, `,`, `;`, and `-` as well
6408 * as `/` for the path separator.
6409 *
6410 * @instance
6411 * @memberof LuCI
6412 *
6413 * @param {string[]} [parts]
6414 * An array of parts to join into a URL path. Parts may contain
6415 * slashes and any of the other characters mentioned above.
6416 *
6417 * @return {string}
6418 * Returns the resulting URL path.
6419 */
6420 media: function() {
6421 return this.path(env.media, arguments);
6422 },
6423
6424 /**
6425 * Return the complete URL path to the current view.
6426 *
6427 * @instance
6428 * @memberof LuCI
6429 *
6430 * @return {string}
6431 * Returns the URL path to the current view.
6432 */
6433 location: function() {
6434 return this.path(env.scriptname, env.requestpath);
6435 },
6436
6437
6438 /**
6439 * Tests whether the passed argument is a JavaScript object.
6440 * This function is meant to be an object counterpart to the
6441 * standard `Array.isArray()` function.
6442 *
6443 * @instance
6444 * @memberof LuCI
6445 *
6446 * @param {*} [val]
6447 * The value to test
6448 *
6449 * @return {boolean}
6450 * Returns `true` if the given value is of type object and
6451 * not `null`, else returns `false`.
6452 */
6453 isObject: function(val) {
6454 return (val != null &amp;&amp; typeof(val) == 'object');
6455 },
6456
6457 /**
6458 * Return an array of sorted object keys, optionally sorted by
6459 * a different key or a different sorting mode.
6460 *
6461 * @instance
6462 * @memberof LuCI
6463 *
6464 * @param {object} obj
6465 * The object to extract the keys from. If the given value is
6466 * not an object, the function will return an empty array.
6467 *
6468 * @param {string|null} [key]
6469 * Specifies the key to order by. This is mainly useful for
6470 * nested objects of objects or objects of arrays when sorting
6471 * shall not be performed by the primary object keys but by
6472 * some other key pointing to a value within the nested values.
6473 *
6474 * @param {"addr"|"num"} [sortmode]
6475 * Can be either `addr` or `num` to override the natural
6476 * lexicographic sorting with a sorting suitable for IP/MAC style
6477 * addresses or numeric values respectively.
6478 *
6479 * @return {string[]}
6480 * Returns an array containing the sorted keys of the given object.
6481 */
6482 sortedKeys: function(obj, key, sortmode) {
6483 if (obj == null || typeof(obj) != 'object')
6484 return [];
6485
6486 return Object.keys(obj).map(function(e) {
6487 var v = (key != null) ? obj[e][key] : e;
6488
6489 switch (sortmode) {
6490 case 'addr':
6491 v = (v != null) ? v.replace(/(?:^|[.:])([0-9a-fA-F]{1,4})/g,
6492 function(m0, m1) { return ('000' + m1.toLowerCase()).substr(-4) }) : null;
6493 break;
6494
6495 case 'num':
6496 v = (v != null) ? +v : null;
6497 break;
6498 }
6499
6500 return [ e, v ];
6501 }).filter(function(e) {
6502 return (e[1] != null);
6503 }).sort(function(a, b) {
6504 return naturalCompare(a[1], b[1]);
6505 }).map(function(e) {
6506 return e[0];
6507 });
6508 },
6509
6510 /**
6511 * Compares two values numerically and returns -1, 0 or 1 depending
6512 * on whether the first value is smaller, equal to or larger than the
6513 * second one respectively.
6514 *
6515 * This function is meant to be used as comparator function for
6516 * Array.sort().
6517 *
6518 * @type {function}
6519 *
6520 * @param {*} a
6521 * The first value
6522 *
6523 * @param {*} b
6524 * The second value.
6525 *
6526 * @return {number}
6527 * Returns -1 if the first value is smaller than the second one.
6528 * Returns 0 if both values are equal.
6529 * Returns 1 if the first value is larger than the second one.
6530 */
6531 naturalCompare: naturalCompare,
6532
6533 /**
6534 * Converts the given value to an array using toArray() if needed,
6535 * performs a numerical sort using naturalCompare() and returns the
6536 * result. If the input already is an array, no copy is being made
6537 * and the sorting is performed in-place.
6538 *
6539 * @see toArray
6540 * @see naturalCompare
6541 *
6542 * @param {*} val
6543 * The input value to sort (and convert to an array if needed).
6544 *
6545 * @return {Array&lt;*>}
6546 * Returns the resulting, numerically sorted array.
6547 */
6548 sortedArray: function(val) {
6549 return this.toArray(val).sort(naturalCompare);
6550 },
6551
6552 /**
6553 * Converts the given value to an array. If the given value is of
6554 * type array, it is returned as-is, values of type object are
6555 * returned as one-element array containing the object, empty
6556 * strings and `null` values are returned as empty array, all other
6557 * values are converted using `String()`, trimmed, split on white
6558 * space and returned as array.
6559 *
6560 * @instance
6561 * @memberof LuCI
6562 *
6563 * @param {*} val
6564 * The value to convert into an array.
6565 *
6566 * @return {Array&lt;*>}
6567 * Returns the resulting array.
6568 */
6569 toArray: function(val) {
6570 if (val == null)
6571 return [];
6572 else if (Array.isArray(val))
6573 return val;
6574 else if (typeof(val) == 'object')
6575 return [ val ];
6576
6577 var s = String(val).trim();
6578
6579 if (s == '')
6580 return [];
6581
6582 return s.split(/\s+/);
6583 },
6584
6585 /**
6586 * Returns a promise resolving with either the given value or with
6587 * the given default in case the input value is a rejecting promise.
6588 *
6589 * @instance
6590 * @memberof LuCI
6591 *
6592 * @param {*} value
6593 * The value to resolve the promise with.
6594 *
6595 * @param {*} defvalue
6596 * The default value to resolve the promise with in case the given
6597 * input value is a rejecting promise.
6598 *
6599 * @returns {Promise&lt;*>}
6600 * Returns a new promise resolving either to the given input value or
6601 * to the given default value on error.
6602 */
6603 resolveDefault: function(value, defvalue) {
6604 return Promise.resolve(value).catch(function() { return defvalue });
6605 },
6606
6607 /**
6608 * The request callback function is invoked whenever an HTTP
6609 * reply to a request made using the `L.get()`, `L.post()` or
6610 * `L.poll()` function is timed out or received successfully.
6611 *
6612 * @instance
6613 * @memberof LuCI
6614 *
6615 * @callback LuCI.requestCallbackFn
6616 * @param {XMLHTTPRequest} xhr
6617 * The XMLHTTPRequest instance used to make the request.
6618 *
6619 * @param {*} data
6620 * The response JSON if the response could be parsed as such,
6621 * else `null`.
6622 *
6623 * @param {number} duration
6624 * The total duration of the request in milliseconds.
6625 */
6626
6627 /**
6628 * Issues a GET request to the given url and invokes the specified
6629 * callback function. The function is a wrapper around
6630 * {@link LuCI.request#request Request.request()}.
6631 *
6632 * @deprecated
6633 * @instance
6634 * @memberof LuCI
6635 *
6636 * @param {string} url
6637 * The URL to request.
6638 *
6639 * @param {Object&lt;string, string>} [args]
6640 * Additional query string arguments to append to the URL.
6641 *
6642 * @param {LuCI.requestCallbackFn} cb
6643 * The callback function to invoke when the request finishes.
6644 *
6645 * @return {Promise&lt;null>}
6646 * Returns a promise resolving to `null` when concluded.
6647 */
6648 get: function(url, args, cb) {
6649 return this.poll(null, url, args, cb, false);
6650 },
6651
6652 /**
6653 * Issues a POST request to the given url and invokes the specified
6654 * callback function. The function is a wrapper around
6655 * {@link LuCI.request#request Request.request()}. The request is
6656 * sent using `application/x-www-form-urlencoded` encoding and will
6657 * contain a field `token` with the current value of `LuCI.env.token`
6658 * by default.
6659 *
6660 * @deprecated
6661 * @instance
6662 * @memberof LuCI
6663 *
6664 * @param {string} url
6665 * The URL to request.
6666 *
6667 * @param {Object&lt;string, string>} [args]
6668 * Additional post arguments to append to the request body.
6669 *
6670 * @param {LuCI.requestCallbackFn} cb
6671 * The callback function to invoke when the request finishes.
6672 *
6673 * @return {Promise&lt;null>}
6674 * Returns a promise resolving to `null` when concluded.
6675 */
6676 post: function(url, args, cb) {
6677 return this.poll(null, url, args, cb, true);
6678 },
6679
6680 /**
6681 * Register a polling HTTP request that invokes the specified
6682 * callback function. The function is a wrapper around
6683 * {@link LuCI.request.poll#add Request.poll.add()}.
6684 *
6685 * @deprecated
6686 * @instance
6687 * @memberof LuCI
6688 *
6689 * @param {number} interval
6690 * The poll interval to use. If set to a value less than or equal
6691 * to `0`, it will default to the global poll interval configured
6692 * in `LuCI.env.pollinterval`.
6693 *
6694 * @param {string} url
6695 * The URL to request.
6696 *
6697 * @param {Object&lt;string, string>} [args]
6698 * Specifies additional arguments for the request. For GET requests,
6699 * the arguments are appended to the URL as query string, for POST
6700 * requests, they'll be added to the request body.
6701 *
6702 * @param {LuCI.requestCallbackFn} cb
6703 * The callback function to invoke whenever a request finishes.
6704 *
6705 * @param {boolean} [post=false]
6706 * When set to `false` or not specified, poll requests will be made
6707 * using the GET method. When set to `true`, POST requests will be
6708 * issued. In case of POST requests, the request body will contain
6709 * an argument `token` with the current value of `LuCI.env.token` by
6710 * default, regardless of the parameters specified with `args`.
6711 *
6712 * @return {function}
6713 * Returns the internally created function that has been passed to
6714 * {@link LuCI.request.poll#add Request.poll.add()}. This value can
6715 * be passed to {@link LuCI.poll.remove Poll.remove()} to remove the
6716 * polling request.
6717 */
6718 poll: function(interval, url, args, cb, post) {
6719 if (interval !== null &amp;&amp; interval &lt;= 0)
6720 interval = env.pollinterval;
6721
6722 var data = post ? { token: env.token } : null,
6723 method = post ? 'POST' : 'GET';
6724
6725 if (!/^(?:\/|\S+:\/\/)/.test(url))
6726 url = this.url(url);
6727
6728 if (args != null)
6729 data = Object.assign(data || {}, args);
6730
6731 if (interval !== null)
6732 return Request.poll.add(interval, url, { method: method, query: data }, cb);
6733 else
6734 return Request.request(url, { method: method, query: data })
6735 .then(function(res) {
6736 var json = null;
6737 if (/^application\/json\b/.test(res.headers.get('Content-Type')))
6738 try { json = res.json() } catch(e) {}
6739 cb(res.xhr, json, res.duration);
6740 });
6741 },
6742
6743 /**
6744 * Check whether a view has sufficient permissions.
6745 *
6746 * @return {boolean|null}
6747 * Returns `null` if the current session has no permission at all to
6748 * load resources required by the view. Returns `false` if readonly
6749 * permissions are granted or `true` if at least one required ACL
6750 * group is granted with write permissions.
6751 */
6752 hasViewPermission: function() {
6753 if (!this.isObject(env.nodespec) || !env.nodespec.satisfied)
6754 return null;
6755
6756 return !env.nodespec.readonly;
6757 },
6758
6759 /**
6760 * Deprecated wrapper around {@link LuCI.poll.remove Poll.remove()}.
6761 *
6762 * @deprecated
6763 * @instance
6764 * @memberof LuCI
6765 *
6766 * @param {function} entry
6767 * The polling function to remove.
6768 *
6769 * @return {boolean}
6770 * Returns `true` when the function has been removed or `false` if
6771 * it could not be found.
6772 */
6773 stop: function(entry) { return Poll.remove(entry) },
6774
6775 /**
6776 * Deprecated wrapper around {@link LuCI.poll.stop Poll.stop()}.
6777 *
6778 * @deprecated
6779 * @instance
6780 * @memberof LuCI
6781 *
6782 * @return {boolean}
6783 * Returns `true` when the polling loop has been stopped or `false`
6784 * when it didn't run to begin with.
6785 */
6786 halt: function() { return Poll.stop() },
6787
6788 /**
6789 * Deprecated wrapper around {@link LuCI.poll.start Poll.start()}.
6790 *
6791 * @deprecated
6792 * @instance
6793 * @memberof LuCI
6794 *
6795 * @return {boolean}
6796 * Returns `true` when the polling loop has been started or `false`
6797 * when it was already running.
6798 */
6799 run: function() { return Poll.start() },
6800
6801 /**
6802 * Legacy `L.dom` class alias. New view code should use `'require dom';`
6803 * to request the `LuCI.dom` class.
6804 *
6805 * @instance
6806 * @memberof LuCI
6807 * @deprecated
6808 */
6809 dom: DOM,
6810
6811 /**
6812 * Legacy `L.view` class alias. New view code should use `'require view';`
6813 * to request the `LuCI.view` class.
6814 *
6815 * @instance
6816 * @memberof LuCI
6817 * @deprecated
6818 */
6819 view: View,
6820
6821 /**
6822 * Legacy `L.Poll` class alias. New view code should use `'require poll';`
6823 * to request the `LuCI.poll` class.
6824 *
6825 * @instance
6826 * @memberof LuCI
6827 * @deprecated
6828 */
6829 Poll: Poll,
6830
6831 /**
6832 * Legacy `L.Request` class alias. New view code should use `'require request';`
6833 * to request the `LuCI.request` class.
6834 *
6835 * @instance
6836 * @memberof LuCI
6837 * @deprecated
6838 */
6839 Request: Request,
6840
6841 /**
6842 * Legacy `L.Class` class alias. New view code should use `'require baseclass';`
6843 * to request the `LuCI.baseclass` class.
6844 *
6845 * @instance
6846 * @memberof LuCI
6847 * @deprecated
6848 */
6849 Class: Class
6850 });
6851
6852 /**
6853 * @class xhr
6854 * @memberof LuCI
6855 * @deprecated
6856 * @classdesc
6857 *
6858 * The `LuCI.xhr` class is a legacy compatibility shim for the
6859 * functionality formerly provided by `xhr.js`. It is registered as global
6860 * `window.XHR` symbol for compatibility with legacy code.
6861 *
6862 * New code should use {@link LuCI.request} instead to implement HTTP
6863 * request handling.
6864 */
6865 var XHR = Class.extend(/** @lends LuCI.xhr.prototype */ {
6866 __name__: 'LuCI.xhr',
6867 __init__: function() {
6868 if (window.console &amp;&amp; console.debug)
6869 console.debug('Direct use XHR() is deprecated, please use L.Request instead');
6870 },
6871
6872 _response: function(cb, res, json, duration) {
6873 if (this.active)
6874 cb(res, json, duration);
6875 delete this.active;
6876 },
6877
6878 /**
6879 * This function is a legacy wrapper around
6880 * {@link LuCI#get LuCI.get()}.
6881 *
6882 * @instance
6883 * @deprecated
6884 * @memberof LuCI.xhr
6885 *
6886 * @param {string} url
6887 * The URL to request
6888 *
6889 * @param {Object} [data]
6890 * Additional query string data
6891 *
6892 * @param {LuCI.requestCallbackFn} [callback]
6893 * Callback function to invoke on completion
6894 *
6895 * @param {number} [timeout]
6896 * Request timeout to use
6897 *
6898 * @return {Promise&lt;null>}
6899 */
6900 get: function(url, data, callback, timeout) {
6901 this.active = true;
6902 LuCI.prototype.get(url, data, this._response.bind(this, callback), timeout);
6903 },
6904
6905 /**
6906 * This function is a legacy wrapper around
6907 * {@link LuCI#post LuCI.post()}.
6908 *
6909 * @instance
6910 * @deprecated
6911 * @memberof LuCI.xhr
6912 *
6913 * @param {string} url
6914 * The URL to request
6915 *
6916 * @param {Object} [data]
6917 * Additional data to append to the request body.
6918 *
6919 * @param {LuCI.requestCallbackFn} [callback]
6920 * Callback function to invoke on completion
6921 *
6922 * @param {number} [timeout]
6923 * Request timeout to use
6924 *
6925 * @return {Promise&lt;null>}
6926 */
6927 post: function(url, data, callback, timeout) {
6928 this.active = true;
6929 LuCI.prototype.post(url, data, this._response.bind(this, callback), timeout);
6930 },
6931
6932 /**
6933 * Cancels a running request.
6934 *
6935 * This function does not actually cancel the underlying
6936 * `XMLHTTPRequest` request but it sets a flag which prevents the
6937 * invocation of the callback function when the request eventually
6938 * finishes or timed out.
6939 *
6940 * @instance
6941 * @deprecated
6942 * @memberof LuCI.xhr
6943 */
6944 cancel: function() { delete this.active },
6945
6946 /**
6947 * Checks the running state of the request.
6948 *
6949 * @instance
6950 * @deprecated
6951 * @memberof LuCI.xhr
6952 *
6953 * @returns {boolean}
6954 * Returns `true` if the request is still running or `false` if it
6955 * already completed.
6956 */
6957 busy: function() { return (this.active === true) },
6958
6959 /**
6960 * Ignored for backwards compatibility.
6961 *
6962 * This function does nothing.
6963 *
6964 * @instance
6965 * @deprecated
6966 * @memberof LuCI.xhr
6967 */
6968 abort: function() {},
6969
6970 /**
6971 * Existing for backwards compatibility.
6972 *
6973 * This function simply throws an `InternalError` when invoked.
6974 *
6975 * @instance
6976 * @deprecated
6977 * @memberof LuCI.xhr
6978 *
6979 * @throws {InternalError}
6980 * Throws an `InternalError` with the message `Not implemented`
6981 * when invoked.
6982 */
6983 send_form: function() { LuCI.prototype.error('InternalError', 'Not implemented') },
6984 });
6985
6986 XHR.get = function() { return LuCI.prototype.get.apply(LuCI.prototype, arguments) };
6987 XHR.post = function() { return LuCI.prototype.post.apply(LuCI.prototype, arguments) };
6988 XHR.poll = function() { return LuCI.prototype.poll.apply(LuCI.prototype, arguments) };
6989 XHR.stop = Request.poll.remove.bind(Request.poll);
6990 XHR.halt = Request.poll.stop.bind(Request.poll);
6991 XHR.run = Request.poll.start.bind(Request.poll);
6992 XHR.running = Request.poll.active.bind(Request.poll);
6993
6994 window.XHR = XHR;
6995 window.LuCI = LuCI;
6996 })(window, document);
6997 </code></pre>
6998 </article>
6999 </section>
7000
7001
7002
7003
7004
7005
7006
7007
7008 <footer>
7009 Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Wed Jan 10 2024 21:06:28 GMT+0000 (Coordinated Universal Time)
7010 </footer>
7011 </div>
7012 </div>
7013 <script>prettyPrint();</script>
7014 <script src="scripts/jaguar.js"></script>
7015 </body>
7016 </html>