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