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