documentation: add JS api docs
[oweals/luci.git] / documentation / jsapi / LuCI.html
1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
4     <meta charset="utf-8">
5     <title>JSDoc: Class: LuCI</title>
6
7     <script src="scripts/prettify/prettify.js"> </script>
8     <script src="scripts/prettify/lang-css.js"> </script>
9     <!--[if lt IE 9]>
10       <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
11     <![endif]-->
12     <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
13     <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
14 </head>
15
16 <body>
17
18 <div id="main">
19
20     <h1 class="page-title">Class: LuCI</h1>
21
22     
23
24
25
26
27 <section>
28
29 <header>
30     
31         <h2><span class="attribs"><span class="type-signature"></span></span>LuCI<span class="signature">(env)</span><span class="type-signature"></span></h2>
32         
33             <div class="class-description"><p>This is the LuCI base class. It is automatically instantiated and
34 accessible using the global <code>L</code> variable.</p></div>
35         
36     
37 </header>
38
39 <article>
40     <div class="container-overview">
41     
42         
43
44     
45     <h2>Constructor</h2>
46     
47
48     
49     <h4 class="name" id="LuCI"><span class="type-signature"></span>new LuCI<span class="signature">(env)</span><span class="type-signature"></span></h4>
50     
51
52     
53
54
55
56
57
58
59
60
61
62
63
64     <h5>Parameters:</h5>
65     
66
67 <table class="params">
68     <thead>
69     <tr>
70         
71         <th>Name</th>
72         
73
74         <th>Type</th>
75
76         
77
78         
79
80         <th class="last">Description</th>
81     </tr>
82     </thead>
83
84     <tbody>
85     
86
87         <tr>
88             
89                 <td class="name"><code>env</code></td>
90             
91
92             <td class="type">
93             
94                 
95 <span class="param-type">Object</span>
96
97
98             
99             </td>
100
101             
102
103             
104
105             <td class="description last"><p>The environment settings to use for the LuCI runtime.</p></td>
106         </tr>
107
108     
109     </tbody>
110 </table>
111
112
113
114
115
116
117 <dl class="details">
118
119     
120
121     
122
123     
124
125     
126
127     
128
129     
130
131     
132
133     
134
135     
136
137     
138
139     
140
141     
142
143     
144     <dt class="tag-source">Source:</dt>
145     <dd class="tag-source"><ul class="dummy"><li>
146         <a href="luci.js.html">luci.js</a>, <a href="luci.js.html#line1">line 1</a>
147     </li></ul></dd>
148     
149
150     
151
152     
153
154     
155 </dl>
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176     
177     </div>
178
179     
180
181     
182
183     
184         <h3 class="subsection-title">Classes</h3>
185
186         <dl>
187             <dt><a href="LuCI.Class.html">Class</a></dt>
188             <dd></dd>
189         
190             <dt><a href="LuCI.dom.html">dom</a></dt>
191             <dd></dd>
192         
193             <dt><a href="LuCI.fs.html">fs</a></dt>
194             <dd></dd>
195         
196             <dt><a href="LuCI.Headers.html">Headers</a></dt>
197             <dd></dd>
198         
199             <dt><a href="LuCI.Network.html">Network</a></dt>
200             <dd></dd>
201         
202             <dt><a href="LuCI.Poll.html">Poll</a></dt>
203             <dd></dd>
204         
205             <dt><a href="LuCI.Request.html">Request</a></dt>
206             <dd></dd>
207         
208             <dt><a href="LuCI.Response.html">Response</a></dt>
209             <dd></dd>
210         
211             <dt><a href="LuCI.rpc.html">rpc</a></dt>
212             <dd></dd>
213         
214             <dt><a href="LuCI.uci.html">uci</a></dt>
215             <dd></dd>
216         
217             <dt><a href="LuCI.view.html">view</a></dt>
218             <dd></dd>
219         
220             <dt><a href="LuCI.XHR.html">XHR</a></dt>
221             <dd></dd>
222         </dl>
223     
224
225     
226
227     
228
229     
230
231     
232         <h3 class="subsection-title">Members</h3>
233
234         
235             
236 <h4 class="name" id="env"><span class="type-signature"></span>env<span class="type-signature"></span></h4>
237
238
239
240
241 <div class="description">
242     <p>The <code>env</code> object holds environment settings used by LuCI, such
243 as request timeouts, base URLs etc.</p>
244 </div>
245
246
247
248
249
250
251
252 <dl class="details">
253
254     
255
256     
257
258     
259
260     
261
262     
263
264     
265
266     
267
268     
269
270     
271
272     
273
274     
275
276     
277
278     
279     <dt class="tag-source">Source:</dt>
280     <dd class="tag-source"><ul class="dummy"><li>
281         <a href="luci.js.html">luci.js</a>, <a href="luci.js.html#line1657">line 1657</a>
282     </li></ul></dd>
283     
284
285     
286
287     
288
289     
290 </dl>
291
292
293
294
295
296
297         
298     
299
300     
301         <h3 class="subsection-title">Methods</h3>
302
303         
304             
305
306     
307
308     
309     <h4 class="name" id="bind"><span class="type-signature"></span>bind<span class="signature">(fn, self, &hellip;args<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {function}</span></h4>
310     
311
312     
313
314
315
316 <div class="description">
317     <p>Return a bound function using the given <code>self</code> as <code>this</code> context
318 and any further arguments as parameters to the bound function.</p>
319 </div>
320
321
322
323
324
325
326
327
328
329     <h5>Parameters:</h5>
330     
331
332 <table class="params">
333     <thead>
334     <tr>
335         
336         <th>Name</th>
337         
338
339         <th>Type</th>
340
341         
342         <th>Attributes</th>
343         
344
345         
346
347         <th class="last">Description</th>
348     </tr>
349     </thead>
350
351     <tbody>
352     
353
354         <tr>
355             
356                 <td class="name"><code>fn</code></td>
357             
358
359             <td class="type">
360             
361                 
362 <span class="param-type">function</span>
363
364
365             
366             </td>
367
368             
369                 <td class="attributes">
370                 
371
372                 
373
374                 
375                 </td>
376             
377
378             
379
380             <td class="description last"><p>The function to bind.</p></td>
381         </tr>
382
383     
384
385         <tr>
386             
387                 <td class="name"><code>self</code></td>
388             
389
390             <td class="type">
391             
392                 
393 <span class="param-type">*</span>
394
395
396             
397             </td>
398
399             
400                 <td class="attributes">
401                 
402
403                 
404
405                 
406                 </td>
407             
408
409             
410
411             <td class="description last"><p>The value to bind as <code>this</code> context to the specified function.</p></td>
412         </tr>
413
414     
415
416         <tr>
417             
418                 <td class="name"><code>args</code></td>
419             
420
421             <td class="type">
422             
423                 
424 <span class="param-type">*</span>
425
426
427             
428             </td>
429
430             
431                 <td class="attributes">
432                 
433                     &lt;optional><br>
434                 
435
436                 
437
438                 
439                     &lt;repeatable><br>
440                 
441                 </td>
442             
443
444             
445
446             <td class="description last"><p>Zero or more variable arguments which are bound to the function
447 as parameters.</p></td>
448         </tr>
449
450     
451     </tbody>
452 </table>
453
454
455
456
457
458
459 <dl class="details">
460
461     
462
463     
464
465     
466
467     
468
469     
470
471     
472
473     
474
475     
476
477     
478
479     
480
481     
482
483     
484
485     
486     <dt class="tag-source">Source:</dt>
487     <dd class="tag-source"><ul class="dummy"><li>
488         <a href="luci.js.html">luci.js</a>, <a href="luci.js.html#line1340">line 1340</a>
489     </li></ul></dd>
490     
491
492     
493
494     
495
496     
497 </dl>
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513 <h5>Returns:</h5>
514
515         
516 <div class="param-desc">
517     <p>Returns the bound function.</p>
518 </div>
519
520
521
522 <dl>
523     <dt>
524         Type
525     </dt>
526     <dd>
527         
528 <span class="param-type">function</span>
529
530
531     </dd>
532 </dl>
533
534     
535
536
537
538
539
540         
541             
542
543     
544
545     
546     <h4 class="name" id="error"><span class="type-signature"></span>error<span class="signature">(type<span class="signature-attributes">opt</span>, fmt<span class="signature-attributes">opt</span>, &hellip;args<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
547     
548
549     
550
551
552
553 <div class="description">
554     <p>A wrapper around <a href="LuCI.html#raise"><code>raise()</code></a> which also renders
555 the error either as modal overlay when <code>ui.js</code> is already loaed
556 or directly into the view body.</p>
557 </div>
558
559
560
561
562
563
564
565
566
567     <h5>Parameters:</h5>
568     
569
570 <table class="params">
571     <thead>
572     <tr>
573         
574         <th>Name</th>
575         
576
577         <th>Type</th>
578
579         
580         <th>Attributes</th>
581         
582
583         
584         <th>Default</th>
585         
586
587         <th class="last">Description</th>
588     </tr>
589     </thead>
590
591     <tbody>
592     
593
594         <tr>
595             
596                 <td class="name"><code>type</code></td>
597             
598
599             <td class="type">
600             
601                 
602 <span class="param-type">Error</span>
603 |
604
605 <span class="param-type">string</span>
606
607
608             
609             </td>
610
611             
612                 <td class="attributes">
613                 
614                     &lt;optional><br>
615                 
616
617                 
618
619                 
620                 </td>
621             
622
623             
624                 <td class="default">
625                 
626                     Error
627                 
628                 </td>
629             
630
631             <td class="description last"><p>Either a string specifying the type of the error to throw or an
632 existing <code>Error</code> instance to copy.</p></td>
633         </tr>
634
635     
636
637         <tr>
638             
639                 <td class="name"><code>fmt</code></td>
640             
641
642             <td class="type">
643             
644                 
645 <span class="param-type">string</span>
646
647
648             
649             </td>
650
651             
652                 <td class="attributes">
653                 
654                     &lt;optional><br>
655                 
656
657                 
658
659                 
660                 </td>
661             
662
663             
664                 <td class="default">
665                 
666                     Unspecified error
667                 
668                 </td>
669             
670
671             <td class="description last"><p>A format string which is used to form the error message, together
672 with all subsequent optional arguments.</p></td>
673         </tr>
674
675     
676
677         <tr>
678             
679                 <td class="name"><code>args</code></td>
680             
681
682             <td class="type">
683             
684                 
685 <span class="param-type">*</span>
686
687
688             
689             </td>
690
691             
692                 <td class="attributes">
693                 
694                     &lt;optional><br>
695                 
696
697                 
698
699                 
700                     &lt;repeatable><br>
701                 
702                 </td>
703             
704
705             
706                 <td class="default">
707                 
708                 </td>
709             
710
711             <td class="description last"><p>Zero or more variable arguments to the supplied format string.</p></td>
712         </tr>
713
714     
715     </tbody>
716 </table>
717
718
719
720
721
722
723 <dl class="details">
724
725     
726
727     
728
729     
730
731     
732
733     
734
735     
736
737     
738
739     
740
741     
742
743     
744
745     
746
747     
748
749     
750     <dt class="tag-source">Source:</dt>
751     <dd class="tag-source"><ul class="dummy"><li>
752         <a href="luci.js.html">luci.js</a>, <a href="luci.js.html#line1300">line 1300</a>
753     </li></ul></dd>
754     
755
756     
757
758     
759
760     
761 </dl>
762
763
764
765
766
767
768
769
770
771
772
773
774
775 <h5>Throws:</h5>
776
777         
778
779 <dl>
780     <dt>
781         <div class="param-desc">
782         <p>Throws the created error object with the captured stack trace
783 appended to the message and the type set to the given type
784 argument or copied from the given error instance.</p>
785         </div>
786     </dt>
787     <dd></dd>
788     <dt>
789         <dl>
790             <dt>
791                 Type
792             </dt>
793             <dd>
794                 
795 <span class="param-type">Error</span>
796
797
798             </dd>
799         </dl>
800     </dt>
801     <dd></dd>
802 </dl>
803
804
805     
806
807
808
809
810
811
812
813         
814             
815
816     
817
818     
819     <h4 class="name" id="get"><span class="type-signature"></span>get<span class="signature">(url, args<span class="signature-attributes">opt</span>, cb)</span><span class="type-signature"> &rarr; {Promise.&lt;null>}</span></h4>
820     
821
822     
823
824
825
826 <div class="description">
827     <p>Issues a GET request to the given url and invokes the specified
828 callback function. The function is a wrapper around
829 <a href="LuCI.Request.html#request"><code>Request.request()</code></a>.</p>
830 </div>
831
832
833
834
835
836
837
838
839
840     <h5>Parameters:</h5>
841     
842
843 <table class="params">
844     <thead>
845     <tr>
846         
847         <th>Name</th>
848         
849
850         <th>Type</th>
851
852         
853         <th>Attributes</th>
854         
855
856         
857
858         <th class="last">Description</th>
859     </tr>
860     </thead>
861
862     <tbody>
863     
864
865         <tr>
866             
867                 <td class="name"><code>url</code></td>
868             
869
870             <td class="type">
871             
872                 
873 <span class="param-type">string</span>
874
875
876             
877             </td>
878
879             
880                 <td class="attributes">
881                 
882
883                 
884
885                 
886                 </td>
887             
888
889             
890
891             <td class="description last"><p>The URL to request.</p></td>
892         </tr>
893
894     
895
896         <tr>
897             
898                 <td class="name"><code>args</code></td>
899             
900
901             <td class="type">
902             
903                 
904 <span class="param-type">Object.&lt;string, string></span>
905
906
907             
908             </td>
909
910             
911                 <td class="attributes">
912                 
913                     &lt;optional><br>
914                 
915
916                 
917
918                 
919                 </td>
920             
921
922             
923
924             <td class="description last"><p>Additional query string arguments to append to the URL.</p></td>
925         </tr>
926
927     
928
929         <tr>
930             
931                 <td class="name"><code>cb</code></td>
932             
933
934             <td class="type">
935             
936                 
937 <span class="param-type"><a href="LuCI.html#.requestCallbackFn">LuCI.requestCallbackFn</a></span>
938
939
940             
941             </td>
942
943             
944                 <td class="attributes">
945                 
946
947                 
948
949                 
950                 </td>
951             
952
953             
954
955             <td class="description last"><p>The callback function to invoke when the request finishes.</p></td>
956         </tr>
957
958     
959     </tbody>
960 </table>
961
962
963
964
965
966
967 <dl class="details">
968
969     
970
971     
972
973     
974
975     
976
977     
978
979     
980
981     
982
983     
984         <dt class="important tag-deprecated">Deprecated:</dt><dd class="yes-def tag-deprecated"><ul class="dummy"><li>Yes</li></ul></dd>
985     
986
987     
988
989     
990
991     
992
993     
994
995     
996     <dt class="tag-source">Source:</dt>
997     <dd class="tag-source"><ul class="dummy"><li>
998         <a href="luci.js.html">luci.js</a>, <a href="luci.js.html#line1918">line 1918</a>
999     </li></ul></dd>
1000     
1001
1002     
1003
1004     
1005
1006     
1007 </dl>
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023 <h5>Returns:</h5>
1024
1025         
1026 <div class="param-desc">
1027     <p>Returns a promise resolving to <code>null</code> when concluded.</p>
1028 </div>
1029
1030
1031
1032 <dl>
1033     <dt>
1034         Type
1035     </dt>
1036     <dd>
1037         
1038 <span class="param-type">Promise.&lt;null></span>
1039
1040
1041     </dd>
1042 </dl>
1043
1044     
1045
1046
1047
1048
1049
1050         
1051             
1052
1053     
1054
1055     
1056     <h4 class="name" id="halt"><span class="type-signature"></span>halt<span class="signature">()</span><span class="type-signature"> &rarr; {boolean}</span></h4>
1057     
1058
1059     
1060
1061
1062
1063 <div class="description">
1064     <p>Deprecated wrapper around <code>Poll.stop()</code>.</p>
1065 </div>
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079 <dl class="details">
1080
1081     
1082
1083     
1084
1085     
1086
1087     
1088
1089     
1090
1091     
1092
1093     
1094
1095     
1096         <dt class="important tag-deprecated">Deprecated:</dt><dd class="yes-def tag-deprecated"><ul class="dummy"><li>Yes</li></ul></dd>
1097     
1098
1099     
1100
1101     
1102
1103     
1104
1105     
1106
1107     
1108     <dt class="tag-source">Source:</dt>
1109     <dd class="tag-source"><ul class="dummy"><li>
1110         <a href="luci.js.html">luci.js</a>, <a href="luci.js.html#line2040">line 2040</a>
1111     </li></ul></dd>
1112     
1113
1114     
1115
1116     
1117
1118     
1119 </dl>
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135 <h5>Returns:</h5>
1136
1137         
1138 <div class="param-desc">
1139     <p>Returns <code>true</code> when the polling loop has been stopped or <code>false</code>
1140 when it didn't run to begin with.</p>
1141 </div>
1142
1143
1144
1145 <dl>
1146     <dt>
1147         Type
1148     </dt>
1149     <dd>
1150         
1151 <span class="param-type">boolean</span>
1152
1153
1154     </dd>
1155 </dl>
1156
1157     
1158
1159
1160
1161
1162
1163         
1164             
1165
1166     
1167
1168     
1169     <h4 class="name" id="hasSystemFeature"><span class="type-signature"></span>hasSystemFeature<span class="signature">(feature, subfeature<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {boolean|null}</span></h4>
1170     
1171
1172     
1173
1174
1175
1176 <div class="description">
1177     <p>Test whether a particular system feature is available, such as
1178 hostapd SAE support or an installed firewall. The features are
1179 queried once at the beginning of the LuCI session and cached in
1180 <code>SessionStorage</code> throughout the lifetime of the associated tab or
1181 browser window.</p>
1182 </div>
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192     <h5>Parameters:</h5>
1193     
1194
1195 <table class="params">
1196     <thead>
1197     <tr>
1198         
1199         <th>Name</th>
1200         
1201
1202         <th>Type</th>
1203
1204         
1205         <th>Attributes</th>
1206         
1207
1208         
1209
1210         <th class="last">Description</th>
1211     </tr>
1212     </thead>
1213
1214     <tbody>
1215     
1216
1217         <tr>
1218             
1219                 <td class="name"><code>feature</code></td>
1220             
1221
1222             <td class="type">
1223             
1224                 
1225 <span class="param-type">string</span>
1226
1227
1228             
1229             </td>
1230
1231             
1232                 <td class="attributes">
1233                 
1234
1235                 
1236
1237                 
1238                 </td>
1239             
1240
1241             
1242
1243             <td class="description last"><p>The feature to test. For detailed list of known feature flags,
1244 see <code>/modules/luci-base/root/usr/libexec/rpcd/luci</code>.</p></td>
1245         </tr>
1246
1247     
1248
1249         <tr>
1250             
1251                 <td class="name"><code>subfeature</code></td>
1252             
1253
1254             <td class="type">
1255             
1256                 
1257 <span class="param-type">string</span>
1258
1259
1260             
1261             </td>
1262
1263             
1264                 <td class="attributes">
1265                 
1266                     &lt;optional><br>
1267                 
1268
1269                 
1270
1271                 
1272                 </td>
1273             
1274
1275             
1276
1277             <td class="description last"><p>Some feature classes like <code>hostapd</code> provide sub-feature flags,
1278 such as <code>sae</code> or <code>11w</code> support. The <code>subfeature</code> argument can
1279 be used to query these.</p></td>
1280         </tr>
1281
1282     
1283     </tbody>
1284 </table>
1285
1286
1287
1288
1289
1290
1291 <dl class="details">
1292
1293     
1294
1295     
1296
1297     
1298
1299     
1300
1301     
1302
1303     
1304
1305     
1306
1307     
1308
1309     
1310
1311     
1312
1313     
1314
1315     
1316
1317     
1318     <dt class="tag-source">Source:</dt>
1319     <dd class="tag-source"><ul class="dummy"><li>
1320         <a href="luci.js.html">luci.js</a>, <a href="luci.js.html#line1574">line 1574</a>
1321     </li></ul></dd>
1322     
1323
1324     
1325
1326     
1327
1328     
1329 </dl>
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345 <h5>Returns:</h5>
1346
1347         
1348 <div class="param-desc">
1349     <p>Return <code>true</code> if the queried feature (and sub-feature) is available
1350 or <code>false</code> if the requested feature isn't present or known.
1351 Return <code>null</code> when a sub-feature was queried for a feature which
1352 has no sub-features.</p>
1353 </div>
1354
1355
1356
1357 <dl>
1358     <dt>
1359         Type
1360     </dt>
1361     <dd>
1362         
1363 <span class="param-type">boolean</span>
1364 |
1365
1366 <span class="param-type">null</span>
1367
1368
1369     </dd>
1370 </dl>
1371
1372     
1373
1374
1375
1376
1377
1378         
1379             
1380
1381     
1382
1383     
1384     <h4 class="name" id="isObject"><span class="type-signature"></span>isObject<span class="signature">(val<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
1385     
1386
1387     
1388
1389
1390
1391 <div class="description">
1392     <p>Tests whether the passed argument is a JavaScript object.
1393 This function is meant to be an object counterpart to the
1394 standard <code>Array.isArray()</code> function.</p>
1395 </div>
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405     <h5>Parameters:</h5>
1406     
1407
1408 <table class="params">
1409     <thead>
1410     <tr>
1411         
1412         <th>Name</th>
1413         
1414
1415         <th>Type</th>
1416
1417         
1418         <th>Attributes</th>
1419         
1420
1421         
1422
1423         <th class="last">Description</th>
1424     </tr>
1425     </thead>
1426
1427     <tbody>
1428     
1429
1430         <tr>
1431             
1432                 <td class="name"><code>val</code></td>
1433             
1434
1435             <td class="type">
1436             
1437                 
1438 <span class="param-type">*</span>
1439
1440
1441             
1442             </td>
1443
1444             
1445                 <td class="attributes">
1446                 
1447                     &lt;optional><br>
1448                 
1449
1450                 
1451
1452                 
1453                 </td>
1454             
1455
1456             
1457
1458             <td class="description last"><p>The value to test</p></td>
1459         </tr>
1460
1461     
1462     </tbody>
1463 </table>
1464
1465
1466
1467
1468
1469
1470 <dl class="details">
1471
1472     
1473
1474     
1475
1476     
1477
1478     
1479
1480     
1481
1482     
1483
1484     
1485
1486     
1487
1488     
1489
1490     
1491
1492     
1493
1494     
1495
1496     
1497     <dt class="tag-source">Source:</dt>
1498     <dd class="tag-source"><ul class="dummy"><li>
1499         <a href="luci.js.html">luci.js</a>, <a href="luci.js.html#line1765">line 1765</a>
1500     </li></ul></dd>
1501     
1502
1503     
1504
1505     
1506
1507     
1508 </dl>
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524 <h5>Returns:</h5>
1525
1526         
1527 <div class="param-desc">
1528     <p>Returns <code>true</code> if the given value is of type object and
1529 not <code>null</code>, else returns <code>false</code>.</p>
1530 </div>
1531
1532
1533
1534 <dl>
1535     <dt>
1536         Type
1537     </dt>
1538     <dd>
1539         
1540 <span class="param-type">boolean</span>
1541
1542
1543     </dd>
1544 </dl>
1545
1546     
1547
1548
1549
1550
1551
1552         
1553             
1554
1555     
1556
1557     
1558     <h4 class="name" id="location"><span class="type-signature"></span>location<span class="signature">()</span><span class="type-signature"> &rarr; {string}</span></h4>
1559     
1560
1561     
1562
1563
1564
1565 <div class="description">
1566     <p>Return the complete URL path to the current view.</p>
1567 </div>
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581 <dl class="details">
1582
1583     
1584
1585     
1586
1587     
1588
1589     
1590
1591     
1592
1593     
1594
1595     
1596
1597     
1598
1599     
1600
1601     
1602
1603     
1604
1605     
1606
1607     
1608     <dt class="tag-source">Source:</dt>
1609     <dd class="tag-source"><ul class="dummy"><li>
1610         <a href="luci.js.html">luci.js</a>, <a href="luci.js.html#line1745">line 1745</a>
1611     </li></ul></dd>
1612     
1613
1614     
1615
1616     
1617
1618     
1619 </dl>
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635 <h5>Returns:</h5>
1636
1637         
1638 <div class="param-desc">
1639     <p>Returns the URL path to the current view.</p>
1640 </div>
1641
1642
1643
1644 <dl>
1645     <dt>
1646         Type
1647     </dt>
1648     <dd>
1649         
1650 <span class="param-type">string</span>
1651
1652
1653     </dd>
1654 </dl>
1655
1656     
1657
1658
1659
1660
1661
1662         
1663             
1664
1665     
1666
1667     
1668     <h4 class="name" id="path"><span class="type-signature"></span>path<span class="signature">(prefix<span class="signature-attributes">opt</span>, parts<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {string}</span></h4>
1669     
1670
1671     
1672
1673
1674
1675 <div class="description">
1676     <p>Construct a relative URL path from the given prefix and parts.
1677 The resulting URL is guaranteed to only contain the characters
1678 <code>a-z</code>, <code>A-Z</code>, <code>0-9</code>, <code>_</code>, <code>.</code>, <code>%</code>, <code>,</code>, <code>;</code>, and <code>-</code> as well
1679 as <code>/</code> for the path separator.</p>
1680 </div>
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690     <h5>Parameters:</h5>
1691     
1692
1693 <table class="params">
1694     <thead>
1695     <tr>
1696         
1697         <th>Name</th>
1698         
1699
1700         <th>Type</th>
1701
1702         
1703         <th>Attributes</th>
1704         
1705
1706         
1707
1708         <th class="last">Description</th>
1709     </tr>
1710     </thead>
1711
1712     <tbody>
1713     
1714
1715         <tr>
1716             
1717                 <td class="name"><code>prefix</code></td>
1718             
1719
1720             <td class="type">
1721             
1722                 
1723 <span class="param-type">string</span>
1724
1725
1726             
1727             </td>
1728
1729             
1730                 <td class="attributes">
1731                 
1732                     &lt;optional><br>
1733                 
1734
1735                 
1736
1737                 
1738                 </td>
1739             
1740
1741             
1742
1743             <td class="description last"><p>The prefix to join the given parts with. If the <code>prefix</code> is
1744 omitted, it defaults to an empty string.</p></td>
1745         </tr>
1746
1747     
1748
1749         <tr>
1750             
1751                 <td class="name"><code>parts</code></td>
1752             
1753
1754             <td class="type">
1755             
1756                 
1757 <span class="param-type">Array.&lt;string></span>
1758
1759
1760             
1761             </td>
1762
1763             
1764                 <td class="attributes">
1765                 
1766                     &lt;optional><br>
1767                 
1768
1769                 
1770
1771                 
1772                 </td>
1773             
1774
1775             
1776
1777             <td class="description last"><p>An array of parts to join into an URL path. Parts may contain
1778 slashes and any of the other characters mentioned above.</p></td>
1779         </tr>
1780
1781     
1782     </tbody>
1783 </table>
1784
1785
1786
1787
1788
1789
1790 <dl class="details">
1791
1792     
1793
1794     
1795
1796     
1797
1798     
1799
1800     
1801
1802     
1803
1804     
1805
1806     
1807
1808     
1809
1810     
1811
1812     
1813
1814     
1815
1816     
1817     <dt class="tag-source">Source:</dt>
1818     <dd class="tag-source"><ul class="dummy"><li>
1819         <a href="luci.js.html">luci.js</a>, <a href="luci.js.html#line1679">line 1679</a>
1820     </li></ul></dd>
1821     
1822
1823     
1824
1825     
1826
1827     
1828 </dl>
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844 <h5>Returns:</h5>
1845
1846         
1847 <div class="param-desc">
1848     <p>Return the joined URL path.</p>
1849 </div>
1850
1851
1852
1853 <dl>
1854     <dt>
1855         Type
1856     </dt>
1857     <dd>
1858         
1859 <span class="param-type">string</span>
1860
1861
1862     </dd>
1863 </dl>
1864
1865     
1866
1867
1868
1869
1870
1871         
1872             
1873
1874     
1875
1876     
1877     <h4 class="name" id="poll"><span class="type-signature"></span>poll<span class="signature">(interval, url, args<span class="signature-attributes">opt</span>, cb, post<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {function}</span></h4>
1878     
1879
1880     
1881
1882
1883
1884 <div class="description">
1885     <p>Register a polling HTTP request that invokes the specified
1886 callback function. The function is a wrapper around
1887 <a href="LuCI.Request.poll.html#add"><code>Request.poll.add()</code></a>.</p>
1888 </div>
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898     <h5>Parameters:</h5>
1899     
1900
1901 <table class="params">
1902     <thead>
1903     <tr>
1904         
1905         <th>Name</th>
1906         
1907
1908         <th>Type</th>
1909
1910         
1911         <th>Attributes</th>
1912         
1913
1914         
1915         <th>Default</th>
1916         
1917
1918         <th class="last">Description</th>
1919     </tr>
1920     </thead>
1921
1922     <tbody>
1923     
1924
1925         <tr>
1926             
1927                 <td class="name"><code>interval</code></td>
1928             
1929
1930             <td class="type">
1931             
1932                 
1933 <span class="param-type">number</span>
1934
1935
1936             
1937             </td>
1938
1939             
1940                 <td class="attributes">
1941                 
1942
1943                 
1944
1945                 
1946                 </td>
1947             
1948
1949             
1950                 <td class="default">
1951                 
1952                 </td>
1953             
1954
1955             <td class="description last"><p>The poll interval to use. If set to a value less than or equal
1956 to <code>0</code>, it will default to the global poll interval configured
1957 in <code>LuCI.env.pollinterval</code>.</p></td>
1958         </tr>
1959
1960     
1961
1962         <tr>
1963             
1964                 <td class="name"><code>url</code></td>
1965             
1966
1967             <td class="type">
1968             
1969                 
1970 <span class="param-type">string</span>
1971
1972
1973             
1974             </td>
1975
1976             
1977                 <td class="attributes">
1978                 
1979
1980                 
1981
1982                 
1983                 </td>
1984             
1985
1986             
1987                 <td class="default">
1988                 
1989                 </td>
1990             
1991
1992             <td class="description last"><p>The URL to request.</p></td>
1993         </tr>
1994
1995     
1996
1997         <tr>
1998             
1999                 <td class="name"><code>args</code></td>
2000             
2001
2002             <td class="type">
2003             
2004                 
2005 <span class="param-type">Object.&lt;string, string></span>
2006
2007
2008             
2009             </td>
2010
2011             
2012                 <td class="attributes">
2013                 
2014                     &lt;optional><br>
2015                 
2016
2017                 
2018
2019                 
2020                 </td>
2021             
2022
2023             
2024                 <td class="default">
2025                 
2026                 </td>
2027             
2028
2029             <td class="description last"><p>Specifies additional arguments for the request. For GET requests,
2030 the arguments are appended to the URL as query string, for POST
2031 requests, they'll be added to the request body.</p></td>
2032         </tr>
2033
2034     
2035
2036         <tr>
2037             
2038                 <td class="name"><code>cb</code></td>
2039             
2040
2041             <td class="type">
2042             
2043                 
2044 <span class="param-type"><a href="LuCI.html#.requestCallbackFn">LuCI.requestCallbackFn</a></span>
2045
2046
2047             
2048             </td>
2049
2050             
2051                 <td class="attributes">
2052                 
2053
2054                 
2055
2056                 
2057                 </td>
2058             
2059
2060             
2061                 <td class="default">
2062                 
2063                 </td>
2064             
2065
2066             <td class="description last"><p>The callback function to invoke whenever a request finishes.</p></td>
2067         </tr>
2068
2069     
2070
2071         <tr>
2072             
2073                 <td class="name"><code>post</code></td>
2074             
2075
2076             <td class="type">
2077             
2078                 
2079 <span class="param-type">boolean</span>
2080
2081
2082             
2083             </td>
2084
2085             
2086                 <td class="attributes">
2087                 
2088                     &lt;optional><br>
2089                 
2090
2091                 
2092
2093                 
2094                 </td>
2095             
2096
2097             
2098                 <td class="default">
2099                 
2100                     false
2101                 
2102                 </td>
2103             
2104
2105             <td class="description last"><p>When set to <code>false</code> or not specified, poll requests will be made
2106 using the GET method. When set to <code>true</code>, POST requests will be
2107 issued. In case of POST requests, the request body will contain
2108 an argument <code>token</code> with the current value of <code>LuCI.env.token</code> by
2109 default, regardless of the parameters specified with <code>args</code>.</p></td>
2110         </tr>
2111
2112     
2113     </tbody>
2114 </table>
2115
2116
2117
2118
2119
2120
2121 <dl class="details">
2122
2123     
2124
2125     
2126
2127     
2128
2129     
2130
2131     
2132
2133     
2134
2135     
2136
2137     
2138         <dt class="important tag-deprecated">Deprecated:</dt><dd class="yes-def tag-deprecated"><ul class="dummy"><li>Yes</li></ul></dd>
2139     
2140
2141     
2142
2143     
2144
2145     
2146
2147     
2148
2149     
2150     <dt class="tag-source">Source:</dt>
2151     <dd class="tag-source"><ul class="dummy"><li>
2152         <a href="luci.js.html">luci.js</a>, <a href="luci.js.html#line1988">line 1988</a>
2153     </li></ul></dd>
2154     
2155
2156     
2157
2158     
2159
2160     
2161 </dl>
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177 <h5>Returns:</h5>
2178
2179         
2180 <div class="param-desc">
2181     <p>Returns the internally created function that has been passed to
2182 <a href="LuCI.Request.poll.html#add"><code>Request.poll.add()</code></a>. This value can
2183 be passed to <code>Poll.remove()</code> to remove the
2184 polling request.</p>
2185 </div>
2186
2187
2188
2189 <dl>
2190     <dt>
2191         Type
2192     </dt>
2193     <dd>
2194         
2195 <span class="param-type">function</span>
2196
2197
2198     </dd>
2199 </dl>
2200
2201     
2202
2203
2204
2205
2206
2207         
2208             
2209
2210     
2211
2212     
2213     <h4 class="name" id="post"><span class="type-signature"></span>post<span class="signature">(url, args<span class="signature-attributes">opt</span>, cb)</span><span class="type-signature"> &rarr; {Promise.&lt;null>}</span></h4>
2214     
2215
2216     
2217
2218
2219
2220 <div class="description">
2221     <p>Issues a POST request to the given url and invokes the specified
2222 callback function. The function is a wrapper around
2223 <a href="LuCI.Request.html#request"><code>Request.request()</code></a>. The request is
2224 sent using <code>application/x-www-form-urlencoded</code> encoding and will
2225 contain a field <code>token</code> with the current value of <code>LuCI.env.token</code>
2226 by default.</p>
2227 </div>
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237     <h5>Parameters:</h5>
2238     
2239
2240 <table class="params">
2241     <thead>
2242     <tr>
2243         
2244         <th>Name</th>
2245         
2246
2247         <th>Type</th>
2248
2249         
2250         <th>Attributes</th>
2251         
2252
2253         
2254
2255         <th class="last">Description</th>
2256     </tr>
2257     </thead>
2258
2259     <tbody>
2260     
2261
2262         <tr>
2263             
2264                 <td class="name"><code>url</code></td>
2265             
2266
2267             <td class="type">
2268             
2269                 
2270 <span class="param-type">string</span>
2271
2272
2273             
2274             </td>
2275
2276             
2277                 <td class="attributes">
2278                 
2279
2280                 
2281
2282                 
2283                 </td>
2284             
2285
2286             
2287
2288             <td class="description last"><p>The URL to request.</p></td>
2289         </tr>
2290
2291     
2292
2293         <tr>
2294             
2295                 <td class="name"><code>args</code></td>
2296             
2297
2298             <td class="type">
2299             
2300                 
2301 <span class="param-type">Object.&lt;string, string></span>
2302
2303
2304             
2305             </td>
2306
2307             
2308                 <td class="attributes">
2309                 
2310                     &lt;optional><br>
2311                 
2312
2313                 
2314
2315                 
2316                 </td>
2317             
2318
2319             
2320
2321             <td class="description last"><p>Additional post arguments to append to the request body.</p></td>
2322         </tr>
2323
2324     
2325
2326         <tr>
2327             
2328                 <td class="name"><code>cb</code></td>
2329             
2330
2331             <td class="type">
2332             
2333                 
2334 <span class="param-type"><a href="LuCI.html#.requestCallbackFn">LuCI.requestCallbackFn</a></span>
2335
2336
2337             
2338             </td>
2339
2340             
2341                 <td class="attributes">
2342                 
2343
2344                 
2345
2346                 
2347                 </td>
2348             
2349
2350             
2351
2352             <td class="description last"><p>The callback function to invoke when the request finishes.</p></td>
2353         </tr>
2354
2355     
2356     </tbody>
2357 </table>
2358
2359
2360
2361
2362
2363
2364 <dl class="details">
2365
2366     
2367
2368     
2369
2370     
2371
2372     
2373
2374     
2375
2376     
2377
2378     
2379
2380     
2381         <dt class="important tag-deprecated">Deprecated:</dt><dd class="yes-def tag-deprecated"><ul class="dummy"><li>Yes</li></ul></dd>
2382     
2383
2384     
2385
2386     
2387
2388     
2389
2390     
2391
2392     
2393     <dt class="tag-source">Source:</dt>
2394     <dd class="tag-source"><ul class="dummy"><li>
2395         <a href="luci.js.html">luci.js</a>, <a href="luci.js.html#line1946">line 1946</a>
2396     </li></ul></dd>
2397     
2398
2399     
2400
2401     
2402
2403     
2404 </dl>
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420 <h5>Returns:</h5>
2421
2422         
2423 <div class="param-desc">
2424     <p>Returns a promise resolving to <code>null</code> when concluded.</p>
2425 </div>
2426
2427
2428
2429 <dl>
2430     <dt>
2431         Type
2432     </dt>
2433     <dd>
2434         
2435 <span class="param-type">Promise.&lt;null></span>
2436
2437
2438     </dd>
2439 </dl>
2440
2441     
2442
2443
2444
2445
2446
2447         
2448             
2449
2450     
2451
2452     
2453     <h4 class="name" id="raise"><span class="type-signature"></span>raise<span class="signature">(type<span class="signature-attributes">opt</span>, fmt<span class="signature-attributes">opt</span>, &hellip;args<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
2454     
2455
2456     
2457
2458
2459
2460 <div class="description">
2461     <p>Captures the current stack trace and throws an error of the
2462 specified type as a new exception. Also logs the exception as
2463 error to the debug console if it is available.</p>
2464 </div>
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474     <h5>Parameters:</h5>
2475     
2476
2477 <table class="params">
2478     <thead>
2479     <tr>
2480         
2481         <th>Name</th>
2482         
2483
2484         <th>Type</th>
2485
2486         
2487         <th>Attributes</th>
2488         
2489
2490         
2491         <th>Default</th>
2492         
2493
2494         <th class="last">Description</th>
2495     </tr>
2496     </thead>
2497
2498     <tbody>
2499     
2500
2501         <tr>
2502             
2503                 <td class="name"><code>type</code></td>
2504             
2505
2506             <td class="type">
2507             
2508                 
2509 <span class="param-type">Error</span>
2510 |
2511
2512 <span class="param-type">string</span>
2513
2514
2515             
2516             </td>
2517
2518             
2519                 <td class="attributes">
2520                 
2521                     &lt;optional><br>
2522                 
2523
2524                 
2525
2526                 
2527                 </td>
2528             
2529
2530             
2531                 <td class="default">
2532                 
2533                     Error
2534                 
2535                 </td>
2536             
2537
2538             <td class="description last"><p>Either a string specifying the type of the error to throw or an
2539 existing <code>Error</code> instance to copy.</p></td>
2540         </tr>
2541
2542     
2543
2544         <tr>
2545             
2546                 <td class="name"><code>fmt</code></td>
2547             
2548
2549             <td class="type">
2550             
2551                 
2552 <span class="param-type">string</span>
2553
2554
2555             
2556             </td>
2557
2558             
2559                 <td class="attributes">
2560                 
2561                     &lt;optional><br>
2562                 
2563
2564                 
2565
2566                 
2567                 </td>
2568             
2569
2570             
2571                 <td class="default">
2572                 
2573                     Unspecified error
2574                 
2575                 </td>
2576             
2577
2578             <td class="description last"><p>A format string which is used to form the error message, together
2579 with all subsequent optional arguments.</p></td>
2580         </tr>
2581
2582     
2583
2584         <tr>
2585             
2586                 <td class="name"><code>args</code></td>
2587             
2588
2589             <td class="type">
2590             
2591                 
2592 <span class="param-type">*</span>
2593
2594
2595             
2596             </td>
2597
2598             
2599                 <td class="attributes">
2600                 
2601                     &lt;optional><br>
2602                 
2603
2604                 
2605
2606                 
2607                     &lt;repeatable><br>
2608                 
2609                 </td>
2610             
2611
2612             
2613                 <td class="default">
2614                 
2615                 </td>
2616             
2617
2618             <td class="description last"><p>Zero or more variable arguments to the supplied format string.</p></td>
2619         </tr>
2620
2621     
2622     </tbody>
2623 </table>
2624
2625
2626
2627
2628
2629
2630 <dl class="details">
2631
2632     
2633
2634     
2635
2636     
2637
2638     
2639
2640     
2641
2642     
2643
2644     
2645
2646     
2647
2648     
2649
2650     
2651
2652     
2653
2654     
2655
2656     
2657     <dt class="tag-source">Source:</dt>
2658     <dd class="tag-source"><ul class="dummy"><li>
2659         <a href="luci.js.html">luci.js</a>, <a href="luci.js.html#line1234">line 1234</a>
2660     </li></ul></dd>
2661     
2662
2663     
2664
2665     
2666
2667     
2668 </dl>
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682 <h5>Throws:</h5>
2683
2684         
2685
2686 <dl>
2687     <dt>
2688         <div class="param-desc">
2689         <p>Throws the created error object with the captured stack trace
2690 appended to the message and the type set to the given type
2691 argument or copied from the given error instance.</p>
2692         </div>
2693     </dt>
2694     <dd></dd>
2695     <dt>
2696         <dl>
2697             <dt>
2698                 Type
2699             </dt>
2700             <dd>
2701                 
2702 <span class="param-type">Error</span>
2703
2704
2705             </dd>
2706         </dl>
2707     </dt>
2708     <dd></dd>
2709 </dl>
2710
2711
2712     
2713
2714
2715
2716
2717
2718
2719
2720         
2721             
2722
2723     
2724
2725     
2726     <h4 class="name" id="require"><span class="type-signature"></span>require<span class="signature">(name)</span><span class="type-signature"> &rarr; {Promise.&lt;LuCI#Class>}</span></h4>
2727     
2728
2729     
2730
2731
2732
2733 <div class="description">
2734     <p>Load an additional LuCI JavaScript class and its dependencies,
2735 instantiate it and return the resulting class instance. Each
2736 class is only loaded once. Subsequent attempts to load the same
2737 class will return the already instantiated class.</p>
2738 </div>
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748     <h5>Parameters:</h5>
2749     
2750
2751 <table class="params">
2752     <thead>
2753     <tr>
2754         
2755         <th>Name</th>
2756         
2757
2758         <th>Type</th>
2759
2760         
2761
2762         
2763
2764         <th class="last">Description</th>
2765     </tr>
2766     </thead>
2767
2768     <tbody>
2769     
2770
2771         <tr>
2772             
2773                 <td class="name"><code>name</code></td>
2774             
2775
2776             <td class="type">
2777             
2778                 
2779 <span class="param-type">string</span>
2780
2781
2782             
2783             </td>
2784
2785             
2786
2787             
2788
2789             <td class="description last"><p>The name of the class to load in dotted notation. Dots will
2790 be replaced by spaces and joined with the runtime-determined
2791 base URL of LuCI.js to form an absolute URL to load the class
2792 file from.</p></td>
2793         </tr>
2794
2795     
2796     </tbody>
2797 </table>
2798
2799
2800
2801
2802
2803
2804 <dl class="details">
2805
2806     
2807
2808     
2809
2810     
2811
2812     
2813
2814     
2815
2816     
2817
2818     
2819
2820     
2821
2822     
2823
2824     
2825
2826     
2827
2828     
2829
2830     
2831     <dt class="tag-source">Source:</dt>
2832     <dd class="tag-source"><ul class="dummy"><li>
2833         <a href="luci.js.html">luci.js</a>, <a href="luci.js.html#line1379">line 1379</a>
2834     </li></ul></dd>
2835     
2836
2837     
2838
2839     
2840
2841     
2842 </dl>
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856 <h5>Throws:</h5>
2857 <ul>
2858         <li>
2859
2860 <dl>
2861     <dt>
2862         <div class="param-desc">
2863         <p>Throws a <code>DependencyError</code> when the class to load includes
2864 circular dependencies.</p>
2865         </div>
2866     </dt>
2867     <dd></dd>
2868     <dt>
2869         <dl>
2870             <dt>
2871                 Type
2872             </dt>
2873             <dd>
2874                 
2875 <span class="param-type">DependencyError</span>
2876
2877
2878             </dd>
2879         </dl>
2880     </dt>
2881     <dd></dd>
2882 </dl>
2883
2884 </li>
2885     
2886         <li>
2887
2888 <dl>
2889     <dt>
2890         <div class="param-desc">
2891         <p>Throws <code>NetworkError</code> when the underlying <a href="LuCI.Request.html"><code>LuCI.Request</code></a>
2892 call failed.</p>
2893         </div>
2894     </dt>
2895     <dd></dd>
2896     <dt>
2897         <dl>
2898             <dt>
2899                 Type
2900             </dt>
2901             <dd>
2902                 
2903 <span class="param-type">NetworkError</span>
2904
2905
2906             </dd>
2907         </dl>
2908     </dt>
2909     <dd></dd>
2910 </dl>
2911
2912 </li>
2913     
2914         <li>
2915
2916 <dl>
2917     <dt>
2918         <div class="param-desc">
2919         <p>Throws <code>SyntaxError</code> when the loaded class file code cannot
2920 be interpreted by <code>eval</code>.</p>
2921         </div>
2922     </dt>
2923     <dd></dd>
2924     <dt>
2925         <dl>
2926             <dt>
2927                 Type
2928             </dt>
2929             <dd>
2930                 
2931 <span class="param-type">SyntaxError</span>
2932
2933
2934             </dd>
2935         </dl>
2936     </dt>
2937     <dd></dd>
2938 </dl>
2939
2940 </li>
2941     
2942         <li>
2943
2944 <dl>
2945     <dt>
2946         <div class="param-desc">
2947         <p>Throws <code>TypeError</code> when the class file could be loaded and
2948 interpreted, but when invoking its code did not yield a valid
2949 class instance.</p>
2950         </div>
2951     </dt>
2952     <dd></dd>
2953     <dt>
2954         <dl>
2955             <dt>
2956                 Type
2957             </dt>
2958             <dd>
2959                 
2960 <span class="param-type">TypeError</span>
2961
2962
2963             </dd>
2964         </dl>
2965     </dt>
2966     <dd></dd>
2967 </dl>
2968
2969 </li>
2970     </ul>
2971
2972
2973 <h5>Returns:</h5>
2974
2975         
2976 <div class="param-desc">
2977     <p>Returns the instantiated class.</p>
2978 </div>
2979
2980
2981
2982 <dl>
2983     <dt>
2984         Type
2985     </dt>
2986     <dd>
2987         
2988 <span class="param-type">Promise.&lt;LuCI#Class></span>
2989
2990
2991     </dd>
2992 </dl>
2993
2994     
2995
2996
2997
2998
2999
3000         
3001             
3002
3003     
3004
3005     
3006     <h4 class="name" id="resolveDefault"><span class="type-signature"></span>resolveDefault<span class="signature">(value, defvalue)</span><span class="type-signature"> &rarr; {Promise.&lt;*>}</span></h4>
3007     
3008
3009     
3010
3011
3012
3013 <div class="description">
3014     <p>Returns a promise resolving with either the given value or or with
3015 the given default in case the input value is a rejecting promise.</p>
3016 </div>
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026     <h5>Parameters:</h5>
3027     
3028
3029 <table class="params">
3030     <thead>
3031     <tr>
3032         
3033         <th>Name</th>
3034         
3035
3036         <th>Type</th>
3037
3038         
3039
3040         
3041
3042         <th class="last">Description</th>
3043     </tr>
3044     </thead>
3045
3046     <tbody>
3047     
3048
3049         <tr>
3050             
3051                 <td class="name"><code>value</code></td>
3052             
3053
3054             <td class="type">
3055             
3056                 
3057 <span class="param-type">*</span>
3058
3059
3060             
3061             </td>
3062
3063             
3064
3065             
3066
3067             <td class="description last"><p>The value to resolve the promise with.</p></td>
3068         </tr>
3069
3070     
3071
3072         <tr>
3073             
3074                 <td class="name"><code>defvalue</code></td>
3075             
3076
3077             <td class="type">
3078             
3079                 
3080 <span class="param-type">*</span>
3081
3082
3083             
3084             </td>
3085
3086             
3087
3088             
3089
3090             <td class="description last"><p>The default value to resolve the promise with in case the given
3091 input value is a rejecting promise.</p></td>
3092         </tr>
3093
3094     
3095     </tbody>
3096 </table>
3097
3098
3099
3100
3101
3102
3103 <dl class="details">
3104
3105     
3106
3107     
3108
3109     
3110
3111     
3112
3113     
3114
3115     
3116
3117     
3118
3119     
3120
3121     
3122
3123     
3124
3125     
3126
3127     
3128
3129     
3130     <dt class="tag-source">Source:</dt>
3131     <dd class="tag-source"><ul class="dummy"><li>
3132         <a href="luci.js.html">luci.js</a>, <a href="luci.js.html#line1873">line 1873</a>
3133     </li></ul></dd>
3134     
3135
3136     
3137
3138     
3139
3140     
3141 </dl>
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157 <h5>Returns:</h5>
3158
3159         
3160 <div class="param-desc">
3161     <p>Returns a new promise resolving either to the given input value or
3162 to the given default value on error.</p>
3163 </div>
3164
3165
3166
3167 <dl>
3168     <dt>
3169         Type
3170     </dt>
3171     <dd>
3172         
3173 <span class="param-type">Promise.&lt;*></span>
3174
3175
3176     </dd>
3177 </dl>
3178
3179     
3180
3181
3182
3183
3184
3185         
3186             
3187
3188     
3189
3190     
3191     <h4 class="name" id="resource"><span class="type-signature"></span>resource<span class="signature">(parts<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {string}</span></h4>
3192     
3193
3194     
3195
3196
3197
3198 <div class="description">
3199     <p>Construct an URL path relative to the global static resource path
3200 of the LuCI ui (usually <code>/luci-static/resources</code>).</p>
3201 <p>The resulting URL is guaranteed to only contain the characters
3202 <code>a-z</code>, <code>A-Z</code>, <code>0-9</code>, <code>_</code>, <code>.</code>, <code>%</code>, <code>,</code>, <code>;</code>, and <code>-</code> as well
3203 as <code>/</code> for the path separator.</p>
3204 </div>
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214     <h5>Parameters:</h5>
3215     
3216
3217 <table class="params">
3218     <thead>
3219     <tr>
3220         
3221         <th>Name</th>
3222         
3223
3224         <th>Type</th>
3225
3226         
3227         <th>Attributes</th>
3228         
3229
3230         
3231
3232         <th class="last">Description</th>
3233     </tr>
3234     </thead>
3235
3236     <tbody>
3237     
3238
3239         <tr>
3240             
3241                 <td class="name"><code>parts</code></td>
3242             
3243
3244             <td class="type">
3245             
3246                 
3247 <span class="param-type">Array.&lt;string></span>
3248
3249
3250             
3251             </td>
3252
3253             
3254                 <td class="attributes">
3255                 
3256                     &lt;optional><br>
3257                 
3258
3259                 
3260
3261                 
3262                 </td>
3263             
3264
3265             
3266
3267             <td class="description last"><p>An array of parts to join into an URL path. Parts may contain
3268 slashes and any of the other characters mentioned above.</p></td>
3269         </tr>
3270
3271     
3272     </tbody>
3273 </table>
3274
3275
3276
3277
3278
3279
3280 <dl class="details">
3281
3282     
3283
3284     
3285
3286     
3287
3288     
3289
3290     
3291
3292     
3293
3294     
3295
3296     
3297
3298     
3299
3300     
3301
3302     
3303
3304     
3305
3306     
3307     <dt class="tag-source">Source:</dt>
3308     <dd class="tag-source"><ul class="dummy"><li>
3309         <a href="luci.js.html">luci.js</a>, <a href="luci.js.html#line1732">line 1732</a>
3310     </li></ul></dd>
3311     
3312
3313     
3314
3315     
3316
3317     
3318 </dl>
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334 <h5>Returns:</h5>
3335
3336         
3337 <div class="param-desc">
3338     <p>Returns the resulting URL path.</p>
3339 </div>
3340
3341
3342
3343 <dl>
3344     <dt>
3345         Type
3346     </dt>
3347     <dd>
3348         
3349 <span class="param-type">string</span>
3350
3351
3352     </dd>
3353 </dl>
3354
3355     
3356
3357
3358
3359
3360
3361         
3362             
3363
3364     
3365
3366     
3367     <h4 class="name" id="run"><span class="type-signature"></span>run<span class="signature">()</span><span class="type-signature"> &rarr; {boolean}</span></h4>
3368     
3369
3370     
3371
3372
3373
3374 <div class="description">
3375     <p>Deprecated wrapper around <code>Poll.start()</code>.</p>
3376 </div>
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390 <dl class="details">
3391
3392     
3393
3394     
3395
3396     
3397
3398     
3399
3400     
3401
3402     
3403
3404     
3405
3406     
3407         <dt class="important tag-deprecated">Deprecated:</dt><dd class="yes-def tag-deprecated"><ul class="dummy"><li>Yes</li></ul></dd>
3408     
3409
3410     
3411
3412     
3413
3414     
3415
3416     
3417
3418     
3419     <dt class="tag-source">Source:</dt>
3420     <dd class="tag-source"><ul class="dummy"><li>
3421         <a href="luci.js.html">luci.js</a>, <a href="luci.js.html#line2053">line 2053</a>
3422     </li></ul></dd>
3423     
3424
3425     
3426
3427     
3428
3429     
3430 </dl>
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446 <h5>Returns:</h5>
3447
3448         
3449 <div class="param-desc">
3450     <p>Returns <code>true</code> when the polling loop has been started or <code>false</code>
3451 when it was already running.</p>
3452 </div>
3453
3454
3455
3456 <dl>
3457     <dt>
3458         Type
3459     </dt>
3460     <dd>
3461         
3462 <span class="param-type">boolean</span>
3463
3464
3465     </dd>
3466 </dl>
3467
3468     
3469
3470
3471
3472
3473
3474         
3475             
3476
3477     
3478
3479     
3480     <h4 class="name" id="sortedKeys"><span class="type-signature"></span>sortedKeys<span class="signature">(obj, key<span class="signature-attributes">opt</span>, sortmode<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Array.&lt;string>}</span></h4>
3481     
3482
3483     
3484
3485
3486
3487 <div class="description">
3488     <p>Return an array of sorted object keys, optionally sorted by
3489 a different key or a different sorting mode.</p>
3490 </div>
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500     <h5>Parameters:</h5>
3501     
3502
3503 <table class="params">
3504     <thead>
3505     <tr>
3506         
3507         <th>Name</th>
3508         
3509
3510         <th>Type</th>
3511
3512         
3513         <th>Attributes</th>
3514         
3515
3516         
3517
3518         <th class="last">Description</th>
3519     </tr>
3520     </thead>
3521
3522     <tbody>
3523     
3524
3525         <tr>
3526             
3527                 <td class="name"><code>obj</code></td>
3528             
3529
3530             <td class="type">
3531             
3532                 
3533 <span class="param-type">object</span>
3534
3535
3536             
3537             </td>
3538
3539             
3540                 <td class="attributes">
3541                 
3542
3543                 
3544
3545                 
3546                 </td>
3547             
3548
3549             
3550
3551             <td class="description last"><p>The object to extract the keys from. If the given value is
3552 not an object, the function will return an empty array.</p></td>
3553         </tr>
3554
3555     
3556
3557         <tr>
3558             
3559                 <td class="name"><code>key</code></td>
3560             
3561
3562             <td class="type">
3563             
3564                 
3565 <span class="param-type">string</span>
3566
3567
3568             
3569             </td>
3570
3571             
3572                 <td class="attributes">
3573                 
3574                     &lt;optional><br>
3575                 
3576
3577                 
3578
3579                 
3580                 </td>
3581             
3582
3583             
3584
3585             <td class="description last"><p>Specifies the key to order by. This is mainly useful for
3586 nested objects of objects or objects of arrays when sorting
3587 shall not be performed by the primary object keys but by
3588 some other key pointing to a value within the nested values.</p></td>
3589         </tr>
3590
3591     
3592
3593         <tr>
3594             
3595                 <td class="name"><code>sortmode</code></td>
3596             
3597
3598             <td class="type">
3599             
3600                 
3601 <span class="param-type">string</span>
3602
3603
3604             
3605             </td>
3606
3607             
3608                 <td class="attributes">
3609                 
3610                     &lt;optional><br>
3611                 
3612
3613                 
3614
3615                 
3616                 </td>
3617             
3618
3619             
3620
3621             <td class="description last"><p>May be either <code>addr</code> or <code>num</code> to override the natural
3622 lexicographic sorting with a sorting suitable for IP/MAC style
3623 addresses or numeric values respectively.</p></td>
3624         </tr>
3625
3626     
3627     </tbody>
3628 </table>
3629
3630
3631
3632
3633
3634
3635 <dl class="details">
3636
3637     
3638
3639     
3640
3641     
3642
3643     
3644
3645     
3646
3647     
3648
3649     
3650
3651     
3652
3653     
3654
3655     
3656
3657     
3658
3659     
3660
3661     
3662     <dt class="tag-source">Source:</dt>
3663     <dd class="tag-source"><ul class="dummy"><li>
3664         <a href="luci.js.html">luci.js</a>, <a href="luci.js.html#line1794">line 1794</a>
3665     </li></ul></dd>
3666     
3667
3668     
3669
3670     
3671
3672     
3673 </dl>
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689 <h5>Returns:</h5>
3690
3691         
3692 <div class="param-desc">
3693     <p>Returns an array containing the sorted keys of the given object.</p>
3694 </div>
3695
3696
3697
3698 <dl>
3699     <dt>
3700         Type
3701     </dt>
3702     <dd>
3703         
3704 <span class="param-type">Array.&lt;string></span>
3705
3706
3707     </dd>
3708 </dl>
3709
3710     
3711
3712
3713
3714
3715
3716         
3717             
3718
3719     
3720
3721     
3722     <h4 class="name" id="stop"><span class="type-signature"></span>stop<span class="signature">(entry)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
3723     
3724
3725     
3726
3727
3728
3729 <div class="description">
3730     <p>Deprecated wrapper around <code>Poll.remove()</code>.</p>
3731 </div>
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741     <h5>Parameters:</h5>
3742     
3743
3744 <table class="params">
3745     <thead>
3746     <tr>
3747         
3748         <th>Name</th>
3749         
3750
3751         <th>Type</th>
3752
3753         
3754
3755         
3756
3757         <th class="last">Description</th>
3758     </tr>
3759     </thead>
3760
3761     <tbody>
3762     
3763
3764         <tr>
3765             
3766                 <td class="name"><code>entry</code></td>
3767             
3768
3769             <td class="type">
3770             
3771                 
3772 <span class="param-type">function</span>
3773
3774
3775             
3776             </td>
3777
3778             
3779
3780             
3781
3782             <td class="description last"><p>The polling function to remove.</p></td>
3783         </tr>
3784
3785     
3786     </tbody>
3787 </table>
3788
3789
3790
3791
3792
3793
3794 <dl class="details">
3795
3796     
3797
3798     
3799
3800     
3801
3802     
3803
3804     
3805
3806     
3807
3808     
3809
3810     
3811         <dt class="important tag-deprecated">Deprecated:</dt><dd class="yes-def tag-deprecated"><ul class="dummy"><li>Yes</li></ul></dd>
3812     
3813
3814     
3815
3816     
3817
3818     
3819
3820     
3821
3822     
3823     <dt class="tag-source">Source:</dt>
3824     <dd class="tag-source"><ul class="dummy"><li>
3825         <a href="luci.js.html">luci.js</a>, <a href="luci.js.html#line2027">line 2027</a>
3826     </li></ul></dd>
3827     
3828
3829     
3830
3831     
3832
3833     
3834 </dl>
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850 <h5>Returns:</h5>
3851
3852         
3853 <div class="param-desc">
3854     <p>Returns <code>true</code> when the function has been removed or <code>false</code> if
3855 it could not be found.</p>
3856 </div>
3857
3858
3859
3860 <dl>
3861     <dt>
3862         Type
3863     </dt>
3864     <dd>
3865         
3866 <span class="param-type">boolean</span>
3867
3868
3869     </dd>
3870 </dl>
3871
3872     
3873
3874
3875
3876
3877
3878         
3879             
3880
3881     
3882
3883     
3884     <h4 class="name" id="toArray"><span class="type-signature"></span>toArray<span class="signature">(val)</span><span class="type-signature"> &rarr; {Array.&lt;*>}</span></h4>
3885     
3886
3887     
3888
3889
3890
3891 <div class="description">
3892     <p>Converts the given value to an array. If the given value is of
3893 type array, it is returned as-is, values of type object are
3894 returned as one-element array containing the object, empty
3895 strings and <code>null</code> values are returned as empty array, all other
3896 values are converted using <code>String()</code>, trimmed, split on white
3897 space and returned as array.</p>
3898 </div>
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908     <h5>Parameters:</h5>
3909     
3910
3911 <table class="params">
3912     <thead>
3913     <tr>
3914         
3915         <th>Name</th>
3916         
3917
3918         <th>Type</th>
3919
3920         
3921
3922         
3923
3924         <th class="last">Description</th>
3925     </tr>
3926     </thead>
3927
3928     <tbody>
3929     
3930
3931         <tr>
3932             
3933                 <td class="name"><code>val</code></td>
3934             
3935
3936             <td class="type">
3937             
3938                 
3939 <span class="param-type">*</span>
3940
3941
3942             
3943             </td>
3944
3945             
3946
3947             
3948
3949             <td class="description last"><p>The value to convert into an array.</p></td>
3950         </tr>
3951
3952     
3953     </tbody>
3954 </table>
3955
3956
3957
3958
3959
3960
3961 <dl class="details">
3962
3963     
3964
3965     
3966
3967     
3968
3969     
3970
3971     
3972
3973     
3974
3975     
3976
3977     
3978
3979     
3980
3981     
3982
3983     
3984
3985     
3986
3987     
3988     <dt class="tag-source">Source:</dt>
3989     <dd class="tag-source"><ul class="dummy"><li>
3990         <a href="luci.js.html">luci.js</a>, <a href="luci.js.html#line1839">line 1839</a>
3991     </li></ul></dd>
3992     
3993
3994     
3995
3996     
3997
3998     
3999 </dl>
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015 <h5>Returns:</h5>
4016
4017         
4018 <div class="param-desc">
4019     <p>Returns the resulting array.</p>
4020 </div>
4021
4022
4023
4024 <dl>
4025     <dt>
4026         Type
4027     </dt>
4028     <dd>
4029         
4030 <span class="param-type">Array.&lt;*></span>
4031
4032
4033     </dd>
4034 </dl>
4035
4036     
4037
4038
4039
4040
4041
4042         
4043             
4044
4045     
4046
4047     
4048     <h4 class="name" id="url"><span class="type-signature"></span>url<span class="signature">(parts<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {string}</span></h4>
4049     
4050
4051     
4052
4053
4054
4055 <div class="description">
4056     <p>Construct an URL  pathrelative to the script path of the server
4057 side LuCI application (usually <code>/cgi-bin/luci</code>).</p>
4058 <p>The resulting URL is guaranteed to only contain the characters
4059 <code>a-z</code>, <code>A-Z</code>, <code>0-9</code>, <code>_</code>, <code>.</code>, <code>%</code>, <code>,</code>, <code>;</code>, and <code>-</code> as well
4060 as <code>/</code> for the path separator.</p>
4061 </div>
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071     <h5>Parameters:</h5>
4072     
4073
4074 <table class="params">
4075     <thead>
4076     <tr>
4077         
4078         <th>Name</th>
4079         
4080
4081         <th>Type</th>
4082
4083         
4084         <th>Attributes</th>
4085         
4086
4087         
4088
4089         <th class="last">Description</th>
4090     </tr>
4091     </thead>
4092
4093     <tbody>
4094     
4095
4096         <tr>
4097             
4098                 <td class="name"><code>parts</code></td>
4099             
4100
4101             <td class="type">
4102             
4103                 
4104 <span class="param-type">Array.&lt;string></span>
4105
4106
4107             
4108             </td>
4109
4110             
4111                 <td class="attributes">
4112                 
4113                     &lt;optional><br>
4114                 
4115
4116                 
4117
4118                 
4119                 </td>
4120             
4121
4122             
4123
4124             <td class="description last"><p>An array of parts to join into an URL path. Parts may contain
4125 slashes and any of the other characters mentioned above.</p></td>
4126         </tr>
4127
4128     
4129     </tbody>
4130 </table>
4131
4132
4133
4134
4135
4136
4137 <dl class="details">
4138
4139     
4140
4141     
4142
4143     
4144
4145     
4146
4147     
4148
4149     
4150
4151     
4152
4153     
4154
4155     
4156
4157     
4158
4159     
4160
4161     
4162
4163     
4164     <dt class="tag-source">Source:</dt>
4165     <dd class="tag-source"><ul class="dummy"><li>
4166         <a href="luci.js.html">luci.js</a>, <a href="luci.js.html#line1710">line 1710</a>
4167     </li></ul></dd>
4168     
4169
4170     
4171
4172     
4173
4174     
4175 </dl>
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191 <h5>Returns:</h5>
4192
4193         
4194 <div class="param-desc">
4195     <p>Returns the resulting URL path.</p>
4196 </div>
4197
4198
4199
4200 <dl>
4201     <dt>
4202         Type
4203     </dt>
4204     <dd>
4205         
4206 <span class="param-type">string</span>
4207
4208
4209     </dd>
4210 </dl>
4211
4212     
4213
4214
4215
4216
4217
4218         
4219     
4220
4221     
4222         <h3 class="subsection-title">Type Definitions</h3>
4223
4224         
4225                 
4226
4227     
4228
4229     
4230     <h4 class="name" id=".requestCallbackFn"><span class="type-signature"></span>requestCallbackFn<span class="signature">(xhr, data, duration)</span><span class="type-signature"></span></h4>
4231     
4232
4233     
4234
4235
4236
4237 <div class="description">
4238     <p>The request callback function is invoked whenever an HTTP
4239 reply to a request made using the <code>L.get()</code>, <code>L.post()</code> or
4240 <code>L.poll()</code> function is timed out or received successfully.</p>
4241 </div>
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251     <h5>Parameters:</h5>
4252     
4253
4254 <table class="params">
4255     <thead>
4256     <tr>
4257         
4258         <th>Name</th>
4259         
4260
4261         <th>Type</th>
4262
4263         
4264
4265         
4266
4267         <th class="last">Description</th>
4268     </tr>
4269     </thead>
4270
4271     <tbody>
4272     
4273
4274         <tr>
4275             
4276                 <td class="name"><code>xhr</code></td>
4277             
4278
4279             <td class="type">
4280             
4281                 
4282 <span class="param-type">XMLHTTPRequest</span>
4283
4284
4285             
4286             </td>
4287
4288             
4289
4290             
4291
4292             <td class="description last"><p>The XMLHTTPRequest instance used to make the request.</p></td>
4293         </tr>
4294
4295     
4296
4297         <tr>
4298             
4299                 <td class="name"><code>data</code></td>
4300             
4301
4302             <td class="type">
4303             
4304                 
4305 <span class="param-type">*</span>
4306
4307
4308             
4309             </td>
4310
4311             
4312
4313             
4314
4315             <td class="description last"><p>The response JSON if the response could be parsed as such,
4316 else <code>null</code>.</p></td>
4317         </tr>
4318
4319     
4320
4321         <tr>
4322             
4323                 <td class="name"><code>duration</code></td>
4324             
4325
4326             <td class="type">
4327             
4328                 
4329 <span class="param-type">number</span>
4330
4331
4332             
4333             </td>
4334
4335             
4336
4337             
4338
4339             <td class="description last"><p>The total duration of the request in milliseconds.</p></td>
4340         </tr>
4341
4342     
4343     </tbody>
4344 </table>
4345
4346
4347
4348
4349
4350
4351 <dl class="details">
4352
4353     
4354
4355     
4356
4357     
4358
4359     
4360
4361     
4362
4363     
4364
4365     
4366
4367     
4368
4369     
4370
4371     
4372
4373     
4374
4375     
4376
4377     
4378     <dt class="tag-source">Source:</dt>
4379     <dd class="tag-source"><ul class="dummy"><li>
4380         <a href="luci.js.html">luci.js</a>, <a href="luci.js.html#line1877">line 1877</a>
4381     </li></ul></dd>
4382     
4383
4384     
4385
4386     
4387
4388     
4389 </dl>
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410             
4411     
4412
4413     
4414 </article>
4415
4416 </section>
4417
4418
4419
4420
4421 </div>
4422
4423 <nav>
4424     <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="LuCI.html">LuCI</a></li><li><a href="LuCI.Class.html">Class</a></li><li><a href="LuCI.dom.html">dom</a></li><li><a href="LuCI.fs.html">fs</a></li><li><a href="LuCI.Headers.html">Headers</a></li><li><a href="LuCI.Network.html">Network</a></li><li><a href="LuCI.Network.Device.html">Device</a></li><li><a href="LuCI.Network.Hosts.html">Hosts</a></li><li><a href="LuCI.Network.Protocol.html">Protocol</a></li><li><a href="LuCI.Network.WifiDevice.html">WifiDevice</a></li><li><a href="LuCI.Network.WifiNetwork.html">WifiNetwork</a></li><li><a href="LuCI.Poll.html">Poll</a></li><li><a href="LuCI.Request.html">Request</a></li><li><a href="LuCI.Request.poll.html">poll</a></li><li><a href="LuCI.Response.html">Response</a></li><li><a href="LuCI.rpc.html">rpc</a></li><li><a href="LuCI.uci.html">uci</a></li><li><a href="LuCI.view.html">view</a></li><li><a href="LuCI.XHR.html">XHR</a></li></ul>
4425 </nav>
4426
4427 <br class="clear">
4428
4429 <footer>
4430     Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.3</a> on Tue Nov 05 2019 09:33:05 GMT+0100 (Central European Standard Time)
4431 </footer>
4432
4433 <script> prettyPrint(); </script>
4434 <script src="scripts/linenumber.js"> </script>
4435 </body>
4436 </html>