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