539e07683294f3c7055385af81c8c6250915d53b
[project/luci.git] / docs / jsapi / LuCI.dom.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <title>Class: dom</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#env"><a href="LuCI.html#env">env</a></li>
47
48 </ul>
49 <ul class="typedefs itemMembers">
50
51 <span class="subtitle">Typedefs</span>
52
53 <li data-name="LuCI.requestCallbackFn"><a href="LuCI.html#.requestCallbackFn">requestCallbackFn</a></li>
54
55 </ul>
56 <ul class="typedefs itemMembers">
57
58 </ul>
59 <ul class="methods itemMembers">
60
61 <span class="subtitle">Methods</span>
62
63 <li data-name="LuCI#bind"><a href="LuCI.html#bind">bind</a></li>
64
65 <li data-name="LuCI#error"><a href="LuCI.html#error">error</a></li>
66
67 <li data-name="LuCI#get"><a href="LuCI.html#get">get</a></li>
68
69 <li data-name="LuCI#halt"><a href="LuCI.html#halt">halt</a></li>
70
71 <li data-name="LuCI#hasSystemFeature"><a href="LuCI.html#hasSystemFeature">hasSystemFeature</a></li>
72
73 <li data-name="LuCI#isObject"><a href="LuCI.html#isObject">isObject</a></li>
74
75 <li data-name="LuCI#location"><a href="LuCI.html#location">location</a></li>
76
77 <li data-name="LuCI#media"><a href="LuCI.html#media">media</a></li>
78
79 <li data-name="LuCI#path"><a href="LuCI.html#path">path</a></li>
80
81 <li data-name="LuCI#poll"><a href="LuCI.html#poll">poll</a></li>
82
83 <li data-name="LuCI#post"><a href="LuCI.html#post">post</a></li>
84
85 <li data-name="LuCI#raise"><a href="LuCI.html#raise">raise</a></li>
86
87 <li data-name="LuCI#require"><a href="LuCI.html#require">require</a></li>
88
89 <li data-name="LuCI#resolveDefault"><a href="LuCI.html#resolveDefault">resolveDefault</a></li>
90
91 <li data-name="LuCI#resource"><a href="LuCI.html#resource">resource</a></li>
92
93 <li data-name="LuCI#run"><a href="LuCI.html#run">run</a></li>
94
95 <li data-name="LuCI#sortedKeys"><a href="LuCI.html#sortedKeys">sortedKeys</a></li>
96
97 <li data-name="LuCI#stop"><a href="LuCI.html#stop">stop</a></li>
98
99 <li data-name="LuCI#toArray"><a href="LuCI.html#toArray">toArray</a></li>
100
101 <li data-name="LuCI#url"><a href="LuCI.html#url">url</a></li>
102
103 </ul>
104 <ul class="events itemMembers">
105
106 </ul>
107 </li>
108
109 <li class="item" data-name="LuCI.Class">
110 <span class="title">
111 <a href="LuCI.Class.html">LuCI.Class</a>
112
113 </span>
114 <ul class="members itemMembers">
115
116 </ul>
117 <ul class="typedefs itemMembers">
118
119 </ul>
120 <ul class="typedefs itemMembers">
121
122 </ul>
123 <ul class="methods itemMembers">
124
125 <span class="subtitle">Methods</span>
126
127 <li data-name="LuCI.Class.extend"><a href="LuCI.Class.html#.extend">extend</a></li>
128
129 <li data-name="LuCI.Class.instantiate"><a href="LuCI.Class.html#.instantiate">instantiate</a></li>
130
131 <li data-name="LuCI.Class.isSubclass"><a href="LuCI.Class.html#.isSubclass">isSubclass</a></li>
132
133 <li data-name="LuCI.Class.singleton"><a href="LuCI.Class.html#.singleton">singleton</a></li>
134
135 <li data-name="LuCI.Class#super"><a href="LuCI.Class.html#super">super</a></li>
136
137 <li data-name="LuCI.Class#varargs"><a href="LuCI.Class.html#varargs">varargs</a></li>
138
139 </ul>
140 <ul class="events itemMembers">
141
142 </ul>
143 </li>
144
145 <li class="item" data-name="LuCI.dom">
146 <span class="title">
147 <a href="LuCI.dom.html">LuCI.dom</a>
148
149 </span>
150 <ul class="members itemMembers">
151
152 </ul>
153 <ul class="typedefs itemMembers">
154
155 <span class="subtitle">Typedefs</span>
156
157 <li data-name="LuCI.dom~ignoreCallbackFn"><a href="LuCI.dom.html#~ignoreCallbackFn">ignoreCallbackFn</a></li>
158
159 </ul>
160 <ul class="typedefs itemMembers">
161
162 </ul>
163 <ul class="methods itemMembers">
164
165 <span class="subtitle">Methods</span>
166
167 <li data-name="LuCI.dom#append"><a href="LuCI.dom.html#append">append</a></li>
168
169 <li data-name="LuCI.dom#attr"><a href="LuCI.dom.html#attr">attr</a></li>
170
171 <li data-name="LuCI.dom#bindClassInstance"><a href="LuCI.dom.html#bindClassInstance">bindClassInstance</a></li>
172
173 <li data-name="LuCI.dom#callClassMethod"><a href="LuCI.dom.html#callClassMethod">callClassMethod</a></li>
174
175 <li data-name="LuCI.dom#content"><a href="LuCI.dom.html#content">content</a></li>
176
177 <li data-name="LuCI.dom#create"><a href="LuCI.dom.html#create">create</a></li>
178
179 <li data-name="LuCI.dom#data"><a href="LuCI.dom.html#data">data</a></li>
180
181 <li data-name="LuCI.dom#elem"><a href="LuCI.dom.html#elem">elem</a></li>
182
183 <li data-name="LuCI.dom#findClassInstance"><a href="LuCI.dom.html#findClassInstance">findClassInstance</a></li>
184
185 <li data-name="LuCI.dom#isEmpty"><a href="LuCI.dom.html#isEmpty">isEmpty</a></li>
186
187 <li data-name="LuCI.dom#matches"><a href="LuCI.dom.html#matches">matches</a></li>
188
189 <li data-name="LuCI.dom#parent"><a href="LuCI.dom.html#parent">parent</a></li>
190
191 <li data-name="LuCI.dom#parse"><a href="LuCI.dom.html#parse">parse</a></li>
192
193 </ul>
194 <ul class="events itemMembers">
195
196 </ul>
197 </li>
198
199 <li class="item" data-name="LuCI.fs">
200 <span class="title">
201 <a href="LuCI.fs.html">LuCI.fs</a>
202
203 </span>
204 <ul class="members itemMembers">
205
206 </ul>
207 <ul class="typedefs itemMembers">
208
209 <span class="subtitle">Typedefs</span>
210
211 <li data-name="LuCI.fs.FileExecResult"><a href="LuCI.fs.html#.FileExecResult">FileExecResult</a></li>
212
213 <li data-name="LuCI.fs.FileStatEntry"><a href="LuCI.fs.html#.FileStatEntry">FileStatEntry</a></li>
214
215 </ul>
216 <ul class="typedefs itemMembers">
217
218 </ul>
219 <ul class="methods itemMembers">
220
221 <span class="subtitle">Methods</span>
222
223 <li data-name="LuCI.fs#exec"><a href="LuCI.fs.html#exec">exec</a></li>
224
225 <li data-name="LuCI.fs#exec_direct"><a href="LuCI.fs.html#exec_direct">exec_direct</a></li>
226
227 <li data-name="LuCI.fs#lines"><a href="LuCI.fs.html#lines">lines</a></li>
228
229 <li data-name="LuCI.fs#list"><a href="LuCI.fs.html#list">list</a></li>
230
231 <li data-name="LuCI.fs#read"><a href="LuCI.fs.html#read">read</a></li>
232
233 <li data-name="LuCI.fs#read_direct"><a href="LuCI.fs.html#read_direct">read_direct</a></li>
234
235 <li data-name="LuCI.fs#remove"><a href="LuCI.fs.html#remove">remove</a></li>
236
237 <li data-name="LuCI.fs#stat"><a href="LuCI.fs.html#stat">stat</a></li>
238
239 <li data-name="LuCI.fs#trimmed"><a href="LuCI.fs.html#trimmed">trimmed</a></li>
240
241 <li data-name="LuCI.fs#write"><a href="LuCI.fs.html#write">write</a></li>
242
243 </ul>
244 <ul class="events itemMembers">
245
246 </ul>
247 </li>
248
249 <li class="item" data-name="LuCI.Headers">
250 <span class="title">
251 <a href="LuCI.Headers.html">LuCI.Headers</a>
252
253 </span>
254 <ul class="members itemMembers">
255
256 </ul>
257 <ul class="typedefs itemMembers">
258
259 </ul>
260 <ul class="typedefs itemMembers">
261
262 </ul>
263 <ul class="methods itemMembers">
264
265 <span class="subtitle">Methods</span>
266
267 <li data-name="LuCI.Headers#get"><a href="LuCI.Headers.html#get">get</a></li>
268
269 <li data-name="LuCI.Headers#has"><a href="LuCI.Headers.html#has">has</a></li>
270
271 </ul>
272 <ul class="events itemMembers">
273
274 </ul>
275 </li>
276
277 <li class="item" data-name="LuCI.Network">
278 <span class="title">
279 <a href="LuCI.Network.html">LuCI.Network</a>
280
281 </span>
282 <ul class="members itemMembers">
283
284 </ul>
285 <ul class="typedefs itemMembers">
286
287 <span class="subtitle">Typedefs</span>
288
289 <li data-name="LuCI.Network.SwitchTopology"><a href="LuCI.Network.html#.SwitchTopology">SwitchTopology</a></li>
290
291 <li data-name="LuCI.Network.WifiEncryption"><a href="LuCI.Network.html#.WifiEncryption">WifiEncryption</a></li>
292
293 <li data-name="LuCI.Network.WifiPeerEntry"><a href="LuCI.Network.html#.WifiPeerEntry">WifiPeerEntry</a></li>
294
295 <li data-name="LuCI.Network.WifiRateEntry"><a href="LuCI.Network.html#.WifiRateEntry">WifiRateEntry</a></li>
296
297 <li data-name="LuCI.Network.WifiScanResult"><a href="LuCI.Network.html#.WifiScanResult">WifiScanResult</a></li>
298
299 </ul>
300 <ul class="typedefs itemMembers">
301
302 </ul>
303 <ul class="methods itemMembers">
304
305 <span class="subtitle">Methods</span>
306
307 <li data-name="LuCI.Network#addNetwork"><a href="LuCI.Network.html#addNetwork">addNetwork</a></li>
308
309 <li data-name="LuCI.Network#addWifiNetwork"><a href="LuCI.Network.html#addWifiNetwork">addWifiNetwork</a></li>
310
311 <li data-name="LuCI.Network#deleteNetwork"><a href="LuCI.Network.html#deleteNetwork">deleteNetwork</a></li>
312
313 <li data-name="LuCI.Network#deleteWifiNetwork"><a href="LuCI.Network.html#deleteWifiNetwork">deleteWifiNetwork</a></li>
314
315 <li data-name="LuCI.Network#flushCache"><a href="LuCI.Network.html#flushCache">flushCache</a></li>
316
317 <li data-name="LuCI.Network#formatWifiEncryption"><a href="LuCI.Network.html#formatWifiEncryption">formatWifiEncryption</a></li>
318
319 <li data-name="LuCI.Network#getDevice"><a href="LuCI.Network.html#getDevice">getDevice</a></li>
320
321 <li data-name="LuCI.Network#getDevices"><a href="LuCI.Network.html#getDevices">getDevices</a></li>
322
323 <li data-name="LuCI.Network#getDSLModemType"><a href="LuCI.Network.html#getDSLModemType">getDSLModemType</a></li>
324
325 <li data-name="LuCI.Network#getHostHints"><a href="LuCI.Network.html#getHostHints">getHostHints</a></li>
326
327 <li data-name="LuCI.Network#getIfnameOf"><a href="LuCI.Network.html#getIfnameOf">getIfnameOf</a></li>
328
329 <li data-name="LuCI.Network#getNetwork"><a href="LuCI.Network.html#getNetwork">getNetwork</a></li>
330
331 <li data-name="LuCI.Network#getNetworks"><a href="LuCI.Network.html#getNetworks">getNetworks</a></li>
332
333 <li data-name="LuCI.Network#getProtocol"><a href="LuCI.Network.html#getProtocol">getProtocol</a></li>
334
335 <li data-name="LuCI.Network#getProtocols"><a href="LuCI.Network.html#getProtocols">getProtocols</a></li>
336
337 <li data-name="LuCI.Network#getSwitchTopologies"><a href="LuCI.Network.html#getSwitchTopologies">getSwitchTopologies</a></li>
338
339 <li data-name="LuCI.Network#getWAN6Networks"><a href="LuCI.Network.html#getWAN6Networks">getWAN6Networks</a></li>
340
341 <li data-name="LuCI.Network#getWANNetworks"><a href="LuCI.Network.html#getWANNetworks">getWANNetworks</a></li>
342
343 <li data-name="LuCI.Network#getWifiDevice"><a href="LuCI.Network.html#getWifiDevice">getWifiDevice</a></li>
344
345 <li data-name="LuCI.Network#getWifiDevices"><a href="LuCI.Network.html#getWifiDevices">getWifiDevices</a></li>
346
347 <li data-name="LuCI.Network#getWifiNetwork"><a href="LuCI.Network.html#getWifiNetwork">getWifiNetwork</a></li>
348
349 <li data-name="LuCI.Network#getWifiNetworks"><a href="LuCI.Network.html#getWifiNetworks">getWifiNetworks</a></li>
350
351 <li data-name="LuCI.Network#isIgnoredDevice"><a href="LuCI.Network.html#isIgnoredDevice">isIgnoredDevice</a></li>
352
353 <li data-name="LuCI.Network#maskToPrefix"><a href="LuCI.Network.html#maskToPrefix">maskToPrefix</a></li>
354
355 <li data-name="LuCI.Network#prefixToMask"><a href="LuCI.Network.html#prefixToMask">prefixToMask</a></li>
356
357 <li data-name="LuCI.Network#registerErrorCode"><a href="LuCI.Network.html#registerErrorCode">registerErrorCode</a></li>
358
359 <li data-name="LuCI.Network#registerPatternVirtual"><a href="LuCI.Network.html#registerPatternVirtual">registerPatternVirtual</a></li>
360
361 <li data-name="LuCI.Network#registerProtocol"><a href="LuCI.Network.html#registerProtocol">registerProtocol</a></li>
362
363 <li data-name="LuCI.Network#renameNetwork"><a href="LuCI.Network.html#renameNetwork">renameNetwork</a></li>
364
365 </ul>
366 <ul class="events itemMembers">
367
368 </ul>
369 </li>
370
371 <li class="item" data-name="LuCI.Network.Device">
372 <span class="title">
373 <a href="LuCI.Network.Device.html">LuCI.Network.Device</a>
374
375 </span>
376 <ul class="members itemMembers">
377
378 </ul>
379 <ul class="typedefs itemMembers">
380
381 </ul>
382 <ul class="typedefs itemMembers">
383
384 </ul>
385 <ul class="methods itemMembers">
386
387 <span class="subtitle">Methods</span>
388
389 <li data-name="LuCI.Network.Device#getBridgeID"><a href="LuCI.Network.Device.html#getBridgeID">getBridgeID</a></li>
390
391 <li data-name="LuCI.Network.Device#getBridgeSTP"><a href="LuCI.Network.Device.html#getBridgeSTP">getBridgeSTP</a></li>
392
393 <li data-name="LuCI.Network.Device#getI18n"><a href="LuCI.Network.Device.html#getI18n">getI18n</a></li>
394
395 <li data-name="LuCI.Network.Device#getIP6Addrs"><a href="LuCI.Network.Device.html#getIP6Addrs">getIP6Addrs</a></li>
396
397 <li data-name="LuCI.Network.Device#getIPAddrs"><a href="LuCI.Network.Device.html#getIPAddrs">getIPAddrs</a></li>
398
399 <li data-name="LuCI.Network.Device#getMAC"><a href="LuCI.Network.Device.html#getMAC">getMAC</a></li>
400
401 <li data-name="LuCI.Network.Device#getMTU"><a href="LuCI.Network.Device.html#getMTU">getMTU</a></li>
402
403 <li data-name="LuCI.Network.Device#getName"><a href="LuCI.Network.Device.html#getName">getName</a></li>
404
405 <li data-name="LuCI.Network.Device#getNetwork"><a href="LuCI.Network.Device.html#getNetwork">getNetwork</a></li>
406
407 <li data-name="LuCI.Network.Device#getNetworks"><a href="LuCI.Network.Device.html#getNetworks">getNetworks</a></li>
408
409 <li data-name="LuCI.Network.Device#getPorts"><a href="LuCI.Network.Device.html#getPorts">getPorts</a></li>
410
411 <li data-name="LuCI.Network.Device#getRXBytes"><a href="LuCI.Network.Device.html#getRXBytes">getRXBytes</a></li>
412
413 <li data-name="LuCI.Network.Device#getRXPackets"><a href="LuCI.Network.Device.html#getRXPackets">getRXPackets</a></li>
414
415 <li data-name="LuCI.Network.Device#getShortName"><a href="LuCI.Network.Device.html#getShortName">getShortName</a></li>
416
417 <li data-name="LuCI.Network.Device#getTXBytes"><a href="LuCI.Network.Device.html#getTXBytes">getTXBytes</a></li>
418
419 <li data-name="LuCI.Network.Device#getTXPackets"><a href="LuCI.Network.Device.html#getTXPackets">getTXPackets</a></li>
420
421 <li data-name="LuCI.Network.Device#getType"><a href="LuCI.Network.Device.html#getType">getType</a></li>
422
423 <li data-name="LuCI.Network.Device#getTypeI18n"><a href="LuCI.Network.Device.html#getTypeI18n">getTypeI18n</a></li>
424
425 <li data-name="LuCI.Network.Device#getWifiNetwork"><a href="LuCI.Network.Device.html#getWifiNetwork">getWifiNetwork</a></li>
426
427 <li data-name="LuCI.Network.Device#isBridge"><a href="LuCI.Network.Device.html#isBridge">isBridge</a></li>
428
429 <li data-name="LuCI.Network.Device#isBridgePort"><a href="LuCI.Network.Device.html#isBridgePort">isBridgePort</a></li>
430
431 <li data-name="LuCI.Network.Device#isUp"><a href="LuCI.Network.Device.html#isUp">isUp</a></li>
432
433 </ul>
434 <ul class="events itemMembers">
435
436 </ul>
437 </li>
438
439 <li class="item" data-name="LuCI.Network.Hosts">
440 <span class="title">
441 <a href="LuCI.Network.Hosts.html">LuCI.Network.Hosts</a>
442
443 </span>
444 <ul class="members itemMembers">
445
446 </ul>
447 <ul class="typedefs itemMembers">
448
449 </ul>
450 <ul class="typedefs itemMembers">
451
452 </ul>
453 <ul class="methods itemMembers">
454
455 <span class="subtitle">Methods</span>
456
457 <li data-name="LuCI.Network.Hosts#getHostnameByIP6Addr"><a href="LuCI.Network.Hosts.html#getHostnameByIP6Addr">getHostnameByIP6Addr</a></li>
458
459 <li data-name="LuCI.Network.Hosts#getHostnameByIPAddr"><a href="LuCI.Network.Hosts.html#getHostnameByIPAddr">getHostnameByIPAddr</a></li>
460
461 <li data-name="LuCI.Network.Hosts#getHostnameByMACAddr"><a href="LuCI.Network.Hosts.html#getHostnameByMACAddr">getHostnameByMACAddr</a></li>
462
463 <li data-name="LuCI.Network.Hosts#getIP6AddrByMACAddr"><a href="LuCI.Network.Hosts.html#getIP6AddrByMACAddr">getIP6AddrByMACAddr</a></li>
464
465 <li data-name="LuCI.Network.Hosts#getIPAddrByMACAddr"><a href="LuCI.Network.Hosts.html#getIPAddrByMACAddr">getIPAddrByMACAddr</a></li>
466
467 <li data-name="LuCI.Network.Hosts#getMACAddrByIP6Addr"><a href="LuCI.Network.Hosts.html#getMACAddrByIP6Addr">getMACAddrByIP6Addr</a></li>
468
469 <li data-name="LuCI.Network.Hosts#getMACAddrByIPAddr"><a href="LuCI.Network.Hosts.html#getMACAddrByIPAddr">getMACAddrByIPAddr</a></li>
470
471 <li data-name="LuCI.Network.Hosts#getMACHints"><a href="LuCI.Network.Hosts.html#getMACHints">getMACHints</a></li>
472
473 </ul>
474 <ul class="events itemMembers">
475
476 </ul>
477 </li>
478
479 <li class="item" data-name="LuCI.Network.Protocol">
480 <span class="title">
481 <a href="LuCI.Network.Protocol.html">LuCI.Network.Protocol</a>
482
483 </span>
484 <ul class="members itemMembers">
485
486 </ul>
487 <ul class="typedefs itemMembers">
488
489 </ul>
490 <ul class="typedefs itemMembers">
491
492 </ul>
493 <ul class="methods itemMembers">
494
495 <span class="subtitle">Methods</span>
496
497 <li data-name="LuCI.Network.Protocol#addDevice"><a href="LuCI.Network.Protocol.html#addDevice">addDevice</a></li>
498
499 <li data-name="LuCI.Network.Protocol#containsDevice"><a href="LuCI.Network.Protocol.html#containsDevice">containsDevice</a></li>
500
501 <li data-name="LuCI.Network.Protocol#deleteDevice"><a href="LuCI.Network.Protocol.html#deleteDevice">deleteDevice</a></li>
502
503 <li data-name="LuCI.Network.Protocol#get"><a href="LuCI.Network.Protocol.html#get">get</a></li>
504
505 <li data-name="LuCI.Network.Protocol#getDevice"><a href="LuCI.Network.Protocol.html#getDevice">getDevice</a></li>
506
507 <li data-name="LuCI.Network.Protocol#getDevices"><a href="LuCI.Network.Protocol.html#getDevices">getDevices</a></li>
508
509 <li data-name="LuCI.Network.Protocol#getDNS6Addrs"><a href="LuCI.Network.Protocol.html#getDNS6Addrs">getDNS6Addrs</a></li>
510
511 <li data-name="LuCI.Network.Protocol#getDNSAddrs"><a href="LuCI.Network.Protocol.html#getDNSAddrs">getDNSAddrs</a></li>
512
513 <li data-name="LuCI.Network.Protocol#getErrors"><a href="LuCI.Network.Protocol.html#getErrors">getErrors</a></li>
514
515 <li data-name="LuCI.Network.Protocol#getExpiry"><a href="LuCI.Network.Protocol.html#getExpiry">getExpiry</a></li>
516
517 <li data-name="LuCI.Network.Protocol#getGateway6Addr"><a href="LuCI.Network.Protocol.html#getGateway6Addr">getGateway6Addr</a></li>
518
519 <li data-name="LuCI.Network.Protocol#getGatewayAddr"><a href="LuCI.Network.Protocol.html#getGatewayAddr">getGatewayAddr</a></li>
520
521 <li data-name="LuCI.Network.Protocol#getI18n"><a href="LuCI.Network.Protocol.html#getI18n">getI18n</a></li>
522
523 <li data-name="LuCI.Network.Protocol#getIfname"><a href="LuCI.Network.Protocol.html#getIfname">getIfname</a></li>
524
525 <li data-name="LuCI.Network.Protocol#getIP6Addr"><a href="LuCI.Network.Protocol.html#getIP6Addr">getIP6Addr</a></li>
526
527 <li data-name="LuCI.Network.Protocol#getIP6Addrs"><a href="LuCI.Network.Protocol.html#getIP6Addrs">getIP6Addrs</a></li>
528
529 <li data-name="LuCI.Network.Protocol#getIP6Prefix"><a href="LuCI.Network.Protocol.html#getIP6Prefix">getIP6Prefix</a></li>
530
531 <li data-name="LuCI.Network.Protocol#getIPAddr"><a href="LuCI.Network.Protocol.html#getIPAddr">getIPAddr</a></li>
532
533 <li data-name="LuCI.Network.Protocol#getIPAddrs"><a href="LuCI.Network.Protocol.html#getIPAddrs">getIPAddrs</a></li>
534
535 <li data-name="LuCI.Network.Protocol#getL2Device"><a href="LuCI.Network.Protocol.html#getL2Device">getL2Device</a></li>
536
537 <li data-name="LuCI.Network.Protocol#getL3Device"><a href="LuCI.Network.Protocol.html#getL3Device">getL3Device</a></li>
538
539 <li data-name="LuCI.Network.Protocol#getMetric"><a href="LuCI.Network.Protocol.html#getMetric">getMetric</a></li>
540
541 <li data-name="LuCI.Network.Protocol#getName"><a href="LuCI.Network.Protocol.html#getName">getName</a></li>
542
543 <li data-name="LuCI.Network.Protocol#getNetmask"><a href="LuCI.Network.Protocol.html#getNetmask">getNetmask</a></li>
544
545 <li data-name="LuCI.Network.Protocol#getOpkgPackage"><a href="LuCI.Network.Protocol.html#getOpkgPackage">getOpkgPackage</a></li>
546
547 <li data-name="LuCI.Network.Protocol#getProtocol"><a href="LuCI.Network.Protocol.html#getProtocol">getProtocol</a></li>
548
549 <li data-name="LuCI.Network.Protocol#getType"><a href="LuCI.Network.Protocol.html#getType">getType</a></li>
550
551 <li data-name="LuCI.Network.Protocol#getUptime"><a href="LuCI.Network.Protocol.html#getUptime">getUptime</a></li>
552
553 <li data-name="LuCI.Network.Protocol#getZoneName"><a href="LuCI.Network.Protocol.html#getZoneName">getZoneName</a></li>
554
555 <li data-name="LuCI.Network.Protocol#isAlias"><a href="LuCI.Network.Protocol.html#isAlias">isAlias</a></li>
556
557 <li data-name="LuCI.Network.Protocol#isBridge"><a href="LuCI.Network.Protocol.html#isBridge">isBridge</a></li>
558
559 <li data-name="LuCI.Network.Protocol#isDynamic"><a href="LuCI.Network.Protocol.html#isDynamic">isDynamic</a></li>
560
561 <li data-name="LuCI.Network.Protocol#isEmpty"><a href="LuCI.Network.Protocol.html#isEmpty">isEmpty</a></li>
562
563 <li data-name="LuCI.Network.Protocol#isFloating"><a href="LuCI.Network.Protocol.html#isFloating">isFloating</a></li>
564
565 <li data-name="LuCI.Network.Protocol#isInstalled"><a href="LuCI.Network.Protocol.html#isInstalled">isInstalled</a></li>
566
567 <li data-name="LuCI.Network.Protocol#isUp"><a href="LuCI.Network.Protocol.html#isUp">isUp</a></li>
568
569 <li data-name="LuCI.Network.Protocol#isVirtual"><a href="LuCI.Network.Protocol.html#isVirtual">isVirtual</a></li>
570
571 <li data-name="LuCI.Network.Protocol#set"><a href="LuCI.Network.Protocol.html#set">set</a></li>
572
573 </ul>
574 <ul class="events itemMembers">
575
576 </ul>
577 </li>
578
579 <li class="item" data-name="LuCI.Network.WifiDevice">
580 <span class="title">
581 <a href="LuCI.Network.WifiDevice.html">LuCI.Network.WifiDevice</a>
582
583 </span>
584 <ul class="members itemMembers">
585
586 </ul>
587 <ul class="typedefs itemMembers">
588
589 </ul>
590 <ul class="typedefs itemMembers">
591
592 </ul>
593 <ul class="methods itemMembers">
594
595 <span class="subtitle">Methods</span>
596
597 <li data-name="LuCI.Network.WifiDevice#addWifiNetwork"><a href="LuCI.Network.WifiDevice.html#addWifiNetwork">addWifiNetwork</a></li>
598
599 <li data-name="LuCI.Network.WifiDevice#deleteWifiNetwork"><a href="LuCI.Network.WifiDevice.html#deleteWifiNetwork">deleteWifiNetwork</a></li>
600
601 <li data-name="LuCI.Network.WifiDevice#get"><a href="LuCI.Network.WifiDevice.html#get">get</a></li>
602
603 <li data-name="LuCI.Network.WifiDevice#getHTModes"><a href="LuCI.Network.WifiDevice.html#getHTModes">getHTModes</a></li>
604
605 <li data-name="LuCI.Network.WifiDevice#getHWModes"><a href="LuCI.Network.WifiDevice.html#getHWModes">getHWModes</a></li>
606
607 <li data-name="LuCI.Network.WifiDevice#getI18n"><a href="LuCI.Network.WifiDevice.html#getI18n">getI18n</a></li>
608
609 <li data-name="LuCI.Network.WifiDevice#getName"><a href="LuCI.Network.WifiDevice.html#getName">getName</a></li>
610
611 <li data-name="LuCI.Network.WifiDevice#getScanList"><a href="LuCI.Network.WifiDevice.html#getScanList">getScanList</a></li>
612
613 <li data-name="LuCI.Network.WifiDevice#getWifiNetwork"><a href="LuCI.Network.WifiDevice.html#getWifiNetwork">getWifiNetwork</a></li>
614
615 <li data-name="LuCI.Network.WifiDevice#getWifiNetworks"><a href="LuCI.Network.WifiDevice.html#getWifiNetworks">getWifiNetworks</a></li>
616
617 <li data-name="LuCI.Network.WifiDevice#isDisabled"><a href="LuCI.Network.WifiDevice.html#isDisabled">isDisabled</a></li>
618
619 <li data-name="LuCI.Network.WifiDevice#isUp"><a href="LuCI.Network.WifiDevice.html#isUp">isUp</a></li>
620
621 <li data-name="LuCI.Network.WifiDevice#set"><a href="LuCI.Network.WifiDevice.html#set">set</a></li>
622
623 </ul>
624 <ul class="events itemMembers">
625
626 </ul>
627 </li>
628
629 <li class="item" data-name="LuCI.Network.WifiNetwork">
630 <span class="title">
631 <a href="LuCI.Network.WifiNetwork.html">LuCI.Network.WifiNetwork</a>
632
633 </span>
634 <ul class="members itemMembers">
635
636 </ul>
637 <ul class="typedefs itemMembers">
638
639 </ul>
640 <ul class="typedefs itemMembers">
641
642 </ul>
643 <ul class="methods itemMembers">
644
645 <span class="subtitle">Methods</span>
646
647 <li data-name="LuCI.Network.WifiNetwork#disconnectClient"><a href="LuCI.Network.WifiNetwork.html#disconnectClient">disconnectClient</a></li>
648
649 <li data-name="LuCI.Network.WifiNetwork#get"><a href="LuCI.Network.WifiNetwork.html#get">get</a></li>
650
651 <li data-name="LuCI.Network.WifiNetwork#getActiveBSSID"><a href="LuCI.Network.WifiNetwork.html#getActiveBSSID">getActiveBSSID</a></li>
652
653 <li data-name="LuCI.Network.WifiNetwork#getActiveEncryption"><a href="LuCI.Network.WifiNetwork.html#getActiveEncryption">getActiveEncryption</a></li>
654
655 <li data-name="LuCI.Network.WifiNetwork#getActiveMode"><a href="LuCI.Network.WifiNetwork.html#getActiveMode">getActiveMode</a></li>
656
657 <li data-name="LuCI.Network.WifiNetwork#getActiveModeI18n"><a href="LuCI.Network.WifiNetwork.html#getActiveModeI18n">getActiveModeI18n</a></li>
658
659 <li data-name="LuCI.Network.WifiNetwork#getActiveSSID"><a href="LuCI.Network.WifiNetwork.html#getActiveSSID">getActiveSSID</a></li>
660
661 <li data-name="LuCI.Network.WifiNetwork#getAssocList"><a href="LuCI.Network.WifiNetwork.html#getAssocList">getAssocList</a></li>
662
663 <li data-name="LuCI.Network.WifiNetwork#getBitRate"><a href="LuCI.Network.WifiNetwork.html#getBitRate">getBitRate</a></li>
664
665 <li data-name="LuCI.Network.WifiNetwork#getBSSID"><a href="LuCI.Network.WifiNetwork.html#getBSSID">getBSSID</a></li>
666
667 <li data-name="LuCI.Network.WifiNetwork#getChannel"><a href="LuCI.Network.WifiNetwork.html#getChannel">getChannel</a></li>
668
669 <li data-name="LuCI.Network.WifiNetwork#getCountryCode"><a href="LuCI.Network.WifiNetwork.html#getCountryCode">getCountryCode</a></li>
670
671 <li data-name="LuCI.Network.WifiNetwork#getDevice"><a href="LuCI.Network.WifiNetwork.html#getDevice">getDevice</a></li>
672
673 <li data-name="LuCI.Network.WifiNetwork#getFrequency"><a href="LuCI.Network.WifiNetwork.html#getFrequency">getFrequency</a></li>
674
675 <li data-name="LuCI.Network.WifiNetwork#getI18n"><a href="LuCI.Network.WifiNetwork.html#getI18n">getI18n</a></li>
676
677 <li data-name="LuCI.Network.WifiNetwork#getID"><a href="LuCI.Network.WifiNetwork.html#getID">getID</a></li>
678
679 <li data-name="LuCI.Network.WifiNetwork#getIfname"><a href="LuCI.Network.WifiNetwork.html#getIfname">getIfname</a></li>
680
681 <li data-name="LuCI.Network.WifiNetwork#getMeshID"><a href="LuCI.Network.WifiNetwork.html#getMeshID">getMeshID</a></li>
682
683 <li data-name="LuCI.Network.WifiNetwork#getMode"><a href="LuCI.Network.WifiNetwork.html#getMode">getMode</a></li>
684
685 <li data-name="LuCI.Network.WifiNetwork#getName"><a href="LuCI.Network.WifiNetwork.html#getName">getName</a></li>
686
687 <li data-name="LuCI.Network.WifiNetwork#getNetwork"><a href="LuCI.Network.WifiNetwork.html#getNetwork">getNetwork</a></li>
688
689 <li data-name="LuCI.Network.WifiNetwork#getNetworkNames"><a href="LuCI.Network.WifiNetwork.html#getNetworkNames">getNetworkNames</a></li>
690
691 <li data-name="LuCI.Network.WifiNetwork#getNetworks"><a href="LuCI.Network.WifiNetwork.html#getNetworks">getNetworks</a></li>
692
693 <li data-name="LuCI.Network.WifiNetwork#getNoise"><a href="LuCI.Network.WifiNetwork.html#getNoise">getNoise</a></li>
694
695 <li data-name="LuCI.Network.WifiNetwork#getShortName"><a href="LuCI.Network.WifiNetwork.html#getShortName">getShortName</a></li>
696
697 <li data-name="LuCI.Network.WifiNetwork#getSignal"><a href="LuCI.Network.WifiNetwork.html#getSignal">getSignal</a></li>
698
699 <li data-name="LuCI.Network.WifiNetwork#getSignalLevel"><a href="LuCI.Network.WifiNetwork.html#getSignalLevel">getSignalLevel</a></li>
700
701 <li data-name="LuCI.Network.WifiNetwork#getSignalPercent"><a href="LuCI.Network.WifiNetwork.html#getSignalPercent">getSignalPercent</a></li>
702
703 <li data-name="LuCI.Network.WifiNetwork#getSSID"><a href="LuCI.Network.WifiNetwork.html#getSSID">getSSID</a></li>
704
705 <li data-name="LuCI.Network.WifiNetwork#getTXPower"><a href="LuCI.Network.WifiNetwork.html#getTXPower">getTXPower</a></li>
706
707 <li data-name="LuCI.Network.WifiNetwork#getTXPowerOffset"><a href="LuCI.Network.WifiNetwork.html#getTXPowerOffset">getTXPowerOffset</a></li>
708
709 <li data-name="LuCI.Network.WifiNetwork#getWifiDevice"><a href="LuCI.Network.WifiNetwork.html#getWifiDevice">getWifiDevice</a></li>
710
711 <li data-name="LuCI.Network.WifiNetwork#getWifiDeviceName"><a href="LuCI.Network.WifiNetwork.html#getWifiDeviceName">getWifiDeviceName</a></li>
712
713 <li data-name="LuCI.Network.WifiNetwork#isClientDisconnectSupported"><a href="LuCI.Network.WifiNetwork.html#isClientDisconnectSupported">isClientDisconnectSupported</a></li>
714
715 <li data-name="LuCI.Network.WifiNetwork#isDisabled"><a href="LuCI.Network.WifiNetwork.html#isDisabled">isDisabled</a></li>
716
717 <li data-name="LuCI.Network.WifiNetwork#isUp"><a href="LuCI.Network.WifiNetwork.html#isUp">isUp</a></li>
718
719 <li data-name="LuCI.Network.WifiNetwork#set"><a href="LuCI.Network.WifiNetwork.html#set">set</a></li>
720
721 </ul>
722 <ul class="events itemMembers">
723
724 </ul>
725 </li>
726
727 <li class="item" data-name="LuCI.Poll">
728 <span class="title">
729 <a href="LuCI.Poll.html">LuCI.Poll</a>
730
731 </span>
732 <ul class="members itemMembers">
733
734 </ul>
735 <ul class="typedefs itemMembers">
736
737 </ul>
738 <ul class="typedefs itemMembers">
739
740 </ul>
741 <ul class="methods itemMembers">
742
743 <span class="subtitle">Methods</span>
744
745 <li data-name="LuCI.Poll#active"><a href="LuCI.Poll.html#active">active</a></li>
746
747 <li data-name="LuCI.Poll#add"><a href="LuCI.Poll.html#add">add</a></li>
748
749 <li data-name="LuCI.Poll#remove"><a href="LuCI.Poll.html#remove">remove</a></li>
750
751 <li data-name="LuCI.Poll#start"><a href="LuCI.Poll.html#start">start</a></li>
752
753 <li data-name="LuCI.Poll#stop"><a href="LuCI.Poll.html#stop">stop</a></li>
754
755 </ul>
756 <ul class="events itemMembers">
757
758 </ul>
759 </li>
760
761 <li class="item" data-name="LuCI.Request">
762 <span class="title">
763 <a href="LuCI.Request.html">LuCI.Request</a>
764
765 </span>
766 <ul class="members itemMembers">
767
768 </ul>
769 <ul class="typedefs itemMembers">
770
771 <span class="subtitle">Typedefs</span>
772
773 <li data-name="LuCI.Request.interceptorFn"><a href="LuCI.Request.html#.interceptorFn">interceptorFn</a></li>
774
775 <li data-name="LuCI.Request.RequestOptions"><a href="LuCI.Request.html#.RequestOptions">RequestOptions</a></li>
776
777 </ul>
778 <ul class="typedefs itemMembers">
779
780 </ul>
781 <ul class="methods itemMembers">
782
783 <span class="subtitle">Methods</span>
784
785 <li data-name="LuCI.Request#addInterceptor"><a href="LuCI.Request.html#addInterceptor">addInterceptor</a></li>
786
787 <li data-name="LuCI.Request#expandURL"><a href="LuCI.Request.html#expandURL">expandURL</a></li>
788
789 <li data-name="LuCI.Request#get"><a href="LuCI.Request.html#get">get</a></li>
790
791 <li data-name="LuCI.Request#post"><a href="LuCI.Request.html#post">post</a></li>
792
793 <li data-name="LuCI.Request#removeInterceptor"><a href="LuCI.Request.html#removeInterceptor">removeInterceptor</a></li>
794
795 <li data-name="LuCI.Request#request"><a href="LuCI.Request.html#request">request</a></li>
796
797 </ul>
798 <ul class="events itemMembers">
799
800 </ul>
801 </li>
802
803 <li class="item" data-name="LuCI.Request.poll">
804 <span class="title">
805 <a href="LuCI.Request.poll.html">LuCI.Request.poll</a>
806
807 </span>
808 <ul class="members itemMembers">
809
810 </ul>
811 <ul class="typedefs itemMembers">
812
813 <span class="subtitle">Typedefs</span>
814
815 <li data-name="LuCI.Request.poll~callbackFn"><a href="LuCI.Request.poll.html#~callbackFn">callbackFn</a></li>
816
817 </ul>
818 <ul class="typedefs itemMembers">
819
820 </ul>
821 <ul class="methods itemMembers">
822
823 <span class="subtitle">Methods</span>
824
825 <li data-name="LuCI.Request.poll#active"><a href="LuCI.Request.poll.html#active">active</a></li>
826
827 <li data-name="LuCI.Request.poll#add"><a href="LuCI.Request.poll.html#add">add</a></li>
828
829 <li data-name="LuCI.Request.poll#remove"><a href="LuCI.Request.poll.html#remove">remove</a></li>
830
831 <li data-name="LuCI.Request.poll#start"><a href="LuCI.Request.poll.html#start">start</a></li>
832
833 <li data-name="LuCI.Request.poll#stop"><a href="LuCI.Request.poll.html#stop">stop</a></li>
834
835 </ul>
836 <ul class="events itemMembers">
837
838 </ul>
839 </li>
840
841 <li class="item" data-name="LuCI.Response">
842 <span class="title">
843 <a href="LuCI.Response.html">LuCI.Response</a>
844
845 </span>
846 <ul class="members itemMembers">
847
848 <span class="subtitle">Members</span>
849
850 <li data-name="LuCI.Response#duration"><a href="LuCI.Response.html#duration">duration</a></li>
851
852 <li data-name="LuCI.Response#headers"><a href="LuCI.Response.html#headers">headers</a></li>
853
854 <li data-name="LuCI.Response#ok"><a href="LuCI.Response.html#ok">ok</a></li>
855
856 <li data-name="LuCI.Response#status"><a href="LuCI.Response.html#status">status</a></li>
857
858 <li data-name="LuCI.Response#statusText"><a href="LuCI.Response.html#statusText">statusText</a></li>
859
860 <li data-name="LuCI.Response#url"><a href="LuCI.Response.html#url">url</a></li>
861
862 </ul>
863 <ul class="typedefs itemMembers">
864
865 </ul>
866 <ul class="typedefs itemMembers">
867
868 </ul>
869 <ul class="methods itemMembers">
870
871 <span class="subtitle">Methods</span>
872
873 <li data-name="LuCI.Response#blob"><a href="LuCI.Response.html#blob">blob</a></li>
874
875 <li data-name="LuCI.Response#clone"><a href="LuCI.Response.html#clone">clone</a></li>
876
877 <li data-name="LuCI.Response#json"><a href="LuCI.Response.html#json">json</a></li>
878
879 <li data-name="LuCI.Response#text"><a href="LuCI.Response.html#text">text</a></li>
880
881 </ul>
882 <ul class="events itemMembers">
883
884 </ul>
885 </li>
886
887 <li class="item" data-name="LuCI.rpc">
888 <span class="title">
889 <a href="LuCI.rpc.html">LuCI.rpc</a>
890
891 </span>
892 <ul class="members itemMembers">
893
894 </ul>
895 <ul class="typedefs itemMembers">
896
897 <span class="subtitle">Typedefs</span>
898
899 <li data-name="LuCI.rpc.DeclareOptions"><a href="LuCI.rpc.html#.DeclareOptions">DeclareOptions</a></li>
900
901 <li data-name="LuCI.rpc~filterFn"><a href="LuCI.rpc.html#~filterFn">filterFn</a></li>
902
903 <li data-name="LuCI.rpc~interceptorFn"><a href="LuCI.rpc.html#~interceptorFn">interceptorFn</a></li>
904
905 <li data-name="LuCI.rpc~invokeFn"><a href="LuCI.rpc.html#~invokeFn">invokeFn</a></li>
906
907 </ul>
908 <ul class="typedefs itemMembers">
909
910 </ul>
911 <ul class="methods itemMembers">
912
913 <span class="subtitle">Methods</span>
914
915 <li data-name="LuCI.rpc#addInterceptor"><a href="LuCI.rpc.html#addInterceptor">addInterceptor</a></li>
916
917 <li data-name="LuCI.rpc#declare"><a href="LuCI.rpc.html#declare">declare</a></li>
918
919 <li data-name="LuCI.rpc#getBaseURL"><a href="LuCI.rpc.html#getBaseURL">getBaseURL</a></li>
920
921 <li data-name="LuCI.rpc#getSessionID"><a href="LuCI.rpc.html#getSessionID">getSessionID</a></li>
922
923 <li data-name="LuCI.rpc#getStatusText"><a href="LuCI.rpc.html#getStatusText">getStatusText</a></li>
924
925 <li data-name="LuCI.rpc#list"><a href="LuCI.rpc.html#list">list</a></li>
926
927 <li data-name="LuCI.rpc#removeInterceptor"><a href="LuCI.rpc.html#removeInterceptor">removeInterceptor</a></li>
928
929 <li data-name="LuCI.rpc#setBaseURL"><a href="LuCI.rpc.html#setBaseURL">setBaseURL</a></li>
930
931 <li data-name="LuCI.rpc#setSessionID"><a href="LuCI.rpc.html#setSessionID">setSessionID</a></li>
932
933 </ul>
934 <ul class="events itemMembers">
935
936 </ul>
937 </li>
938
939 <li class="item" data-name="LuCI.uci">
940 <span class="title">
941 <a href="LuCI.uci.html">LuCI.uci</a>
942
943 </span>
944 <ul class="members itemMembers">
945
946 </ul>
947 <ul class="typedefs itemMembers">
948
949 <span class="subtitle">Typedefs</span>
950
951 <li data-name="LuCI.uci.ChangeRecord"><a href="LuCI.uci.html#.ChangeRecord">ChangeRecord</a></li>
952
953 <li data-name="LuCI.uci.SectionObject"><a href="LuCI.uci.html#.SectionObject">SectionObject</a></li>
954
955 <li data-name="LuCI.uci~sectionsFn"><a href="LuCI.uci.html#~sectionsFn">sectionsFn</a></li>
956
957 </ul>
958 <ul class="typedefs itemMembers">
959
960 </ul>
961 <ul class="methods itemMembers">
962
963 <span class="subtitle">Methods</span>
964
965 <li data-name="LuCI.uci#add"><a href="LuCI.uci.html#add">add</a></li>
966
967 <li data-name="LuCI.uci#apply"><a href="LuCI.uci.html#apply">apply</a></li>
968
969 <li data-name="LuCI.uci#changes"><a href="LuCI.uci.html#changes">changes</a></li>
970
971 <li data-name="LuCI.uci#createSID"><a href="LuCI.uci.html#createSID">createSID</a></li>
972
973 <li data-name="LuCI.uci#get"><a href="LuCI.uci.html#get">get</a></li>
974
975 <li data-name="LuCI.uci#get_first"><a href="LuCI.uci.html#get_first">get_first</a></li>
976
977 <li data-name="LuCI.uci#load"><a href="LuCI.uci.html#load">load</a></li>
978
979 <li data-name="LuCI.uci#move"><a href="LuCI.uci.html#move">move</a></li>
980
981 <li data-name="LuCI.uci#remove"><a href="LuCI.uci.html#remove">remove</a></li>
982
983 <li data-name="LuCI.uci#resolveSID"><a href="LuCI.uci.html#resolveSID">resolveSID</a></li>
984
985 <li data-name="LuCI.uci#save"><a href="LuCI.uci.html#save">save</a></li>
986
987 <li data-name="LuCI.uci#sections"><a href="LuCI.uci.html#sections">sections</a></li>
988
989 <li data-name="LuCI.uci#set"><a href="LuCI.uci.html#set">set</a></li>
990
991 <li data-name="LuCI.uci#set_first"><a href="LuCI.uci.html#set_first">set_first</a></li>
992
993 <li data-name="LuCI.uci#unload"><a href="LuCI.uci.html#unload">unload</a></li>
994
995 <li data-name="LuCI.uci#unset"><a href="LuCI.uci.html#unset">unset</a></li>
996
997 <li data-name="LuCI.uci#unset_first"><a href="LuCI.uci.html#unset_first">unset_first</a></li>
998
999 </ul>
1000 <ul class="events itemMembers">
1001
1002 </ul>
1003 </li>
1004
1005 <li class="item" data-name="LuCI.view">
1006 <span class="title">
1007 <a href="LuCI.view.html">LuCI.view</a>
1008
1009 </span>
1010 <ul class="members itemMembers">
1011
1012 </ul>
1013 <ul class="typedefs itemMembers">
1014
1015 </ul>
1016 <ul class="typedefs itemMembers">
1017
1018 </ul>
1019 <ul class="methods itemMembers">
1020
1021 <span class="subtitle">Methods</span>
1022
1023 <li data-name="LuCI.view#addFooter"><a href="LuCI.view.html#addFooter">addFooter</a></li>
1024
1025 <li data-name="LuCI.view#handleReset"><a href="LuCI.view.html#handleReset">handleReset</a></li>
1026
1027 <li data-name="LuCI.view#handleSave"><a href="LuCI.view.html#handleSave">handleSave</a></li>
1028
1029 <li data-name="LuCI.view#handleSaveApply"><a href="LuCI.view.html#handleSaveApply">handleSaveApply</a></li>
1030
1031 <li data-name="LuCI.view#load"><a href="LuCI.view.html#load">load</a></li>
1032
1033 <li data-name="LuCI.view#render"><a href="LuCI.view.html#render">render</a></li>
1034
1035 </ul>
1036 <ul class="events itemMembers">
1037
1038 </ul>
1039 </li>
1040
1041 <li class="item" data-name="LuCI.XHR">
1042 <span class="title">
1043 <a href="LuCI.XHR.html">LuCI.XHR</a>
1044
1045 </span>
1046 <ul class="members itemMembers">
1047
1048 </ul>
1049 <ul class="typedefs itemMembers">
1050
1051 </ul>
1052 <ul class="typedefs itemMembers">
1053
1054 </ul>
1055 <ul class="methods itemMembers">
1056
1057 <span class="subtitle">Methods</span>
1058
1059 <li data-name="LuCI.XHR#abort"><a href="LuCI.XHR.html#abort">abort</a></li>
1060
1061 <li data-name="LuCI.XHR#busy"><a href="LuCI.XHR.html#busy">busy</a></li>
1062
1063 <li data-name="LuCI.XHR#cancel"><a href="LuCI.XHR.html#cancel">cancel</a></li>
1064
1065 <li data-name="LuCI.XHR#get"><a href="LuCI.XHR.html#get">get</a></li>
1066
1067 <li data-name="LuCI.XHR#post"><a href="LuCI.XHR.html#post">post</a></li>
1068
1069 <li data-name="LuCI.XHR#send_form"><a href="LuCI.XHR.html#send_form">send_form</a></li>
1070
1071 </ul>
1072 <ul class="events itemMembers">
1073
1074 </ul>
1075 </li>
1076
1077 </ul>
1078 </div>
1079 <div class="main">
1080 <h1 class="page-title" data-filename="LuCI.dom.html">Class: dom</h1>
1081
1082
1083
1084
1085 <section>
1086
1087 <header>
1088 <h2>
1089 <span class="ancestors"><a href="LuCI.html">LuCI</a>.</span>
1090
1091 dom
1092 </h2>
1093
1094 <div class="class-description"><p>The <code>dom</code> class provides convenience method for creating and
1095 manipulating DOM elements.</p></div>
1096
1097 </header>
1098
1099 <article>
1100 <div class="container-overview">
1101
1102
1103
1104
1105 <dt>
1106 <div class="nameContainer">
1107 <h4 class="name" id="dom">
1108
1109 new LuCI.dom<span class="signature">()</span>
1110 </h4>
1111
1112
1113 <div class="tag-source">
1114 <a href="luci.js.html">luci.js</a>, <a href="luci.js.html#line2136">line 2136</a>
1115 </div>
1116
1117 </div>
1118
1119
1120 </dt>
1121 <dd>
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132 <dl class="details">
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154 </dl>
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168 </dd>
1169
1170
1171 </div>
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186 <h3 class="subsection-title">Methods</h3>
1187
1188 <dl>
1189
1190 <dt>
1191 <div class="nameContainer">
1192 <h4 class="name" id="append">
1193
1194 append<span class="signature">(node, <span class="optional">children</span>)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Node|null}</span>
1195 </h4>
1196
1197
1198 <div class="tag-source">
1199 <a href="luci.js.html">luci.js</a>, <a href="luci.js.html#line2287">line 2287</a>
1200 </div>
1201
1202 </div>
1203
1204
1205 </dt>
1206 <dd>
1207
1208
1209 <div class="description">
1210 <p>Appends the given children data to the given node.</p>
1211 </div>
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221 <table class="params">
1222 <thead>
1223 <tr>
1224
1225 <th>Name</th>
1226
1227
1228 <th>Type</th>
1229
1230
1231
1232 <th class="last">Description</th>
1233 </tr>
1234 </thead>
1235
1236 <tbody>
1237
1238
1239 <tr>
1240
1241 <td class="name"><code>node</code></td>
1242
1243
1244 <td class="type">
1245
1246
1247 <span class="param-type">*</span>
1248
1249
1250
1251 </td>
1252
1253
1254
1255 <td class="description last">
1256
1257
1258
1259
1260
1261
1262 <p>The <code>Node</code> argument to append the children to.</p></td>
1263 </tr>
1264
1265
1266
1267 <tr>
1268
1269 <td class="name"><code>children</code></td>
1270
1271
1272 <td class="type">
1273
1274
1275 <span class="param-type">*</span>
1276
1277
1278
1279 </td>
1280
1281
1282
1283 <td class="description last">
1284
1285
1286 <span class="optional">optional</span>
1287
1288
1289
1290
1291
1292 <p>The childrens to append to the given node.</p>
1293 <p>When <code>children</code> is an array, then each item of the array
1294 will be either appended as child element or text node,
1295 depending on whether the item is a DOM <code>Node</code> instance or
1296 some other non-<code>null</code> value. Non-<code>Node</code>, non-<code>null</code> values
1297 will be converted to strings first before being passed as
1298 argument to <code>createTextNode()</code>.</p>
1299 <p>When <code>children</code> is a function, it will be invoked with
1300 the passed <code>node</code> argument as sole parameter and the <code>append</code>
1301 function will be invoked again, with the given <code>node</code> argument
1302 as first and the return value of the <code>children</code> function as
1303 second parameter.</p>
1304 <p>When <code>children</code> is is a DOM <code>Node</code> instance, it will be
1305 appended to the given <code>node</code>.</p>
1306 <p>When <code>children</code> is any other non-<code>null</code> value, it will be
1307 converted to a string and appened to the <code>innerHTML</code> property
1308 of the given <code>node</code>.</p></td>
1309 </tr>
1310
1311
1312 </tbody>
1313 </table>
1314
1315
1316
1317 <dl class="details">
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339 </dl>
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351 <h5>Returns:</h5>
1352
1353
1354
1355 <table class="params">
1356 <thead>
1357 <tr>
1358
1359 <th>Type</th>
1360 <th class="last">Description</th>
1361 </tr>
1362 </thead>
1363 <tbody>
1364
1365 <tr>
1366
1367 <td class="type">
1368
1369 Node
1370 |
1371
1372 null
1373
1374
1375 </td>
1376 <td class="description last">Returns the last children <code>Node</code> appended to the node or <code>null</code>
1377 if either the <code>node</code> argument was no valid DOM <code>node</code> or if the
1378 <code>children</code> was <code>null</code> or didn't result in further DOM nodes.</td>
1379 </tr>
1380
1381 </tbody>
1382 </table>
1383
1384
1385
1386
1387 </dd>
1388
1389
1390
1391 <dt>
1392 <div class="nameContainer">
1393 <h4 class="name" id="attr">
1394
1395 attr<span class="signature">(node, key, <span class="optional">val</span>)</span>
1396 </h4>
1397
1398
1399 <div class="tag-source">
1400 <a href="luci.js.html">luci.js</a>, <a href="luci.js.html#line2402">line 2402</a>
1401 </div>
1402
1403 </div>
1404
1405
1406 </dt>
1407 <dd>
1408
1409
1410 <div class="description">
1411 <p>Sets attributes or registers event listeners on element nodes.</p>
1412 </div>
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422 <table class="params">
1423 <thead>
1424 <tr>
1425
1426 <th>Name</th>
1427
1428
1429 <th>Type</th>
1430
1431
1432
1433 <th class="last">Description</th>
1434 </tr>
1435 </thead>
1436
1437 <tbody>
1438
1439
1440 <tr>
1441
1442 <td class="name"><code>node</code></td>
1443
1444
1445 <td class="type">
1446
1447
1448 <span class="param-type">*</span>
1449
1450
1451
1452 </td>
1453
1454
1455
1456 <td class="description last">
1457
1458
1459
1460
1461
1462
1463 <p>The <code>Node</code> argument to set the attributes or add the event
1464 listeners for. When the given <code>node</code> value is not a valid
1465 DOM <code>Node</code>, the function returns and does nothing.</p></td>
1466 </tr>
1467
1468
1469
1470 <tr>
1471
1472 <td class="name"><code>key</code></td>
1473
1474
1475 <td class="type">
1476
1477
1478 <span class="param-type">string</span>
1479 |
1480
1481 <span class="param-type">Object.&lt;string, *></span>
1482
1483
1484
1485 </td>
1486
1487
1488
1489 <td class="description last">
1490
1491
1492
1493
1494
1495
1496 <p>Specifies either the attribute or event handler name to use,
1497 or an object containing multiple key, value pairs which are
1498 each added to the node as either attribute or event handler,
1499 depending on the respective value.</p></td>
1500 </tr>
1501
1502
1503
1504 <tr>
1505
1506 <td class="name"><code>val</code></td>
1507
1508
1509 <td class="type">
1510
1511
1512 <span class="param-type">*</span>
1513
1514
1515
1516 </td>
1517
1518
1519
1520 <td class="description last">
1521
1522
1523 <span class="optional">optional</span>
1524
1525
1526
1527
1528
1529 <p>Specifies the attribute value or event handler function to add.
1530 If the <code>key</code> parameter is an <code>Object</code>, this parameter will be
1531 ignored.</p>
1532 <p>When <code>val</code> is of type function, it will be registered as event
1533 handler on the given <code>node</code> with the <code>key</code> parameter being the
1534 event name.</p>
1535 <p>When <code>val</code> is of type object, it will be serialized as JSON and
1536 added as attribute to the given <code>node</code>, using the given <code>key</code>
1537 as attribute name.</p>
1538 <p>When <code>val</code> is of any other type, it will be added as attribute
1539 to the given <code>node</code> as-is, with the underlying <code>setAttribute()</code>
1540 call implicitely turning it into a string.</p></td>
1541 </tr>
1542
1543
1544 </tbody>
1545 </table>
1546
1547
1548
1549 <dl class="details">
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571 </dl>
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585 </dd>
1586
1587
1588
1589 <dt>
1590 <div class="nameContainer">
1591 <h4 class="name" id="bindClassInstance">
1592
1593 bindClassInstance<span class="signature">(node, inst)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Class}</span>
1594 </h4>
1595
1596
1597 <div class="tag-source">
1598 <a href="luci.js.html">luci.js</a>, <a href="luci.js.html#line2636">line 2636</a>
1599 </div>
1600
1601 </div>
1602
1603
1604 </dt>
1605 <dd>
1606
1607
1608 <div class="description">
1609 <p>Binds the given class instance ot the specified DOM <code>Node</code>.</p>
1610 <p>This function uses the <code>dom.data()</code> facility to attach the
1611 passed instance of a Class to a node. This is needed for
1612 complex widget elements or similar where the corresponding
1613 class instance responsible for the element must be retrieved
1614 from DOM nodes obtained by <code>querySelector()</code> or similar means.</p>
1615 </div>
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625 <table class="params">
1626 <thead>
1627 <tr>
1628
1629 <th>Name</th>
1630
1631
1632 <th>Type</th>
1633
1634
1635
1636 <th class="last">Description</th>
1637 </tr>
1638 </thead>
1639
1640 <tbody>
1641
1642
1643 <tr>
1644
1645 <td class="name"><code>node</code></td>
1646
1647
1648 <td class="type">
1649
1650
1651 <span class="param-type">Node</span>
1652
1653
1654
1655 </td>
1656
1657
1658
1659 <td class="description last">
1660
1661 <p>The DOM <code>Node</code> instance to bind the class to.</p></td>
1662 </tr>
1663
1664
1665
1666 <tr>
1667
1668 <td class="name"><code>inst</code></td>
1669
1670
1671 <td class="type">
1672
1673
1674 <span class="param-type">Class</span>
1675
1676
1677
1678 </td>
1679
1680
1681
1682 <td class="description last">
1683
1684 <p>The Class instance to bind to the node.</p></td>
1685 </tr>
1686
1687
1688 </tbody>
1689 </table>
1690
1691
1692
1693 <dl class="details">
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715 </dl>
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725 <h5>Throws:</h5>
1726
1727
1728
1729 <dl>
1730 <dt>
1731 <div class="param-desc">
1732 <p>Throws a <code>TypeError</code> when the given instance argument isn't
1733 a valid Class instance.</p>
1734 </div>
1735 </dt>
1736 <dt>
1737 <dl>
1738 <dt>
1739 Type
1740 </dt>
1741 <dd>
1742
1743 <span class="param-type">TypeError</span>
1744
1745
1746 </dd>
1747 </dl>
1748 </dt>
1749 </dl>
1750
1751
1752
1753
1754
1755 <h5>Returns:</h5>
1756
1757
1758
1759 <table class="params">
1760 <thead>
1761 <tr>
1762
1763 <th>Type</th>
1764 <th class="last">Description</th>
1765 </tr>
1766 </thead>
1767 <tbody>
1768
1769 <tr>
1770
1771 <td class="type">
1772
1773 Class
1774
1775
1776 </td>
1777 <td class="description last">Returns the bound class instance.</td>
1778 </tr>
1779
1780 </tbody>
1781 </table>
1782
1783
1784
1785
1786 </dd>
1787
1788
1789
1790 <dt>
1791 <div class="nameContainer">
1792 <h4 class="name" id="callClassMethod">
1793
1794 callClassMethod<span class="signature">(node, method, params)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{*|null}</span>
1795 </h4>
1796
1797
1798 <div class="tag-source">
1799 <a href="luci.js.html">luci.js</a>, <a href="luci.js.html#line2690">line 2690</a>
1800 </div>
1801
1802 </div>
1803
1804
1805 </dt>
1806 <dd>
1807
1808
1809 <div class="description">
1810 <p>Finds a bound class instance on the given node itself or the
1811 first bound instance on its closest parent node and invokes
1812 the specified method name on the found class instance.</p>
1813 </div>
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823 <table class="params">
1824 <thead>
1825 <tr>
1826
1827 <th>Name</th>
1828
1829
1830 <th>Type</th>
1831
1832
1833
1834 <th class="last">Description</th>
1835 </tr>
1836 </thead>
1837
1838 <tbody>
1839
1840
1841 <tr>
1842
1843 <td class="name"><code>node</code></td>
1844
1845
1846 <td class="type">
1847
1848
1849 <span class="param-type">Node</span>
1850
1851
1852
1853 </td>
1854
1855
1856
1857 <td class="description last">
1858
1859
1860
1861
1862
1863
1864 <p>The DOM <code>Node</code> instance to start from.</p></td>
1865 </tr>
1866
1867
1868
1869 <tr>
1870
1871 <td class="name"><code>method</code></td>
1872
1873
1874 <td class="type">
1875
1876
1877 <span class="param-type">string</span>
1878
1879
1880
1881 </td>
1882
1883
1884
1885 <td class="description last">
1886
1887
1888
1889
1890
1891
1892 <p>The name of the method to invoke on the found class instance.</p></td>
1893 </tr>
1894
1895
1896
1897 <tr>
1898
1899 <td class="name"><code>params</code></td>
1900
1901
1902 <td class="type">
1903
1904
1905 <span class="param-type">*</span>
1906
1907
1908
1909 </td>
1910
1911
1912
1913 <td class="description last">
1914
1915
1916
1917
1918
1919 <span class="repeatable">repeatable</span>
1920
1921
1922 <p>Additional arguments to pass to the invoked method as-is.</p></td>
1923 </tr>
1924
1925
1926 </tbody>
1927 </table>
1928
1929
1930
1931 <dl class="details">
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953 </dl>
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965 <h5>Returns:</h5>
1966
1967
1968
1969 <table class="params">
1970 <thead>
1971 <tr>
1972
1973 <th>Type</th>
1974 <th class="last">Description</th>
1975 </tr>
1976 </thead>
1977 <tbody>
1978
1979 <tr>
1980
1981 <td class="type">
1982
1983 *
1984 |
1985
1986 null
1987
1988
1989 </td>
1990 <td class="description last">Returns the return value of the invoked method if a class
1991 instance and method has been found. Returns <code>null</code> if either
1992 no bound class instance could be found, or if the found
1993 instance didn't have the requested <code>method</code>.</td>
1994 </tr>
1995
1996 </tbody>
1997 </table>
1998
1999
2000
2001
2002 </dd>
2003
2004
2005
2006 <dt>
2007 <div class="nameContainer">
2008 <h4 class="name" id="content">
2009
2010 content<span class="signature">(node, <span class="optional">children</span>)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Node|null}</span>
2011 </h4>
2012
2013
2014 <div class="tag-source">
2015 <a href="luci.js.html">luci.js</a>, <a href="luci.js.html#line2354">line 2354</a>
2016 </div>
2017
2018 </div>
2019
2020
2021 </dt>
2022 <dd>
2023
2024
2025 <div class="description">
2026 <p>Replaces the content of the given node with the given children.</p>
2027 <p>This function first removes any children of the given DOM
2028 <code>Node</code> and then adds the given given children following the
2029 rules outlined below.</p>
2030 </div>
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040 <table class="params">
2041 <thead>
2042 <tr>
2043
2044 <th>Name</th>
2045
2046
2047 <th>Type</th>
2048
2049
2050
2051 <th class="last">Description</th>
2052 </tr>
2053 </thead>
2054
2055 <tbody>
2056
2057
2058 <tr>
2059
2060 <td class="name"><code>node</code></td>
2061
2062
2063 <td class="type">
2064
2065
2066 <span class="param-type">*</span>
2067
2068
2069
2070 </td>
2071
2072
2073
2074 <td class="description last">
2075
2076
2077
2078
2079
2080
2081 <p>The <code>Node</code> argument to replace the children of.</p></td>
2082 </tr>
2083
2084
2085
2086 <tr>
2087
2088 <td class="name"><code>children</code></td>
2089
2090
2091 <td class="type">
2092
2093
2094 <span class="param-type">*</span>
2095
2096
2097
2098 </td>
2099
2100
2101
2102 <td class="description last">
2103
2104
2105 <span class="optional">optional</span>
2106
2107
2108
2109
2110
2111 <p>The childrens to replace into the given node.</p>
2112 <p>When <code>children</code> is an array, then each item of the array
2113 will be either appended as child element or text node,
2114 depending on whether the item is a DOM <code>Node</code> instance or
2115 some other non-<code>null</code> value. Non-<code>Node</code>, non-<code>null</code> values
2116 will be converted to strings first before being passed as
2117 argument to <code>createTextNode()</code>.</p>
2118 <p>When <code>children</code> is a function, it will be invoked with
2119 the passed <code>node</code> argument as sole parameter and the <code>append</code>
2120 function will be invoked again, with the given <code>node</code> argument
2121 as first and the return value of the <code>children</code> function as
2122 second parameter.</p>
2123 <p>When <code>children</code> is is a DOM <code>Node</code> instance, it will be
2124 appended to the given <code>node</code>.</p>
2125 <p>When <code>children</code> is any other non-<code>null</code> value, it will be
2126 converted to a string and appened to the <code>innerHTML</code> property
2127 of the given <code>node</code>.</p></td>
2128 </tr>
2129
2130
2131 </tbody>
2132 </table>
2133
2134
2135
2136 <dl class="details">
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158 </dl>
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170 <h5>Returns:</h5>
2171
2172
2173
2174 <table class="params">
2175 <thead>
2176 <tr>
2177
2178 <th>Type</th>
2179 <th class="last">Description</th>
2180 </tr>
2181 </thead>
2182 <tbody>
2183
2184 <tr>
2185
2186 <td class="type">
2187
2188 Node
2189 |
2190
2191 null
2192
2193
2194 </td>
2195 <td class="description last">Returns the last children <code>Node</code> appended to the node or <code>null</code>
2196 if either the <code>node</code> argument was no valid DOM <code>node</code> or if the
2197 <code>children</code> was <code>null</code> or didn't result in further DOM nodes.</td>
2198 </tr>
2199
2200 </tbody>
2201 </table>
2202
2203
2204
2205
2206 </dd>
2207
2208
2209
2210 <dt>
2211 <div class="nameContainer">
2212 <h4 class="name" id="create">
2213
2214 create<span class="signature">(html, <span class="optional">attr</span>, <span class="optional">data</span>)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Node}</span>
2215 </h4>
2216
2217
2218 <div class="tag-source">
2219 <a href="luci.js.html">luci.js</a>, <a href="luci.js.html#line2480">line 2480</a>
2220 </div>
2221
2222 </div>
2223
2224
2225 </dt>
2226 <dd>
2227
2228
2229 <div class="description">
2230 <p>Creates a new DOM <code>Node</code> from the given <code>html</code>, <code>attr</code> and
2231 <code>data</code> parameters.</p>
2232 <p>This function has multiple signatures, it can be either invoked
2233 in the form <code>create(html[, attr[, data]])</code> or in the form
2234 <code>create(html[, data])</code>. The used variant is determined from the
2235 type of the second argument.</p>
2236 </div>
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246 <table class="params">
2247 <thead>
2248 <tr>
2249
2250 <th>Name</th>
2251
2252
2253 <th>Type</th>
2254
2255
2256
2257 <th class="last">Description</th>
2258 </tr>
2259 </thead>
2260
2261 <tbody>
2262
2263
2264 <tr>
2265
2266 <td class="name"><code>html</code></td>
2267
2268
2269 <td class="type">
2270
2271
2272 <span class="param-type">*</span>
2273
2274
2275
2276 </td>
2277
2278
2279
2280 <td class="description last">
2281
2282
2283
2284
2285
2286
2287 <p>Describes the node to create.</p>
2288 <p>When the value of <code>html</code> is of type array, a <code>DocumentFragment</code>
2289 node is created and each item of the array is first converted
2290 to a DOM <code>Node</code> by passing it through <code>create()</code> and then added
2291 as child to the fragment.</p>
2292 <p>When the value of <code>html</code> is a DOM <code>Node</code> instance, no new
2293 element will be created but the node will be used as-is.</p>
2294 <p>When the value of <code>html</code> is a string starting with <code>&lt;</code>, it will
2295 be passed to <code>dom.parse()</code> and the resulting value is used.</p>
2296 <p>When the value of <code>html</code> is any other string, it will be passed
2297 to <code>document.createElement()</code> for creating a new DOM <code>Node</code> of
2298 the given name.</p></td>
2299 </tr>
2300
2301
2302
2303 <tr>
2304
2305 <td class="name"><code>attr</code></td>
2306
2307
2308 <td class="type">
2309
2310
2311 <span class="param-type">Object.&lt;string, *></span>
2312
2313
2314
2315 </td>
2316
2317
2318
2319 <td class="description last">
2320
2321
2322 <span class="optional">optional</span>
2323
2324
2325
2326
2327
2328 <p>Specifies an Object of key, value pairs to set as attributes
2329 or event handlers on the created node. Refer to
2330 <a href="LuCI.dom.html#attr"><code>dom.attr()</code></a> for details.</p></td>
2331 </tr>
2332
2333
2334
2335 <tr>
2336
2337 <td class="name"><code>data</code></td>
2338
2339
2340 <td class="type">
2341
2342
2343 <span class="param-type">*</span>
2344
2345
2346
2347 </td>
2348
2349
2350
2351 <td class="description last">
2352
2353
2354 <span class="optional">optional</span>
2355
2356
2357
2358
2359
2360 <p>Specifies children to append to the newly created element.
2361 Refer to <a href="LuCI.dom.html#append"><code>dom.append()</code></a> for details.</p></td>
2362 </tr>
2363
2364
2365 </tbody>
2366 </table>
2367
2368
2369
2370 <dl class="details">
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392 </dl>
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402 <h5>Throws:</h5>
2403
2404
2405
2406 <dl>
2407 <dt>
2408 <div class="param-desc">
2409 <p>Throws an <code>InvalidCharacterError</code> when the given <code>html</code>
2410 argument contained malformed markup (such as not escaped
2411 <code>&amp;</code> characters in XHTML mode) or when the given node name
2412 in <code>html</code> contains characters which are not legal in DOM
2413 element names, such as spaces.</p>
2414 </div>
2415 </dt>
2416 <dt>
2417 <dl>
2418 <dt>
2419 Type
2420 </dt>
2421 <dd>
2422
2423 <span class="param-type">InvalidCharacterError</span>
2424
2425
2426 </dd>
2427 </dl>
2428 </dt>
2429 </dl>
2430
2431
2432
2433
2434
2435 <h5>Returns:</h5>
2436
2437
2438
2439 <table class="params">
2440 <thead>
2441 <tr>
2442
2443 <th>Type</th>
2444 <th class="last">Description</th>
2445 </tr>
2446 </thead>
2447 <tbody>
2448
2449 <tr>
2450
2451 <td class="type">
2452
2453 Node
2454
2455
2456 </td>
2457 <td class="description last">Returns the newly created <code>Node</code>.</td>
2458 </tr>
2459
2460 </tbody>
2461 </table>
2462
2463
2464
2465
2466 </dd>
2467
2468
2469
2470 <dt>
2471 <div class="nameContainer">
2472 <h4 class="name" id="data">
2473
2474 data<span class="signature">(node, <span class="optional">key</span>, <span class="optional">val</span>)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{*}</span>
2475 </h4>
2476
2477
2478 <div class="tag-source">
2479 <a href="luci.js.html">luci.js</a>, <a href="luci.js.html#line2556">line 2556</a>
2480 </div>
2481
2482 </div>
2483
2484
2485 </dt>
2486 <dd>
2487
2488
2489 <div class="description">
2490 <p>Attaches or detaches arbitrary data to and from a DOM <code>Node</code>.</p>
2491 <p>This function is useful to attach non-string values or runtime
2492 data that is not serializable to DOM nodes. To decouple data
2493 from the DOM, values are not added directly to nodes, but
2494 inserted into a registry instead which is then referenced by a
2495 string key stored as <code>data-idref</code> attribute in the node.</p>
2496 <p>This function has multiple signatures and is sensitive to the
2497 number of arguments passed to it.</p>
2498 <ul>
2499 <li><code>dom.data(node)</code> -
2500 Fetches all data associated with the given node.</li>
2501 <li><code>dom.data(node, key)</code> -
2502 Fetches a specific key associated with the given node.</li>
2503 <li><code>dom.data(node, key, val)</code> -
2504 Sets a specific key to the given value associated with the
2505 given node.</li>
2506 <li><code>dom.data(node, null)</code> -
2507 Clears any data associated with the node.</li>
2508 <li><code>dom.data(node, key, null)</code> -
2509 Clears the given key associated with the node.</li>
2510 </ul>
2511 </div>
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521 <table class="params">
2522 <thead>
2523 <tr>
2524
2525 <th>Name</th>
2526
2527
2528 <th>Type</th>
2529
2530
2531
2532 <th class="last">Description</th>
2533 </tr>
2534 </thead>
2535
2536 <tbody>
2537
2538
2539 <tr>
2540
2541 <td class="name"><code>node</code></td>
2542
2543
2544 <td class="type">
2545
2546
2547 <span class="param-type">Node</span>
2548
2549
2550
2551 </td>
2552
2553
2554
2555 <td class="description last">
2556
2557
2558
2559
2560
2561
2562 <p>The DOM <code>Node</code> instance to set or retrieve the data for.</p></td>
2563 </tr>
2564
2565
2566
2567 <tr>
2568
2569 <td class="name"><code>key</code></td>
2570
2571
2572 <td class="type">
2573
2574
2575 <span class="param-type">string</span>
2576 |
2577
2578 <span class="param-type">null</span>
2579
2580
2581
2582 </td>
2583
2584
2585
2586 <td class="description last">
2587
2588
2589 <span class="optional">optional</span>
2590
2591
2592
2593
2594
2595 <p>This is either a string specifying the key to retrieve, or
2596 <code>null</code> to unset the entire node data.</p></td>
2597 </tr>
2598
2599
2600
2601 <tr>
2602
2603 <td class="name"><code>val</code></td>
2604
2605
2606 <td class="type">
2607
2608
2609 <span class="param-type">*</span>
2610 |
2611
2612 <span class="param-type">null</span>
2613
2614
2615
2616 </td>
2617
2618
2619
2620 <td class="description last">
2621
2622
2623 <span class="optional">optional</span>
2624
2625
2626
2627
2628
2629 <p>This is either a non-<code>null</code> value to set for a given key or
2630 <code>null</code> to remove the given <code>key</code> from the specified node.</p></td>
2631 </tr>
2632
2633
2634 </tbody>
2635 </table>
2636
2637
2638
2639 <dl class="details">
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661 </dl>
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673 <h5>Returns:</h5>
2674
2675
2676
2677 <table class="params">
2678 <thead>
2679 <tr>
2680
2681 <th>Type</th>
2682 <th class="last">Description</th>
2683 </tr>
2684 </thead>
2685 <tbody>
2686
2687 <tr>
2688
2689 <td class="type">
2690
2691 *
2692
2693
2694 </td>
2695 <td class="description last">Returns the get or set value, or <code>null</code> when no value could
2696 be found.</td>
2697 </tr>
2698
2699 </tbody>
2700 </table>
2701
2702
2703
2704
2705 </dd>
2706
2707
2708
2709 <dt>
2710 <div class="nameContainer">
2711 <h4 class="name" id="elem">
2712
2713 elem<span class="signature">(e)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{boolean}</span>
2714 </h4>
2715
2716
2717 <div class="tag-source">
2718 <a href="luci.js.html">luci.js</a>, <a href="luci.js.html#line2150">line 2150</a>
2719 </div>
2720
2721 </div>
2722
2723
2724 </dt>
2725 <dd>
2726
2727
2728 <div class="description">
2729 <p>Tests whether the given argument is a valid DOM <code>Node</code>.</p>
2730 </div>
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740 <table class="params">
2741 <thead>
2742 <tr>
2743
2744 <th>Name</th>
2745
2746
2747 <th>Type</th>
2748
2749
2750
2751 <th class="last">Description</th>
2752 </tr>
2753 </thead>
2754
2755 <tbody>
2756
2757
2758 <tr>
2759
2760 <td class="name"><code>e</code></td>
2761
2762
2763 <td class="type">
2764
2765
2766 <span class="param-type">*</span>
2767
2768
2769
2770 </td>
2771
2772
2773
2774 <td class="description last">
2775
2776 <p>The value to test.</p></td>
2777 </tr>
2778
2779
2780 </tbody>
2781 </table>
2782
2783
2784
2785 <dl class="details">
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807 </dl>
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819 <h5>Returns:</h5>
2820
2821
2822
2823 <table class="params">
2824 <thead>
2825 <tr>
2826
2827 <th>Type</th>
2828 <th class="last">Description</th>
2829 </tr>
2830 </thead>
2831 <tbody>
2832
2833 <tr>
2834
2835 <td class="type">
2836
2837 boolean
2838
2839
2840 </td>
2841 <td class="description last">Returns <code>true</code> if the value is a DOM <code>Node</code>, else <code>false</code>.</td>
2842 </tr>
2843
2844 </tbody>
2845 </table>
2846
2847
2848
2849
2850 </dd>
2851
2852
2853
2854 <dt>
2855 <div class="nameContainer">
2856 <h4 class="name" id="findClassInstance">
2857
2858 findClassInstance<span class="signature">(node)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Class|null}</span>
2859 </h4>
2860
2861
2862 <div class="tag-source">
2863 <a href="luci.js.html">luci.js</a>, <a href="luci.js.html#line2656">line 2656</a>
2864 </div>
2865
2866 </div>
2867
2868
2869 </dt>
2870 <dd>
2871
2872
2873 <div class="description">
2874 <p>Finds a bound class instance on the given node itself or the
2875 first bound instance on its closest parent node.</p>
2876 </div>
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886 <table class="params">
2887 <thead>
2888 <tr>
2889
2890 <th>Name</th>
2891
2892
2893 <th>Type</th>
2894
2895
2896
2897 <th class="last">Description</th>
2898 </tr>
2899 </thead>
2900
2901 <tbody>
2902
2903
2904 <tr>
2905
2906 <td class="name"><code>node</code></td>
2907
2908
2909 <td class="type">
2910
2911
2912 <span class="param-type">Node</span>
2913
2914
2915
2916 </td>
2917
2918
2919
2920 <td class="description last">
2921
2922 <p>The DOM <code>Node</code> instance to start from.</p></td>
2923 </tr>
2924
2925
2926 </tbody>
2927 </table>
2928
2929
2930
2931 <dl class="details">
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953 </dl>
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965 <h5>Returns:</h5>
2966
2967
2968
2969 <table class="params">
2970 <thead>
2971 <tr>
2972
2973 <th>Type</th>
2974 <th class="last">Description</th>
2975 </tr>
2976 </thead>
2977 <tbody>
2978
2979 <tr>
2980
2981 <td class="type">
2982
2983 Class
2984 |
2985
2986 null
2987
2988
2989 </td>
2990 <td class="description last">Returns the founds class instance if any or <code>null</code> if no bound
2991 class could be found on the node itself or any of its parents.</td>
2992 </tr>
2993
2994 </tbody>
2995 </table>
2996
2997
2998
2999
3000 </dd>
3001
3002
3003
3004 <dt>
3005 <div class="nameContainer">
3006 <h4 class="name" id="isEmpty">
3007
3008 isEmpty<span class="signature">(node, <span class="optional">ignoreFn</span>)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{boolean}</span>
3009 </h4>
3010
3011
3012 <div class="tag-source">
3013 <a href="luci.js.html">luci.js</a>, <a href="luci.js.html#line2736">line 2736</a>
3014 </div>
3015
3016 </div>
3017
3018
3019 </dt>
3020 <dd>
3021
3022
3023 <div class="description">
3024 <p>Tests whether a given DOM <code>Node</code> instance is empty or appears
3025 empty.</p>
3026 <p>Any element child nodes which have the CSS class <code>hidden</code> set
3027 or for which the optionally passed <code>ignoreFn</code> callback function
3028 returns <code>false</code> are ignored.</p>
3029 </div>
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039 <table class="params">
3040 <thead>
3041 <tr>
3042
3043 <th>Name</th>
3044
3045
3046 <th>Type</th>
3047
3048
3049
3050 <th class="last">Description</th>
3051 </tr>
3052 </thead>
3053
3054 <tbody>
3055
3056
3057 <tr>
3058
3059 <td class="name"><code>node</code></td>
3060
3061
3062 <td class="type">
3063
3064
3065 <span class="param-type">Node</span>
3066
3067
3068
3069 </td>
3070
3071
3072
3073 <td class="description last">
3074
3075
3076
3077
3078
3079
3080 <p>The DOM <code>Node</code> instance to test.</p></td>
3081 </tr>
3082
3083
3084
3085 <tr>
3086
3087 <td class="name"><code>ignoreFn</code></td>
3088
3089
3090 <td class="type">
3091
3092
3093 <span class="param-type"><a href="LuCI.dom.html#~ignoreCallbackFn">LuCI.dom~ignoreCallbackFn</a></span>
3094
3095
3096
3097 </td>
3098
3099
3100
3101 <td class="description last">
3102
3103
3104 <span class="optional">optional</span>
3105
3106
3107
3108
3109
3110 <p>Specifies an optional function which is invoked for each child
3111 node to decide whether the child node should be ignored or not.</p></td>
3112 </tr>
3113
3114
3115 </tbody>
3116 </table>
3117
3118
3119
3120 <dl class="details">
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142 </dl>
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154 <h5>Returns:</h5>
3155
3156
3157
3158 <table class="params">
3159 <thead>
3160 <tr>
3161
3162 <th>Type</th>
3163 <th class="last">Description</th>
3164 </tr>
3165 </thead>
3166 <tbody>
3167
3168 <tr>
3169
3170 <td class="type">
3171
3172 boolean
3173
3174
3175 </td>
3176 <td class="description last">Returns <code>true</code> if the node does not have any children or if
3177 any children node either has a <code>hidden</code> CSS class or a <code>false</code>
3178 result when testing it using the given <code>ignoreFn</code>.</td>
3179 </tr>
3180
3181 </tbody>
3182 </table>
3183
3184
3185
3186
3187 </dd>
3188
3189
3190
3191 <dt>
3192 <div class="nameContainer">
3193 <h4 class="name" id="matches">
3194
3195 matches<span class="signature">(node, <span class="optional">selector</span>)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{boolean}</span>
3196 </h4>
3197
3198
3199 <div class="tag-source">
3200 <a href="luci.js.html">luci.js</a>, <a href="luci.js.html#line2211">line 2211</a>
3201 </div>
3202
3203 </div>
3204
3205
3206 </dt>
3207 <dd>
3208
3209
3210 <div class="description">
3211 <p>Tests whether a given <code>Node</code> matches the given query selector.</p>
3212 <p>This function is a convenience wrapper around the standard
3213 <code>Node.matches(&quot;selector&quot;)</code> function with the added benefit that
3214 the <code>node</code> argument may be a non-<code>Node</code> value, in which case
3215 this function simply returns <code>false</code>.</p>
3216 </div>
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226 <table class="params">
3227 <thead>
3228 <tr>
3229
3230 <th>Name</th>
3231
3232
3233 <th>Type</th>
3234
3235
3236
3237 <th class="last">Description</th>
3238 </tr>
3239 </thead>
3240
3241 <tbody>
3242
3243
3244 <tr>
3245
3246 <td class="name"><code>node</code></td>
3247
3248
3249 <td class="type">
3250
3251
3252 <span class="param-type">*</span>
3253
3254
3255
3256 </td>
3257
3258
3259
3260 <td class="description last">
3261
3262
3263
3264
3265
3266
3267 <p>The <code>Node</code> argument to test the selector against.</p></td>
3268 </tr>
3269
3270
3271
3272 <tr>
3273
3274 <td class="name"><code>selector</code></td>
3275
3276
3277 <td class="type">
3278
3279
3280 <span class="param-type">string</span>
3281
3282
3283
3284 </td>
3285
3286
3287
3288 <td class="description last">
3289
3290
3291 <span class="optional">optional</span>
3292
3293
3294
3295
3296
3297 <p>The query selector expression to test against the given node.</p></td>
3298 </tr>
3299
3300
3301 </tbody>
3302 </table>
3303
3304
3305
3306 <dl class="details">
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328 </dl>
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340 <h5>Returns:</h5>
3341
3342
3343
3344 <table class="params">
3345 <thead>
3346 <tr>
3347
3348 <th>Type</th>
3349 <th class="last">Description</th>
3350 </tr>
3351 </thead>
3352 <tbody>
3353
3354 <tr>
3355
3356 <td class="type">
3357
3358 boolean
3359
3360
3361 </td>
3362 <td class="description last">Returns <code>true</code> if the given node matches the specified selector
3363 or <code>false</code> when the node argument is no valid DOM <code>Node</code> or the
3364 selector didn't match.</td>
3365 </tr>
3366
3367 </tbody>
3368 </table>
3369
3370
3371
3372
3373 </dd>
3374
3375
3376
3377 <dt>
3378 <div class="nameContainer">
3379 <h4 class="name" id="parent">
3380
3381 parent<span class="signature">(node, <span class="optional">selector</span>)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Node|null}</span>
3382 </h4>
3383
3384
3385 <div class="tag-source">
3386 <a href="luci.js.html">luci.js</a>, <a href="luci.js.html#line2238">line 2238</a>
3387 </div>
3388
3389 </div>
3390
3391
3392 </dt>
3393 <dd>
3394
3395
3396 <div class="description">
3397 <p>Returns the closest parent node that matches the given query
3398 selector expression.</p>
3399 <p>This function is a convenience wrapper around the standard
3400 <code>Node.closest(&quot;selector&quot;)</code> function with the added benefit that
3401 the <code>node</code> argument may be a non-<code>Node</code> value, in which case
3402 this function simply returns <code>null</code>.</p>
3403 </div>
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413 <table class="params">
3414 <thead>
3415 <tr>
3416
3417 <th>Name</th>
3418
3419
3420 <th>Type</th>
3421
3422
3423
3424 <th class="last">Description</th>
3425 </tr>
3426 </thead>
3427
3428 <tbody>
3429
3430
3431 <tr>
3432
3433 <td class="name"><code>node</code></td>
3434
3435
3436 <td class="type">
3437
3438
3439 <span class="param-type">*</span>
3440
3441
3442
3443 </td>
3444
3445
3446
3447 <td class="description last">
3448
3449
3450
3451
3452
3453
3454 <p>The <code>Node</code> argument to find the closest parent for.</p></td>
3455 </tr>
3456
3457
3458
3459 <tr>
3460
3461 <td class="name"><code>selector</code></td>
3462
3463
3464 <td class="type">
3465
3466
3467 <span class="param-type">string</span>
3468
3469
3470
3471 </td>
3472
3473
3474
3475 <td class="description last">
3476
3477
3478 <span class="optional">optional</span>
3479
3480
3481
3482
3483
3484 <p>The query selector expression to test against each parent.</p></td>
3485 </tr>
3486
3487
3488 </tbody>
3489 </table>
3490
3491
3492
3493 <dl class="details">
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515 </dl>
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527 <h5>Returns:</h5>
3528
3529
3530
3531 <table class="params">
3532 <thead>
3533 <tr>
3534
3535 <th>Type</th>
3536 <th class="last">Description</th>
3537 </tr>
3538 </thead>
3539 <tbody>
3540
3541 <tr>
3542
3543 <td class="type">
3544
3545 Node
3546 |
3547
3548 null
3549
3550
3551 </td>
3552 <td class="description last">Returns the closest parent node matching the selector or
3553 <code>null</code> when the node argument is no valid DOM <code>Node</code> or the
3554 selector didn't match any parent.</td>
3555 </tr>
3556
3557 </tbody>
3558 </table>
3559
3560
3561
3562
3563 </dd>
3564
3565
3566
3567 <dt>
3568 <div class="nameContainer">
3569 <h4 class="name" id="parse">
3570
3571 parse<span class="signature">(s)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Node}</span>
3572 </h4>
3573
3574
3575 <div class="tag-source">
3576 <a href="luci.js.html">luci.js</a>, <a href="luci.js.html#line2169">line 2169</a>
3577 </div>
3578
3579 </div>
3580
3581
3582 </dt>
3583 <dd>
3584
3585
3586 <div class="description">
3587 <p>Parses a given string as HTML and returns the first child node.</p>
3588 </div>
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598 <table class="params">
3599 <thead>
3600 <tr>
3601
3602 <th>Name</th>
3603
3604
3605 <th>Type</th>
3606
3607
3608
3609 <th class="last">Description</th>
3610 </tr>
3611 </thead>
3612
3613 <tbody>
3614
3615
3616 <tr>
3617
3618 <td class="name"><code>s</code></td>
3619
3620
3621 <td class="type">
3622
3623
3624 <span class="param-type">string</span>
3625
3626
3627
3628 </td>
3629
3630
3631
3632 <td class="description last">
3633
3634 <p>A string containing an HTML fragment to parse. Note that only
3635 the first result of the resulting structure is returned, so an
3636 input value of <code>&lt;div&gt;foo&lt;/div&gt; &lt;div&gt;bar&lt;/div&gt;</code> will only return
3637 the first <code>div</code> element node.</p></td>
3638 </tr>
3639
3640
3641 </tbody>
3642 </table>
3643
3644
3645
3646 <dl class="details">
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668 </dl>
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680 <h5>Returns:</h5>
3681
3682
3683
3684 <table class="params">
3685 <thead>
3686 <tr>
3687
3688 <th>Type</th>
3689 <th class="last">Description</th>
3690 </tr>
3691 </thead>
3692 <tbody>
3693
3694 <tr>
3695
3696 <td class="type">
3697
3698 Node
3699
3700
3701 </td>
3702 <td class="description last">Returns the first DOM <code>Node</code> extracted from the HTML fragment or
3703 <code>null</code> on parsing failures or if no element could be found.</td>
3704 </tr>
3705
3706 </tbody>
3707 </table>
3708
3709
3710
3711
3712 </dd>
3713
3714 </dl>
3715
3716
3717
3718 <h3 class="subsection-title">Type Definitions</h3>
3719
3720 <dl>
3721
3722 <dt>
3723 <div class="nameContainer">
3724 <h4 class="name" id="~ignoreCallbackFn">
3725
3726 ignoreCallbackFn<span class="signature">(node)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{boolean}</span>
3727 </h4>
3728
3729
3730 <div class="tag-source">
3731 <a href="luci.js.html">luci.js</a>, <a href="luci.js.html#line2699">line 2699</a>
3732 </div>
3733
3734 </div>
3735
3736
3737 </dt>
3738 <dd>
3739
3740
3741 <div class="description">
3742 <p>The ignore callback function is invoked by <code>isEmpty()</code> for each
3743 child node to decide whether to ignore a child node or not.</p>
3744 <p>When this function returns <code>false</code>, the node passed to it is
3745 ignored, else not.</p>
3746 </div>
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756 <table class="params">
3757 <thead>
3758 <tr>
3759
3760 <th>Name</th>
3761
3762
3763 <th>Type</th>
3764
3765
3766
3767 <th class="last">Description</th>
3768 </tr>
3769 </thead>
3770
3771 <tbody>
3772
3773
3774 <tr>
3775
3776 <td class="name"><code>node</code></td>
3777
3778
3779 <td class="type">
3780
3781
3782 <span class="param-type">Node</span>
3783
3784
3785
3786 </td>
3787
3788
3789
3790 <td class="description last">
3791
3792 <p>The child node to test.</p></td>
3793 </tr>
3794
3795
3796 </tbody>
3797 </table>
3798
3799
3800
3801 <dl class="details">
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823 </dl>
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835 <h5>Returns:</h5>
3836
3837
3838
3839 <table class="params">
3840 <thead>
3841 <tr>
3842
3843 <th>Type</th>
3844 <th class="last">Description</th>
3845 </tr>
3846 </thead>
3847 <tbody>
3848
3849 <tr>
3850
3851 <td class="type">
3852
3853 boolean
3854
3855
3856 </td>
3857 <td class="description last">Boolean indicating whether to ignore the node or not.</td>
3858 </tr>
3859
3860 </tbody>
3861 </table>
3862
3863
3864
3865
3866 </dd>
3867
3868 </dl>
3869
3870
3871
3872
3873
3874 </article>
3875
3876 </section>
3877
3878
3879
3880
3881
3882
3883
3884 <footer>
3885 Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Wed Feb 12 2020 11:56:59 GMT+0100 (Central European Standard Time)
3886 </footer>
3887 </div>
3888 </div>
3889 <script>prettyPrint();</script>
3890 <script src="scripts/jaguar.js"></script>
3891 </body>
3892 </html>