5 <title>Source: luci.js
</title>
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>
12 <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
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">
20 var config = {
"monospaceLinks":true,
"cleverLinks":true,
"default":{
"outputSourceFiles":true}};
27 <div id=
"wrap" class=
"clearfix">
29 <div class=
"navigation">
30 <h3 class=
"applicationName"><a href=
"index.html"></a></h3>
33 <input id=
"search" type=
"text" class=
"form-control input-sm" placeholder=
"Search Documentations">
37 <li class=
"item" data-name=
"LuCI">
39 <a href=
"LuCI.html">LuCI
</a>
42 <ul class=
"members itemMembers">
44 <span class=
"subtitle">Members
</span>
46 <li data-name=
"LuCI#Class"><a href=
"LuCI.html#Class">Class
</a></li>
48 <li data-name=
"LuCI#dom"><a href=
"LuCI.html#dom">dom
</a></li>
50 <li data-name=
"LuCI#env"><a href=
"LuCI.html#env">env
</a></li>
52 <li data-name=
"LuCI#Poll"><a href=
"LuCI.html#Poll">Poll
</a></li>
54 <li data-name=
"LuCI#Request"><a href=
"LuCI.html#Request">Request
</a></li>
56 <li data-name=
"LuCI#view"><a href=
"LuCI.html#view">view
</a></li>
59 <ul class=
"typedefs itemMembers">
61 <span class=
"subtitle">Typedefs
</span>
63 <li data-name=
"LuCI.requestCallbackFn"><a href=
"LuCI.html#.requestCallbackFn">requestCallbackFn
</a></li>
66 <ul class=
"typedefs itemMembers">
69 <ul class=
"methods itemMembers">
71 <span class=
"subtitle">Methods
</span>
73 <li data-name=
"LuCI#bind"><a href=
"LuCI.html#bind">bind
</a></li>
75 <li data-name=
"LuCI#error"><a href=
"LuCI.html#error">error
</a></li>
77 <li data-name=
"LuCI#get"><a href=
"LuCI.html#get">get
</a></li>
79 <li data-name=
"LuCI#halt"><a href=
"LuCI.html#halt">halt
</a></li>
81 <li data-name=
"LuCI#hasSystemFeature"><a href=
"LuCI.html#hasSystemFeature">hasSystemFeature
</a></li>
83 <li data-name=
"LuCI#isObject"><a href=
"LuCI.html#isObject">isObject
</a></li>
85 <li data-name=
"LuCI#location"><a href=
"LuCI.html#location">location
</a></li>
87 <li data-name=
"LuCI#media"><a href=
"LuCI.html#media">media
</a></li>
89 <li data-name=
"LuCI#path"><a href=
"LuCI.html#path">path
</a></li>
91 <li data-name=
"LuCI#poll"><a href=
"LuCI.html#poll">poll
</a></li>
93 <li data-name=
"LuCI#post"><a href=
"LuCI.html#post">post
</a></li>
95 <li data-name=
"LuCI#raise"><a href=
"LuCI.html#raise">raise
</a></li>
97 <li data-name=
"LuCI#require"><a href=
"LuCI.html#require">require
</a></li>
99 <li data-name=
"LuCI#resolveDefault"><a href=
"LuCI.html#resolveDefault">resolveDefault
</a></li>
101 <li data-name=
"LuCI#resource"><a href=
"LuCI.html#resource">resource
</a></li>
103 <li data-name=
"LuCI#run"><a href=
"LuCI.html#run">run
</a></li>
105 <li data-name=
"LuCI#sortedKeys"><a href=
"LuCI.html#sortedKeys">sortedKeys
</a></li>
107 <li data-name=
"LuCI#stop"><a href=
"LuCI.html#stop">stop
</a></li>
109 <li data-name=
"LuCI#toArray"><a href=
"LuCI.html#toArray">toArray
</a></li>
111 <li data-name=
"LuCI#url"><a href=
"LuCI.html#url">url
</a></li>
114 <ul class=
"events itemMembers">
119 <li class=
"item" data-name=
"LuCI.baseclass">
121 <a href=
"LuCI.baseclass.html">LuCI.baseclass
</a>
124 <ul class=
"members itemMembers">
127 <ul class=
"typedefs itemMembers">
130 <ul class=
"typedefs itemMembers">
133 <ul class=
"methods itemMembers">
135 <span class=
"subtitle">Methods
</span>
137 <li data-name=
"LuCI.baseclass.extend"><a href=
"LuCI.baseclass.html#.extend">extend
</a></li>
139 <li data-name=
"LuCI.baseclass.instantiate"><a href=
"LuCI.baseclass.html#.instantiate">instantiate
</a></li>
141 <li data-name=
"LuCI.baseclass.isSubclass"><a href=
"LuCI.baseclass.html#.isSubclass">isSubclass
</a></li>
143 <li data-name=
"LuCI.baseclass.singleton"><a href=
"LuCI.baseclass.html#.singleton">singleton
</a></li>
145 <li data-name=
"LuCI.baseclass#super"><a href=
"LuCI.baseclass.html#super">super
</a></li>
147 <li data-name=
"LuCI.baseclass#varargs"><a href=
"LuCI.baseclass.html#varargs">varargs
</a></li>
150 <ul class=
"events itemMembers">
155 <li class=
"item" data-name=
"LuCI.dom">
157 <a href=
"LuCI.dom.html">LuCI.dom
</a>
160 <ul class=
"members itemMembers">
163 <ul class=
"typedefs itemMembers">
165 <span class=
"subtitle">Typedefs
</span>
167 <li data-name=
"LuCI.dom~ignoreCallbackFn"><a href=
"LuCI.dom.html#~ignoreCallbackFn">ignoreCallbackFn
</a></li>
170 <ul class=
"typedefs itemMembers">
173 <ul class=
"methods itemMembers">
175 <span class=
"subtitle">Methods
</span>
177 <li data-name=
"LuCI.dom#append"><a href=
"LuCI.dom.html#append">append
</a></li>
179 <li data-name=
"LuCI.dom#attr"><a href=
"LuCI.dom.html#attr">attr
</a></li>
181 <li data-name=
"LuCI.dom#bindClassInstance"><a href=
"LuCI.dom.html#bindClassInstance">bindClassInstance
</a></li>
183 <li data-name=
"LuCI.dom#callClassMethod"><a href=
"LuCI.dom.html#callClassMethod">callClassMethod
</a></li>
185 <li data-name=
"LuCI.dom#content"><a href=
"LuCI.dom.html#content">content
</a></li>
187 <li data-name=
"LuCI.dom#create"><a href=
"LuCI.dom.html#create">create
</a></li>
189 <li data-name=
"LuCI.dom#data"><a href=
"LuCI.dom.html#data">data
</a></li>
191 <li data-name=
"LuCI.dom#elem"><a href=
"LuCI.dom.html#elem">elem
</a></li>
193 <li data-name=
"LuCI.dom#findClassInstance"><a href=
"LuCI.dom.html#findClassInstance">findClassInstance
</a></li>
195 <li data-name=
"LuCI.dom#isEmpty"><a href=
"LuCI.dom.html#isEmpty">isEmpty
</a></li>
197 <li data-name=
"LuCI.dom#matches"><a href=
"LuCI.dom.html#matches">matches
</a></li>
199 <li data-name=
"LuCI.dom#parent"><a href=
"LuCI.dom.html#parent">parent
</a></li>
201 <li data-name=
"LuCI.dom#parse"><a href=
"LuCI.dom.html#parse">parse
</a></li>
204 <ul class=
"events itemMembers">
209 <li class=
"item" data-name=
"LuCI.form">
211 <a href=
"LuCI.form.html">LuCI.form
</a>
214 <ul class=
"members itemMembers">
217 <ul class=
"typedefs itemMembers">
220 <ul class=
"typedefs itemMembers">
223 <ul class=
"methods itemMembers">
226 <ul class=
"events itemMembers">
231 <li class=
"item" data-name=
"LuCI.form.AbstractElement">
233 <a href=
"LuCI.form.AbstractElement.html">LuCI.form.AbstractElement
</a>
236 <ul class=
"members itemMembers">
239 <ul class=
"typedefs itemMembers">
242 <ul class=
"typedefs itemMembers">
245 <ul class=
"methods itemMembers">
247 <span class=
"subtitle">Methods
</span>
249 <li data-name=
"LuCI.form.AbstractElement#append"><a href=
"LuCI.form.AbstractElement.html#append">append
</a></li>
251 <li data-name=
"LuCI.form.AbstractElement#parse"><a href=
"LuCI.form.AbstractElement.html#parse">parse
</a></li>
253 <li data-name=
"LuCI.form.AbstractElement#render"><a href=
"LuCI.form.AbstractElement.html#render">render
</a></li>
255 <li data-name=
"LuCI.form.AbstractElement#stripTags"><a href=
"LuCI.form.AbstractElement.html#stripTags">stripTags
</a></li>
257 <li data-name=
"LuCI.form.AbstractElement#titleFn"><a href=
"LuCI.form.AbstractElement.html#titleFn">titleFn
</a></li>
260 <ul class=
"events itemMembers">
265 <li class=
"item" data-name=
"LuCI.form.AbstractSection">
267 <a href=
"LuCI.form.AbstractSection.html">LuCI.form.AbstractSection
</a>
270 <ul class=
"members itemMembers">
272 <span class=
"subtitle">Members
</span>
274 <li data-name=
"LuCI.form.AbstractSection##parentoption"><a href=
"LuCI.form.AbstractSection.html#parentoption">parentoption
</a></li>
277 <ul class=
"typedefs itemMembers">
280 <ul class=
"typedefs itemMembers">
283 <ul class=
"methods itemMembers">
285 <span class=
"subtitle">Methods
</span>
287 <li data-name=
"LuCI.form.AbstractSection#append"><a href=
"LuCI.form.AbstractSection.html#append">append
</a></li>
289 <li data-name=
"LuCI.form.AbstractSection#cfgsections"><a href=
"LuCI.form.AbstractSection.html#cfgsections">cfgsections
</a></li>
291 <li data-name=
"LuCI.form.AbstractSection#filter"><a href=
"LuCI.form.AbstractSection.html#filter">filter
</a></li>
293 <li data-name=
"LuCI.form.AbstractSection#load"><a href=
"LuCI.form.AbstractSection.html#load">load
</a></li>
295 <li data-name=
"LuCI.form.AbstractSection#option"><a href=
"LuCI.form.AbstractSection.html#option">option
</a></li>
297 <li data-name=
"LuCI.form.AbstractSection#parse"><a href=
"LuCI.form.AbstractSection.html#parse">parse
</a></li>
299 <li data-name=
"LuCI.form.AbstractSection#render"><a href=
"LuCI.form.AbstractSection.html#render">render
</a></li>
301 <li data-name=
"LuCI.form.AbstractSection#stripTags"><a href=
"LuCI.form.AbstractSection.html#stripTags">stripTags
</a></li>
303 <li data-name=
"LuCI.form.AbstractSection#tab"><a href=
"LuCI.form.AbstractSection.html#tab">tab
</a></li>
305 <li data-name=
"LuCI.form.AbstractSection#taboption"><a href=
"LuCI.form.AbstractSection.html#taboption">taboption
</a></li>
307 <li data-name=
"LuCI.form.AbstractSection#titleFn"><a href=
"LuCI.form.AbstractSection.html#titleFn">titleFn
</a></li>
310 <ul class=
"events itemMembers">
315 <li class=
"item" data-name=
"LuCI.form.AbstractValue">
317 <a href=
"LuCI.form.AbstractValue.html">LuCI.form.AbstractValue
</a>
320 <ul class=
"members itemMembers">
322 <span class=
"subtitle">Members
</span>
324 <li data-name=
"LuCI.form.AbstractValue##datatype"><a href=
"LuCI.form.AbstractValue.html#datatype">datatype
</a></li>
326 <li data-name=
"LuCI.form.AbstractValue##default"><a href=
"LuCI.form.AbstractValue.html#default">default
</a></li>
328 <li data-name=
"LuCI.form.AbstractValue##editable"><a href=
"LuCI.form.AbstractValue.html#editable">editable
</a></li>
330 <li data-name=
"LuCI.form.AbstractValue##modalonly"><a href=
"LuCI.form.AbstractValue.html#modalonly">modalonly
</a></li>
332 <li data-name=
"LuCI.form.AbstractValue##optional"><a href=
"LuCI.form.AbstractValue.html#optional">optional
</a></li>
334 <li data-name=
"LuCI.form.AbstractValue##rmempty"><a href=
"LuCI.form.AbstractValue.html#rmempty">rmempty
</a></li>
336 <li data-name=
"LuCI.form.AbstractValue##uciconfig"><a href=
"LuCI.form.AbstractValue.html#uciconfig">uciconfig
</a></li>
338 <li data-name=
"LuCI.form.AbstractValue##ucioption"><a href=
"LuCI.form.AbstractValue.html#ucioption">ucioption
</a></li>
340 <li data-name=
"LuCI.form.AbstractValue##ucisection"><a href=
"LuCI.form.AbstractValue.html#ucisection">ucisection
</a></li>
342 <li data-name=
"LuCI.form.AbstractValue##validate"><a href=
"LuCI.form.AbstractValue.html#validate">validate
</a></li>
344 <li data-name=
"LuCI.form.AbstractValue##width"><a href=
"LuCI.form.AbstractValue.html#width">width
</a></li>
347 <ul class=
"typedefs itemMembers">
350 <ul class=
"typedefs itemMembers">
353 <ul class=
"methods itemMembers">
355 <span class=
"subtitle">Methods
</span>
357 <li data-name=
"LuCI.form.AbstractValue#append"><a href=
"LuCI.form.AbstractValue.html#append">append
</a></li>
359 <li data-name=
"LuCI.form.AbstractValue#cbid"><a href=
"LuCI.form.AbstractValue.html#cbid">cbid
</a></li>
361 <li data-name=
"LuCI.form.AbstractValue#cfgvalue"><a href=
"LuCI.form.AbstractValue.html#cfgvalue">cfgvalue
</a></li>
363 <li data-name=
"LuCI.form.AbstractValue#depends"><a href=
"LuCI.form.AbstractValue.html#depends">depends
</a></li>
365 <li data-name=
"LuCI.form.AbstractValue#formvalue"><a href=
"LuCI.form.AbstractValue.html#formvalue">formvalue
</a></li>
367 <li data-name=
"LuCI.form.AbstractValue#getUIElement"><a href=
"LuCI.form.AbstractValue.html#getUIElement">getUIElement
</a></li>
369 <li data-name=
"LuCI.form.AbstractValue#isActive"><a href=
"LuCI.form.AbstractValue.html#isActive">isActive
</a></li>
371 <li data-name=
"LuCI.form.AbstractValue#isValid"><a href=
"LuCI.form.AbstractValue.html#isValid">isValid
</a></li>
373 <li data-name=
"LuCI.form.AbstractValue#load"><a href=
"LuCI.form.AbstractValue.html#load">load
</a></li>
375 <li data-name=
"LuCI.form.AbstractValue#parse"><a href=
"LuCI.form.AbstractValue.html#parse">parse
</a></li>
377 <li data-name=
"LuCI.form.AbstractValue#remove"><a href=
"LuCI.form.AbstractValue.html#remove">remove
</a></li>
379 <li data-name=
"LuCI.form.AbstractValue#render"><a href=
"LuCI.form.AbstractValue.html#render">render
</a></li>
381 <li data-name=
"LuCI.form.AbstractValue#stripTags"><a href=
"LuCI.form.AbstractValue.html#stripTags">stripTags
</a></li>
383 <li data-name=
"LuCI.form.AbstractValue#textvalue"><a href=
"LuCI.form.AbstractValue.html#textvalue">textvalue
</a></li>
385 <li data-name=
"LuCI.form.AbstractValue#titleFn"><a href=
"LuCI.form.AbstractValue.html#titleFn">titleFn
</a></li>
387 <li data-name=
"LuCI.form.AbstractValue#validate"><a href=
"LuCI.form.AbstractValue.html#validate">validate
</a></li>
389 <li data-name=
"LuCI.form.AbstractValue#write"><a href=
"LuCI.form.AbstractValue.html#write">write
</a></li>
392 <ul class=
"events itemMembers">
397 <li class=
"item" data-name=
"LuCI.form.ButtonValue">
399 <a href=
"LuCI.form.ButtonValue.html">LuCI.form.ButtonValue
</a>
402 <ul class=
"members itemMembers">
404 <span class=
"subtitle">Members
</span>
406 <li data-name=
"LuCI.form.ButtonValue##inputstyle"><a href=
"LuCI.form.ButtonValue.html#inputstyle">inputstyle
</a></li>
408 <li data-name=
"LuCI.form.ButtonValue##inputtitle"><a href=
"LuCI.form.ButtonValue.html#inputtitle">inputtitle
</a></li>
410 <li data-name=
"LuCI.form.ButtonValue##onclick"><a href=
"LuCI.form.ButtonValue.html#onclick">onclick
</a></li>
412 <li data-name=
"LuCI.form.ButtonValue#datatype"><a href=
"LuCI.form.ButtonValue.html#datatype">datatype
</a></li>
414 <li data-name=
"LuCI.form.ButtonValue#default"><a href=
"LuCI.form.ButtonValue.html#default">default
</a></li>
416 <li data-name=
"LuCI.form.ButtonValue#editable"><a href=
"LuCI.form.ButtonValue.html#editable">editable
</a></li>
418 <li data-name=
"LuCI.form.ButtonValue#modalonly"><a href=
"LuCI.form.ButtonValue.html#modalonly">modalonly
</a></li>
420 <li data-name=
"LuCI.form.ButtonValue#optional"><a href=
"LuCI.form.ButtonValue.html#optional">optional
</a></li>
422 <li data-name=
"LuCI.form.ButtonValue#password"><a href=
"LuCI.form.ButtonValue.html#password">password
</a></li>
424 <li data-name=
"LuCI.form.ButtonValue#placeholder"><a href=
"LuCI.form.ButtonValue.html#placeholder">placeholder
</a></li>
426 <li data-name=
"LuCI.form.ButtonValue#rmempty"><a href=
"LuCI.form.ButtonValue.html#rmempty">rmempty
</a></li>
428 <li data-name=
"LuCI.form.ButtonValue#uciconfig"><a href=
"LuCI.form.ButtonValue.html#uciconfig">uciconfig
</a></li>
430 <li data-name=
"LuCI.form.ButtonValue#ucioption"><a href=
"LuCI.form.ButtonValue.html#ucioption">ucioption
</a></li>
432 <li data-name=
"LuCI.form.ButtonValue#ucisection"><a href=
"LuCI.form.ButtonValue.html#ucisection">ucisection
</a></li>
434 <li data-name=
"LuCI.form.ButtonValue#validate"><a href=
"LuCI.form.ButtonValue.html#validate">validate
</a></li>
436 <li data-name=
"LuCI.form.ButtonValue#width"><a href=
"LuCI.form.ButtonValue.html#width">width
</a></li>
439 <ul class=
"typedefs itemMembers">
442 <ul class=
"typedefs itemMembers">
445 <ul class=
"methods itemMembers">
447 <span class=
"subtitle">Methods
</span>
449 <li data-name=
"LuCI.form.ButtonValue#append"><a href=
"LuCI.form.ButtonValue.html#append">append
</a></li>
451 <li data-name=
"LuCI.form.ButtonValue#cbid"><a href=
"LuCI.form.ButtonValue.html#cbid">cbid
</a></li>
453 <li data-name=
"LuCI.form.ButtonValue#cfgvalue"><a href=
"LuCI.form.ButtonValue.html#cfgvalue">cfgvalue
</a></li>
455 <li data-name=
"LuCI.form.ButtonValue#depends"><a href=
"LuCI.form.ButtonValue.html#depends">depends
</a></li>
457 <li data-name=
"LuCI.form.ButtonValue#formvalue"><a href=
"LuCI.form.ButtonValue.html#formvalue">formvalue
</a></li>
459 <li data-name=
"LuCI.form.ButtonValue#getUIElement"><a href=
"LuCI.form.ButtonValue.html#getUIElement">getUIElement
</a></li>
461 <li data-name=
"LuCI.form.ButtonValue#isActive"><a href=
"LuCI.form.ButtonValue.html#isActive">isActive
</a></li>
463 <li data-name=
"LuCI.form.ButtonValue#isValid"><a href=
"LuCI.form.ButtonValue.html#isValid">isValid
</a></li>
465 <li data-name=
"LuCI.form.ButtonValue#load"><a href=
"LuCI.form.ButtonValue.html#load">load
</a></li>
467 <li data-name=
"LuCI.form.ButtonValue#parse"><a href=
"LuCI.form.ButtonValue.html#parse">parse
</a></li>
469 <li data-name=
"LuCI.form.ButtonValue#remove"><a href=
"LuCI.form.ButtonValue.html#remove">remove
</a></li>
471 <li data-name=
"LuCI.form.ButtonValue#stripTags"><a href=
"LuCI.form.ButtonValue.html#stripTags">stripTags
</a></li>
473 <li data-name=
"LuCI.form.ButtonValue#textvalue"><a href=
"LuCI.form.ButtonValue.html#textvalue">textvalue
</a></li>
475 <li data-name=
"LuCI.form.ButtonValue#titleFn"><a href=
"LuCI.form.ButtonValue.html#titleFn">titleFn
</a></li>
477 <li data-name=
"LuCI.form.ButtonValue#value"><a href=
"LuCI.form.ButtonValue.html#value">value
</a></li>
479 <li data-name=
"LuCI.form.ButtonValue#write"><a href=
"LuCI.form.ButtonValue.html#write">write
</a></li>
482 <ul class=
"events itemMembers">
487 <li class=
"item" data-name=
"LuCI.form.DummyValue">
489 <a href=
"LuCI.form.DummyValue.html">LuCI.form.DummyValue
</a>
492 <ul class=
"members itemMembers">
494 <span class=
"subtitle">Members
</span>
496 <li data-name=
"LuCI.form.DummyValue##href"><a href=
"LuCI.form.DummyValue.html#href">href
</a></li>
498 <li data-name=
"LuCI.form.DummyValue##rawhtml"><a href=
"LuCI.form.DummyValue.html#rawhtml">rawhtml
</a></li>
500 <li data-name=
"LuCI.form.DummyValue#datatype"><a href=
"LuCI.form.DummyValue.html#datatype">datatype
</a></li>
502 <li data-name=
"LuCI.form.DummyValue#default"><a href=
"LuCI.form.DummyValue.html#default">default
</a></li>
504 <li data-name=
"LuCI.form.DummyValue#editable"><a href=
"LuCI.form.DummyValue.html#editable">editable
</a></li>
506 <li data-name=
"LuCI.form.DummyValue#modalonly"><a href=
"LuCI.form.DummyValue.html#modalonly">modalonly
</a></li>
508 <li data-name=
"LuCI.form.DummyValue#optional"><a href=
"LuCI.form.DummyValue.html#optional">optional
</a></li>
510 <li data-name=
"LuCI.form.DummyValue#password"><a href=
"LuCI.form.DummyValue.html#password">password
</a></li>
512 <li data-name=
"LuCI.form.DummyValue#placeholder"><a href=
"LuCI.form.DummyValue.html#placeholder">placeholder
</a></li>
514 <li data-name=
"LuCI.form.DummyValue#rmempty"><a href=
"LuCI.form.DummyValue.html#rmempty">rmempty
</a></li>
516 <li data-name=
"LuCI.form.DummyValue#uciconfig"><a href=
"LuCI.form.DummyValue.html#uciconfig">uciconfig
</a></li>
518 <li data-name=
"LuCI.form.DummyValue#ucioption"><a href=
"LuCI.form.DummyValue.html#ucioption">ucioption
</a></li>
520 <li data-name=
"LuCI.form.DummyValue#ucisection"><a href=
"LuCI.form.DummyValue.html#ucisection">ucisection
</a></li>
522 <li data-name=
"LuCI.form.DummyValue#validate"><a href=
"LuCI.form.DummyValue.html#validate">validate
</a></li>
524 <li data-name=
"LuCI.form.DummyValue#width"><a href=
"LuCI.form.DummyValue.html#width">width
</a></li>
527 <ul class=
"typedefs itemMembers">
530 <ul class=
"typedefs itemMembers">
533 <ul class=
"methods itemMembers">
535 <span class=
"subtitle">Methods
</span>
537 <li data-name=
"LuCI.form.DummyValue#append"><a href=
"LuCI.form.DummyValue.html#append">append
</a></li>
539 <li data-name=
"LuCI.form.DummyValue#cbid"><a href=
"LuCI.form.DummyValue.html#cbid">cbid
</a></li>
541 <li data-name=
"LuCI.form.DummyValue#cfgvalue"><a href=
"LuCI.form.DummyValue.html#cfgvalue">cfgvalue
</a></li>
543 <li data-name=
"LuCI.form.DummyValue#depends"><a href=
"LuCI.form.DummyValue.html#depends">depends
</a></li>
545 <li data-name=
"LuCI.form.DummyValue#formvalue"><a href=
"LuCI.form.DummyValue.html#formvalue">formvalue
</a></li>
547 <li data-name=
"LuCI.form.DummyValue#getUIElement"><a href=
"LuCI.form.DummyValue.html#getUIElement">getUIElement
</a></li>
549 <li data-name=
"LuCI.form.DummyValue#isActive"><a href=
"LuCI.form.DummyValue.html#isActive">isActive
</a></li>
551 <li data-name=
"LuCI.form.DummyValue#isValid"><a href=
"LuCI.form.DummyValue.html#isValid">isValid
</a></li>
553 <li data-name=
"LuCI.form.DummyValue#load"><a href=
"LuCI.form.DummyValue.html#load">load
</a></li>
555 <li data-name=
"LuCI.form.DummyValue#parse"><a href=
"LuCI.form.DummyValue.html#parse">parse
</a></li>
557 <li data-name=
"LuCI.form.DummyValue#remove"><a href=
"LuCI.form.DummyValue.html#remove">remove
</a></li>
559 <li data-name=
"LuCI.form.DummyValue#stripTags"><a href=
"LuCI.form.DummyValue.html#stripTags">stripTags
</a></li>
561 <li data-name=
"LuCI.form.DummyValue#textvalue"><a href=
"LuCI.form.DummyValue.html#textvalue">textvalue
</a></li>
563 <li data-name=
"LuCI.form.DummyValue#titleFn"><a href=
"LuCI.form.DummyValue.html#titleFn">titleFn
</a></li>
565 <li data-name=
"LuCI.form.DummyValue#value"><a href=
"LuCI.form.DummyValue.html#value">value
</a></li>
567 <li data-name=
"LuCI.form.DummyValue#write"><a href=
"LuCI.form.DummyValue.html#write">write
</a></li>
570 <ul class=
"events itemMembers">
575 <li class=
"item" data-name=
"LuCI.form.DynamicList">
577 <a href=
"LuCI.form.DynamicList.html">LuCI.form.DynamicList
</a>
580 <ul class=
"members itemMembers">
582 <span class=
"subtitle">Members
</span>
584 <li data-name=
"LuCI.form.DynamicList#datatype"><a href=
"LuCI.form.DynamicList.html#datatype">datatype
</a></li>
586 <li data-name=
"LuCI.form.DynamicList#default"><a href=
"LuCI.form.DynamicList.html#default">default
</a></li>
588 <li data-name=
"LuCI.form.DynamicList#editable"><a href=
"LuCI.form.DynamicList.html#editable">editable
</a></li>
590 <li data-name=
"LuCI.form.DynamicList#modalonly"><a href=
"LuCI.form.DynamicList.html#modalonly">modalonly
</a></li>
592 <li data-name=
"LuCI.form.DynamicList#optional"><a href=
"LuCI.form.DynamicList.html#optional">optional
</a></li>
594 <li data-name=
"LuCI.form.DynamicList#password"><a href=
"LuCI.form.DynamicList.html#password">password
</a></li>
596 <li data-name=
"LuCI.form.DynamicList#placeholder"><a href=
"LuCI.form.DynamicList.html#placeholder">placeholder
</a></li>
598 <li data-name=
"LuCI.form.DynamicList#rmempty"><a href=
"LuCI.form.DynamicList.html#rmempty">rmempty
</a></li>
600 <li data-name=
"LuCI.form.DynamicList#uciconfig"><a href=
"LuCI.form.DynamicList.html#uciconfig">uciconfig
</a></li>
602 <li data-name=
"LuCI.form.DynamicList#ucioption"><a href=
"LuCI.form.DynamicList.html#ucioption">ucioption
</a></li>
604 <li data-name=
"LuCI.form.DynamicList#ucisection"><a href=
"LuCI.form.DynamicList.html#ucisection">ucisection
</a></li>
606 <li data-name=
"LuCI.form.DynamicList#validate"><a href=
"LuCI.form.DynamicList.html#validate">validate
</a></li>
608 <li data-name=
"LuCI.form.DynamicList#width"><a href=
"LuCI.form.DynamicList.html#width">width
</a></li>
611 <ul class=
"typedefs itemMembers">
614 <ul class=
"typedefs itemMembers">
617 <ul class=
"methods itemMembers">
619 <span class=
"subtitle">Methods
</span>
621 <li data-name=
"LuCI.form.DynamicList#append"><a href=
"LuCI.form.DynamicList.html#append">append
</a></li>
623 <li data-name=
"LuCI.form.DynamicList#cbid"><a href=
"LuCI.form.DynamicList.html#cbid">cbid
</a></li>
625 <li data-name=
"LuCI.form.DynamicList#cfgvalue"><a href=
"LuCI.form.DynamicList.html#cfgvalue">cfgvalue
</a></li>
627 <li data-name=
"LuCI.form.DynamicList#depends"><a href=
"LuCI.form.DynamicList.html#depends">depends
</a></li>
629 <li data-name=
"LuCI.form.DynamicList#formvalue"><a href=
"LuCI.form.DynamicList.html#formvalue">formvalue
</a></li>
631 <li data-name=
"LuCI.form.DynamicList#getUIElement"><a href=
"LuCI.form.DynamicList.html#getUIElement">getUIElement
</a></li>
633 <li data-name=
"LuCI.form.DynamicList#isActive"><a href=
"LuCI.form.DynamicList.html#isActive">isActive
</a></li>
635 <li data-name=
"LuCI.form.DynamicList#isValid"><a href=
"LuCI.form.DynamicList.html#isValid">isValid
</a></li>
637 <li data-name=
"LuCI.form.DynamicList#load"><a href=
"LuCI.form.DynamicList.html#load">load
</a></li>
639 <li data-name=
"LuCI.form.DynamicList#parse"><a href=
"LuCI.form.DynamicList.html#parse">parse
</a></li>
641 <li data-name=
"LuCI.form.DynamicList#remove"><a href=
"LuCI.form.DynamicList.html#remove">remove
</a></li>
643 <li data-name=
"LuCI.form.DynamicList#stripTags"><a href=
"LuCI.form.DynamicList.html#stripTags">stripTags
</a></li>
645 <li data-name=
"LuCI.form.DynamicList#textvalue"><a href=
"LuCI.form.DynamicList.html#textvalue">textvalue
</a></li>
647 <li data-name=
"LuCI.form.DynamicList#titleFn"><a href=
"LuCI.form.DynamicList.html#titleFn">titleFn
</a></li>
649 <li data-name=
"LuCI.form.DynamicList#value"><a href=
"LuCI.form.DynamicList.html#value">value
</a></li>
651 <li data-name=
"LuCI.form.DynamicList#write"><a href=
"LuCI.form.DynamicList.html#write">write
</a></li>
654 <ul class=
"events itemMembers">
659 <li class=
"item" data-name=
"LuCI.form.FileUpload">
661 <a href=
"LuCI.form.FileUpload.html">LuCI.form.FileUpload
</a>
664 <ul class=
"members itemMembers">
666 <span class=
"subtitle">Members
</span>
668 <li data-name=
"LuCI.form.FileUpload##enable_remove"><a href=
"LuCI.form.FileUpload.html#enable_remove">enable_remove
</a></li>
670 <li data-name=
"LuCI.form.FileUpload##enable_upload"><a href=
"LuCI.form.FileUpload.html#enable_upload">enable_upload
</a></li>
672 <li data-name=
"LuCI.form.FileUpload##root_directory"><a href=
"LuCI.form.FileUpload.html#root_directory">root_directory
</a></li>
674 <li data-name=
"LuCI.form.FileUpload##show_hidden"><a href=
"LuCI.form.FileUpload.html#show_hidden">show_hidden
</a></li>
676 <li data-name=
"LuCI.form.FileUpload#datatype"><a href=
"LuCI.form.FileUpload.html#datatype">datatype
</a></li>
678 <li data-name=
"LuCI.form.FileUpload#default"><a href=
"LuCI.form.FileUpload.html#default">default
</a></li>
680 <li data-name=
"LuCI.form.FileUpload#editable"><a href=
"LuCI.form.FileUpload.html#editable">editable
</a></li>
682 <li data-name=
"LuCI.form.FileUpload#modalonly"><a href=
"LuCI.form.FileUpload.html#modalonly">modalonly
</a></li>
684 <li data-name=
"LuCI.form.FileUpload#optional"><a href=
"LuCI.form.FileUpload.html#optional">optional
</a></li>
686 <li data-name=
"LuCI.form.FileUpload#password"><a href=
"LuCI.form.FileUpload.html#password">password
</a></li>
688 <li data-name=
"LuCI.form.FileUpload#placeholder"><a href=
"LuCI.form.FileUpload.html#placeholder">placeholder
</a></li>
690 <li data-name=
"LuCI.form.FileUpload#rmempty"><a href=
"LuCI.form.FileUpload.html#rmempty">rmempty
</a></li>
692 <li data-name=
"LuCI.form.FileUpload#uciconfig"><a href=
"LuCI.form.FileUpload.html#uciconfig">uciconfig
</a></li>
694 <li data-name=
"LuCI.form.FileUpload#ucioption"><a href=
"LuCI.form.FileUpload.html#ucioption">ucioption
</a></li>
696 <li data-name=
"LuCI.form.FileUpload#ucisection"><a href=
"LuCI.form.FileUpload.html#ucisection">ucisection
</a></li>
698 <li data-name=
"LuCI.form.FileUpload#validate"><a href=
"LuCI.form.FileUpload.html#validate">validate
</a></li>
700 <li data-name=
"LuCI.form.FileUpload#width"><a href=
"LuCI.form.FileUpload.html#width">width
</a></li>
703 <ul class=
"typedefs itemMembers">
706 <ul class=
"typedefs itemMembers">
709 <ul class=
"methods itemMembers">
711 <span class=
"subtitle">Methods
</span>
713 <li data-name=
"LuCI.form.FileUpload#append"><a href=
"LuCI.form.FileUpload.html#append">append
</a></li>
715 <li data-name=
"LuCI.form.FileUpload#cbid"><a href=
"LuCI.form.FileUpload.html#cbid">cbid
</a></li>
717 <li data-name=
"LuCI.form.FileUpload#cfgvalue"><a href=
"LuCI.form.FileUpload.html#cfgvalue">cfgvalue
</a></li>
719 <li data-name=
"LuCI.form.FileUpload#depends"><a href=
"LuCI.form.FileUpload.html#depends">depends
</a></li>
721 <li data-name=
"LuCI.form.FileUpload#formvalue"><a href=
"LuCI.form.FileUpload.html#formvalue">formvalue
</a></li>
723 <li data-name=
"LuCI.form.FileUpload#getUIElement"><a href=
"LuCI.form.FileUpload.html#getUIElement">getUIElement
</a></li>
725 <li data-name=
"LuCI.form.FileUpload#isActive"><a href=
"LuCI.form.FileUpload.html#isActive">isActive
</a></li>
727 <li data-name=
"LuCI.form.FileUpload#isValid"><a href=
"LuCI.form.FileUpload.html#isValid">isValid
</a></li>
729 <li data-name=
"LuCI.form.FileUpload#load"><a href=
"LuCI.form.FileUpload.html#load">load
</a></li>
731 <li data-name=
"LuCI.form.FileUpload#parse"><a href=
"LuCI.form.FileUpload.html#parse">parse
</a></li>
733 <li data-name=
"LuCI.form.FileUpload#remove"><a href=
"LuCI.form.FileUpload.html#remove">remove
</a></li>
735 <li data-name=
"LuCI.form.FileUpload#stripTags"><a href=
"LuCI.form.FileUpload.html#stripTags">stripTags
</a></li>
737 <li data-name=
"LuCI.form.FileUpload#textvalue"><a href=
"LuCI.form.FileUpload.html#textvalue">textvalue
</a></li>
739 <li data-name=
"LuCI.form.FileUpload#titleFn"><a href=
"LuCI.form.FileUpload.html#titleFn">titleFn
</a></li>
741 <li data-name=
"LuCI.form.FileUpload#value"><a href=
"LuCI.form.FileUpload.html#value">value
</a></li>
743 <li data-name=
"LuCI.form.FileUpload#write"><a href=
"LuCI.form.FileUpload.html#write">write
</a></li>
746 <ul class=
"events itemMembers">
751 <li class=
"item" data-name=
"LuCI.form.FlagValue">
753 <a href=
"LuCI.form.FlagValue.html">LuCI.form.FlagValue
</a>
756 <ul class=
"members itemMembers">
758 <span class=
"subtitle">Members
</span>
760 <li data-name=
"LuCI.form.FlagValue##disabled"><a href=
"LuCI.form.FlagValue.html#disabled">disabled
</a></li>
762 <li data-name=
"LuCI.form.FlagValue##enabled"><a href=
"LuCI.form.FlagValue.html#enabled">enabled
</a></li>
764 <li data-name=
"LuCI.form.FlagValue#datatype"><a href=
"LuCI.form.FlagValue.html#datatype">datatype
</a></li>
766 <li data-name=
"LuCI.form.FlagValue#default"><a href=
"LuCI.form.FlagValue.html#default">default
</a></li>
768 <li data-name=
"LuCI.form.FlagValue#editable"><a href=
"LuCI.form.FlagValue.html#editable">editable
</a></li>
770 <li data-name=
"LuCI.form.FlagValue#modalonly"><a href=
"LuCI.form.FlagValue.html#modalonly">modalonly
</a></li>
772 <li data-name=
"LuCI.form.FlagValue#optional"><a href=
"LuCI.form.FlagValue.html#optional">optional
</a></li>
774 <li data-name=
"LuCI.form.FlagValue#password"><a href=
"LuCI.form.FlagValue.html#password">password
</a></li>
776 <li data-name=
"LuCI.form.FlagValue#placeholder"><a href=
"LuCI.form.FlagValue.html#placeholder">placeholder
</a></li>
778 <li data-name=
"LuCI.form.FlagValue#rmempty"><a href=
"LuCI.form.FlagValue.html#rmempty">rmempty
</a></li>
780 <li data-name=
"LuCI.form.FlagValue#uciconfig"><a href=
"LuCI.form.FlagValue.html#uciconfig">uciconfig
</a></li>
782 <li data-name=
"LuCI.form.FlagValue#ucioption"><a href=
"LuCI.form.FlagValue.html#ucioption">ucioption
</a></li>
784 <li data-name=
"LuCI.form.FlagValue#ucisection"><a href=
"LuCI.form.FlagValue.html#ucisection">ucisection
</a></li>
786 <li data-name=
"LuCI.form.FlagValue#validate"><a href=
"LuCI.form.FlagValue.html#validate">validate
</a></li>
788 <li data-name=
"LuCI.form.FlagValue#width"><a href=
"LuCI.form.FlagValue.html#width">width
</a></li>
791 <ul class=
"typedefs itemMembers">
794 <ul class=
"typedefs itemMembers">
797 <ul class=
"methods itemMembers">
799 <span class=
"subtitle">Methods
</span>
801 <li data-name=
"LuCI.form.FlagValue#append"><a href=
"LuCI.form.FlagValue.html#append">append
</a></li>
803 <li data-name=
"LuCI.form.FlagValue#cbid"><a href=
"LuCI.form.FlagValue.html#cbid">cbid
</a></li>
805 <li data-name=
"LuCI.form.FlagValue#cfgvalue"><a href=
"LuCI.form.FlagValue.html#cfgvalue">cfgvalue
</a></li>
807 <li data-name=
"LuCI.form.FlagValue#depends"><a href=
"LuCI.form.FlagValue.html#depends">depends
</a></li>
809 <li data-name=
"LuCI.form.FlagValue#formvalue"><a href=
"LuCI.form.FlagValue.html#formvalue">formvalue
</a></li>
811 <li data-name=
"LuCI.form.FlagValue#getUIElement"><a href=
"LuCI.form.FlagValue.html#getUIElement">getUIElement
</a></li>
813 <li data-name=
"LuCI.form.FlagValue#isActive"><a href=
"LuCI.form.FlagValue.html#isActive">isActive
</a></li>
815 <li data-name=
"LuCI.form.FlagValue#isValid"><a href=
"LuCI.form.FlagValue.html#isValid">isValid
</a></li>
817 <li data-name=
"LuCI.form.FlagValue#load"><a href=
"LuCI.form.FlagValue.html#load">load
</a></li>
819 <li data-name=
"LuCI.form.FlagValue#parse"><a href=
"LuCI.form.FlagValue.html#parse">parse
</a></li>
821 <li data-name=
"LuCI.form.FlagValue#remove"><a href=
"LuCI.form.FlagValue.html#remove">remove
</a></li>
823 <li data-name=
"LuCI.form.FlagValue#stripTags"><a href=
"LuCI.form.FlagValue.html#stripTags">stripTags
</a></li>
825 <li data-name=
"LuCI.form.FlagValue#textvalue"><a href=
"LuCI.form.FlagValue.html#textvalue">textvalue
</a></li>
827 <li data-name=
"LuCI.form.FlagValue#titleFn"><a href=
"LuCI.form.FlagValue.html#titleFn">titleFn
</a></li>
829 <li data-name=
"LuCI.form.FlagValue#value"><a href=
"LuCI.form.FlagValue.html#value">value
</a></li>
831 <li data-name=
"LuCI.form.FlagValue#write"><a href=
"LuCI.form.FlagValue.html#write">write
</a></li>
834 <ul class=
"events itemMembers">
839 <li class=
"item" data-name=
"LuCI.form.GridSection">
841 <a href=
"LuCI.form.GridSection.html">LuCI.form.GridSection
</a>
844 <ul class=
"members itemMembers">
846 <span class=
"subtitle">Members
</span>
848 <li data-name=
"LuCI.form.GridSection#addbtntitle"><a href=
"LuCI.form.GridSection.html#addbtntitle">addbtntitle
</a></li>
850 <li data-name=
"LuCI.form.GridSection#addremove"><a href=
"LuCI.form.GridSection.html#addremove">addremove
</a></li>
852 <li data-name=
"LuCI.form.GridSection#anonymous"><a href=
"LuCI.form.GridSection.html#anonymous">anonymous
</a></li>
854 <li data-name=
"LuCI.form.GridSection#extedit"><a href=
"LuCI.form.GridSection.html#extedit">extedit
</a></li>
856 <li data-name=
"LuCI.form.GridSection#max_cols"><a href=
"LuCI.form.GridSection.html#max_cols">max_cols
</a></li>
858 <li data-name=
"LuCI.form.GridSection#modaltitle"><a href=
"LuCI.form.GridSection.html#modaltitle">modaltitle
</a></li>
860 <li data-name=
"LuCI.form.GridSection#parentoption"><a href=
"LuCI.form.GridSection.html#parentoption">parentoption
</a></li>
862 <li data-name=
"LuCI.form.GridSection#rowcolors"><a href=
"LuCI.form.GridSection.html#rowcolors">rowcolors
</a></li>
864 <li data-name=
"LuCI.form.GridSection#sectiontitle"><a href=
"LuCI.form.GridSection.html#sectiontitle">sectiontitle
</a></li>
866 <li data-name=
"LuCI.form.GridSection#sortable"><a href=
"LuCI.form.GridSection.html#sortable">sortable
</a></li>
868 <li data-name=
"LuCI.form.GridSection#tabbed"><a href=
"LuCI.form.GridSection.html#tabbed">tabbed
</a></li>
870 <li data-name=
"LuCI.form.GridSection#uciconfig"><a href=
"LuCI.form.GridSection.html#uciconfig">uciconfig
</a></li>
873 <ul class=
"typedefs itemMembers">
876 <ul class=
"typedefs itemMembers">
879 <ul class=
"methods itemMembers">
881 <span class=
"subtitle">Methods
</span>
883 <li data-name=
"LuCI.form.GridSection#addModalOptions"><a href=
"LuCI.form.GridSection.html#addModalOptions">addModalOptions
</a></li>
885 <li data-name=
"LuCI.form.GridSection#append"><a href=
"LuCI.form.GridSection.html#append">append
</a></li>
887 <li data-name=
"LuCI.form.GridSection#filter"><a href=
"LuCI.form.GridSection.html#filter">filter
</a></li>
889 <li data-name=
"LuCI.form.GridSection#load"><a href=
"LuCI.form.GridSection.html#load">load
</a></li>
891 <li data-name=
"LuCI.form.GridSection#option"><a href=
"LuCI.form.GridSection.html#option">option
</a></li>
893 <li data-name=
"LuCI.form.GridSection#parse"><a href=
"LuCI.form.GridSection.html#parse">parse
</a></li>
895 <li data-name=
"LuCI.form.GridSection#stripTags"><a href=
"LuCI.form.GridSection.html#stripTags">stripTags
</a></li>
897 <li data-name=
"LuCI.form.GridSection#tab"><a href=
"LuCI.form.GridSection.html#tab">tab
</a></li>
899 <li data-name=
"LuCI.form.GridSection#taboption"><a href=
"LuCI.form.GridSection.html#taboption">taboption
</a></li>
901 <li data-name=
"LuCI.form.GridSection#titleFn"><a href=
"LuCI.form.GridSection.html#titleFn">titleFn
</a></li>
904 <ul class=
"events itemMembers">
909 <li class=
"item" data-name=
"LuCI.form.HiddenValue">
911 <a href=
"LuCI.form.HiddenValue.html">LuCI.form.HiddenValue
</a>
914 <ul class=
"members itemMembers">
916 <span class=
"subtitle">Members
</span>
918 <li data-name=
"LuCI.form.HiddenValue#datatype"><a href=
"LuCI.form.HiddenValue.html#datatype">datatype
</a></li>
920 <li data-name=
"LuCI.form.HiddenValue#default"><a href=
"LuCI.form.HiddenValue.html#default">default
</a></li>
922 <li data-name=
"LuCI.form.HiddenValue#editable"><a href=
"LuCI.form.HiddenValue.html#editable">editable
</a></li>
924 <li data-name=
"LuCI.form.HiddenValue#modalonly"><a href=
"LuCI.form.HiddenValue.html#modalonly">modalonly
</a></li>
926 <li data-name=
"LuCI.form.HiddenValue#optional"><a href=
"LuCI.form.HiddenValue.html#optional">optional
</a></li>
928 <li data-name=
"LuCI.form.HiddenValue#password"><a href=
"LuCI.form.HiddenValue.html#password">password
</a></li>
930 <li data-name=
"LuCI.form.HiddenValue#placeholder"><a href=
"LuCI.form.HiddenValue.html#placeholder">placeholder
</a></li>
932 <li data-name=
"LuCI.form.HiddenValue#rmempty"><a href=
"LuCI.form.HiddenValue.html#rmempty">rmempty
</a></li>
934 <li data-name=
"LuCI.form.HiddenValue#uciconfig"><a href=
"LuCI.form.HiddenValue.html#uciconfig">uciconfig
</a></li>
936 <li data-name=
"LuCI.form.HiddenValue#ucioption"><a href=
"LuCI.form.HiddenValue.html#ucioption">ucioption
</a></li>
938 <li data-name=
"LuCI.form.HiddenValue#ucisection"><a href=
"LuCI.form.HiddenValue.html#ucisection">ucisection
</a></li>
940 <li data-name=
"LuCI.form.HiddenValue#validate"><a href=
"LuCI.form.HiddenValue.html#validate">validate
</a></li>
942 <li data-name=
"LuCI.form.HiddenValue#width"><a href=
"LuCI.form.HiddenValue.html#width">width
</a></li>
945 <ul class=
"typedefs itemMembers">
948 <ul class=
"typedefs itemMembers">
951 <ul class=
"methods itemMembers">
953 <span class=
"subtitle">Methods
</span>
955 <li data-name=
"LuCI.form.HiddenValue#append"><a href=
"LuCI.form.HiddenValue.html#append">append
</a></li>
957 <li data-name=
"LuCI.form.HiddenValue#cbid"><a href=
"LuCI.form.HiddenValue.html#cbid">cbid
</a></li>
959 <li data-name=
"LuCI.form.HiddenValue#cfgvalue"><a href=
"LuCI.form.HiddenValue.html#cfgvalue">cfgvalue
</a></li>
961 <li data-name=
"LuCI.form.HiddenValue#depends"><a href=
"LuCI.form.HiddenValue.html#depends">depends
</a></li>
963 <li data-name=
"LuCI.form.HiddenValue#formvalue"><a href=
"LuCI.form.HiddenValue.html#formvalue">formvalue
</a></li>
965 <li data-name=
"LuCI.form.HiddenValue#getUIElement"><a href=
"LuCI.form.HiddenValue.html#getUIElement">getUIElement
</a></li>
967 <li data-name=
"LuCI.form.HiddenValue#isActive"><a href=
"LuCI.form.HiddenValue.html#isActive">isActive
</a></li>
969 <li data-name=
"LuCI.form.HiddenValue#isValid"><a href=
"LuCI.form.HiddenValue.html#isValid">isValid
</a></li>
971 <li data-name=
"LuCI.form.HiddenValue#load"><a href=
"LuCI.form.HiddenValue.html#load">load
</a></li>
973 <li data-name=
"LuCI.form.HiddenValue#parse"><a href=
"LuCI.form.HiddenValue.html#parse">parse
</a></li>
975 <li data-name=
"LuCI.form.HiddenValue#remove"><a href=
"LuCI.form.HiddenValue.html#remove">remove
</a></li>
977 <li data-name=
"LuCI.form.HiddenValue#stripTags"><a href=
"LuCI.form.HiddenValue.html#stripTags">stripTags
</a></li>
979 <li data-name=
"LuCI.form.HiddenValue#textvalue"><a href=
"LuCI.form.HiddenValue.html#textvalue">textvalue
</a></li>
981 <li data-name=
"LuCI.form.HiddenValue#titleFn"><a href=
"LuCI.form.HiddenValue.html#titleFn">titleFn
</a></li>
983 <li data-name=
"LuCI.form.HiddenValue#value"><a href=
"LuCI.form.HiddenValue.html#value">value
</a></li>
985 <li data-name=
"LuCI.form.HiddenValue#write"><a href=
"LuCI.form.HiddenValue.html#write">write
</a></li>
988 <ul class=
"events itemMembers">
993 <li class=
"item" data-name=
"LuCI.form.JSONMap">
995 <a href=
"LuCI.form.JSONMap.html">LuCI.form.JSONMap
</a>
998 <ul class=
"members itemMembers">
1001 <ul class=
"typedefs itemMembers">
1004 <ul class=
"typedefs itemMembers">
1007 <ul class=
"methods itemMembers">
1009 <span class=
"subtitle">Methods
</span>
1011 <li data-name=
"LuCI.form.JSONMap#append"><a href=
"LuCI.form.JSONMap.html#append">append
</a></li>
1013 <li data-name=
"LuCI.form.JSONMap#chain"><a href=
"LuCI.form.JSONMap.html#chain">chain
</a></li>
1015 <li data-name=
"LuCI.form.JSONMap#findElement"><a href=
"LuCI.form.JSONMap.html#findElement">findElement
</a></li>
1017 <li data-name=
"LuCI.form.JSONMap#findElements"><a href=
"LuCI.form.JSONMap.html#findElements">findElements
</a></li>
1019 <li data-name=
"LuCI.form.JSONMap#load"><a href=
"LuCI.form.JSONMap.html#load">load
</a></li>
1021 <li data-name=
"LuCI.form.JSONMap#lookupOption"><a href=
"LuCI.form.JSONMap.html#lookupOption">lookupOption
</a></li>
1023 <li data-name=
"LuCI.form.JSONMap#parse"><a href=
"LuCI.form.JSONMap.html#parse">parse
</a></li>
1025 <li data-name=
"LuCI.form.JSONMap#render"><a href=
"LuCI.form.JSONMap.html#render">render
</a></li>
1027 <li data-name=
"LuCI.form.JSONMap#reset"><a href=
"LuCI.form.JSONMap.html#reset">reset
</a></li>
1029 <li data-name=
"LuCI.form.JSONMap#save"><a href=
"LuCI.form.JSONMap.html#save">save
</a></li>
1031 <li data-name=
"LuCI.form.JSONMap#section"><a href=
"LuCI.form.JSONMap.html#section">section
</a></li>
1033 <li data-name=
"LuCI.form.JSONMap#stripTags"><a href=
"LuCI.form.JSONMap.html#stripTags">stripTags
</a></li>
1035 <li data-name=
"LuCI.form.JSONMap#titleFn"><a href=
"LuCI.form.JSONMap.html#titleFn">titleFn
</a></li>
1038 <ul class=
"events itemMembers">
1043 <li class=
"item" data-name=
"LuCI.form.ListValue">
1044 <span class=
"title">
1045 <a href=
"LuCI.form.ListValue.html">LuCI.form.ListValue
</a>
1048 <ul class=
"members itemMembers">
1050 <span class=
"subtitle">Members
</span>
1052 <li data-name=
"LuCI.form.ListValue##size"><a href=
"LuCI.form.ListValue.html#size">size
</a></li>
1054 <li data-name=
"LuCI.form.ListValue#datatype"><a href=
"LuCI.form.ListValue.html#datatype">datatype
</a></li>
1056 <li data-name=
"LuCI.form.ListValue#default"><a href=
"LuCI.form.ListValue.html#default">default
</a></li>
1058 <li data-name=
"LuCI.form.ListValue#editable"><a href=
"LuCI.form.ListValue.html#editable">editable
</a></li>
1060 <li data-name=
"LuCI.form.ListValue#modalonly"><a href=
"LuCI.form.ListValue.html#modalonly">modalonly
</a></li>
1062 <li data-name=
"LuCI.form.ListValue#optional"><a href=
"LuCI.form.ListValue.html#optional">optional
</a></li>
1064 <li data-name=
"LuCI.form.ListValue#password"><a href=
"LuCI.form.ListValue.html#password">password
</a></li>
1066 <li data-name=
"LuCI.form.ListValue#placeholder"><a href=
"LuCI.form.ListValue.html#placeholder">placeholder
</a></li>
1068 <li data-name=
"LuCI.form.ListValue#rmempty"><a href=
"LuCI.form.ListValue.html#rmempty">rmempty
</a></li>
1070 <li data-name=
"LuCI.form.ListValue#uciconfig"><a href=
"LuCI.form.ListValue.html#uciconfig">uciconfig
</a></li>
1072 <li data-name=
"LuCI.form.ListValue#ucioption"><a href=
"LuCI.form.ListValue.html#ucioption">ucioption
</a></li>
1074 <li data-name=
"LuCI.form.ListValue#ucisection"><a href=
"LuCI.form.ListValue.html#ucisection">ucisection
</a></li>
1076 <li data-name=
"LuCI.form.ListValue#validate"><a href=
"LuCI.form.ListValue.html#validate">validate
</a></li>
1078 <li data-name=
"LuCI.form.ListValue#width"><a href=
"LuCI.form.ListValue.html#width">width
</a></li>
1081 <ul class=
"typedefs itemMembers">
1084 <ul class=
"typedefs itemMembers">
1087 <ul class=
"methods itemMembers">
1089 <span class=
"subtitle">Methods
</span>
1091 <li data-name=
"LuCI.form.ListValue#append"><a href=
"LuCI.form.ListValue.html#append">append
</a></li>
1093 <li data-name=
"LuCI.form.ListValue#cbid"><a href=
"LuCI.form.ListValue.html#cbid">cbid
</a></li>
1095 <li data-name=
"LuCI.form.ListValue#cfgvalue"><a href=
"LuCI.form.ListValue.html#cfgvalue">cfgvalue
</a></li>
1097 <li data-name=
"LuCI.form.ListValue#depends"><a href=
"LuCI.form.ListValue.html#depends">depends
</a></li>
1099 <li data-name=
"LuCI.form.ListValue#formvalue"><a href=
"LuCI.form.ListValue.html#formvalue">formvalue
</a></li>
1101 <li data-name=
"LuCI.form.ListValue#getUIElement"><a href=
"LuCI.form.ListValue.html#getUIElement">getUIElement
</a></li>
1103 <li data-name=
"LuCI.form.ListValue#isActive"><a href=
"LuCI.form.ListValue.html#isActive">isActive
</a></li>
1105 <li data-name=
"LuCI.form.ListValue#isValid"><a href=
"LuCI.form.ListValue.html#isValid">isValid
</a></li>
1107 <li data-name=
"LuCI.form.ListValue#load"><a href=
"LuCI.form.ListValue.html#load">load
</a></li>
1109 <li data-name=
"LuCI.form.ListValue#parse"><a href=
"LuCI.form.ListValue.html#parse">parse
</a></li>
1111 <li data-name=
"LuCI.form.ListValue#remove"><a href=
"LuCI.form.ListValue.html#remove">remove
</a></li>
1113 <li data-name=
"LuCI.form.ListValue#stripTags"><a href=
"LuCI.form.ListValue.html#stripTags">stripTags
</a></li>
1115 <li data-name=
"LuCI.form.ListValue#textvalue"><a href=
"LuCI.form.ListValue.html#textvalue">textvalue
</a></li>
1117 <li data-name=
"LuCI.form.ListValue#titleFn"><a href=
"LuCI.form.ListValue.html#titleFn">titleFn
</a></li>
1119 <li data-name=
"LuCI.form.ListValue#value"><a href=
"LuCI.form.ListValue.html#value">value
</a></li>
1121 <li data-name=
"LuCI.form.ListValue#write"><a href=
"LuCI.form.ListValue.html#write">write
</a></li>
1124 <ul class=
"events itemMembers">
1129 <li class=
"item" data-name=
"LuCI.form.Map">
1130 <span class=
"title">
1131 <a href=
"LuCI.form.Map.html">LuCI.form.Map
</a>
1134 <ul class=
"members itemMembers">
1137 <ul class=
"typedefs itemMembers">
1140 <ul class=
"typedefs itemMembers">
1143 <ul class=
"methods itemMembers">
1145 <span class=
"subtitle">Methods
</span>
1147 <li data-name=
"LuCI.form.Map#append"><a href=
"LuCI.form.Map.html#append">append
</a></li>
1149 <li data-name=
"LuCI.form.Map#chain"><a href=
"LuCI.form.Map.html#chain">chain
</a></li>
1151 <li data-name=
"LuCI.form.Map#findElement"><a href=
"LuCI.form.Map.html#findElement">findElement
</a></li>
1153 <li data-name=
"LuCI.form.Map#findElements"><a href=
"LuCI.form.Map.html#findElements">findElements
</a></li>
1155 <li data-name=
"LuCI.form.Map#load"><a href=
"LuCI.form.Map.html#load">load
</a></li>
1157 <li data-name=
"LuCI.form.Map#lookupOption"><a href=
"LuCI.form.Map.html#lookupOption">lookupOption
</a></li>
1159 <li data-name=
"LuCI.form.Map#parse"><a href=
"LuCI.form.Map.html#parse">parse
</a></li>
1161 <li data-name=
"LuCI.form.Map#render"><a href=
"LuCI.form.Map.html#render">render
</a></li>
1163 <li data-name=
"LuCI.form.Map#reset"><a href=
"LuCI.form.Map.html#reset">reset
</a></li>
1165 <li data-name=
"LuCI.form.Map#save"><a href=
"LuCI.form.Map.html#save">save
</a></li>
1167 <li data-name=
"LuCI.form.Map#section"><a href=
"LuCI.form.Map.html#section">section
</a></li>
1169 <li data-name=
"LuCI.form.Map#stripTags"><a href=
"LuCI.form.Map.html#stripTags">stripTags
</a></li>
1171 <li data-name=
"LuCI.form.Map#titleFn"><a href=
"LuCI.form.Map.html#titleFn">titleFn
</a></li>
1174 <ul class=
"events itemMembers">
1179 <li class=
"item" data-name=
"LuCI.form.MultiValue">
1180 <span class=
"title">
1181 <a href=
"LuCI.form.MultiValue.html">LuCI.form.MultiValue
</a>
1184 <ul class=
"members itemMembers">
1186 <span class=
"subtitle">Members
</span>
1188 <li data-name=
"LuCI.form.MultiValue##display_size"><a href=
"LuCI.form.MultiValue.html#display_size">display_size
</a></li>
1190 <li data-name=
"LuCI.form.MultiValue##dropdown_size"><a href=
"LuCI.form.MultiValue.html#dropdown_size">dropdown_size
</a></li>
1192 <li data-name=
"LuCI.form.MultiValue#datatype"><a href=
"LuCI.form.MultiValue.html#datatype">datatype
</a></li>
1194 <li data-name=
"LuCI.form.MultiValue#default"><a href=
"LuCI.form.MultiValue.html#default">default
</a></li>
1196 <li data-name=
"LuCI.form.MultiValue#editable"><a href=
"LuCI.form.MultiValue.html#editable">editable
</a></li>
1198 <li data-name=
"LuCI.form.MultiValue#modalonly"><a href=
"LuCI.form.MultiValue.html#modalonly">modalonly
</a></li>
1200 <li data-name=
"LuCI.form.MultiValue#optional"><a href=
"LuCI.form.MultiValue.html#optional">optional
</a></li>
1202 <li data-name=
"LuCI.form.MultiValue#password"><a href=
"LuCI.form.MultiValue.html#password">password
</a></li>
1204 <li data-name=
"LuCI.form.MultiValue#placeholder"><a href=
"LuCI.form.MultiValue.html#placeholder">placeholder
</a></li>
1206 <li data-name=
"LuCI.form.MultiValue#rmempty"><a href=
"LuCI.form.MultiValue.html#rmempty">rmempty
</a></li>
1208 <li data-name=
"LuCI.form.MultiValue#uciconfig"><a href=
"LuCI.form.MultiValue.html#uciconfig">uciconfig
</a></li>
1210 <li data-name=
"LuCI.form.MultiValue#ucioption"><a href=
"LuCI.form.MultiValue.html#ucioption">ucioption
</a></li>
1212 <li data-name=
"LuCI.form.MultiValue#ucisection"><a href=
"LuCI.form.MultiValue.html#ucisection">ucisection
</a></li>
1214 <li data-name=
"LuCI.form.MultiValue#validate"><a href=
"LuCI.form.MultiValue.html#validate">validate
</a></li>
1216 <li data-name=
"LuCI.form.MultiValue#width"><a href=
"LuCI.form.MultiValue.html#width">width
</a></li>
1219 <ul class=
"typedefs itemMembers">
1222 <ul class=
"typedefs itemMembers">
1225 <ul class=
"methods itemMembers">
1227 <span class=
"subtitle">Methods
</span>
1229 <li data-name=
"LuCI.form.MultiValue#append"><a href=
"LuCI.form.MultiValue.html#append">append
</a></li>
1231 <li data-name=
"LuCI.form.MultiValue#cbid"><a href=
"LuCI.form.MultiValue.html#cbid">cbid
</a></li>
1233 <li data-name=
"LuCI.form.MultiValue#cfgvalue"><a href=
"LuCI.form.MultiValue.html#cfgvalue">cfgvalue
</a></li>
1235 <li data-name=
"LuCI.form.MultiValue#depends"><a href=
"LuCI.form.MultiValue.html#depends">depends
</a></li>
1237 <li data-name=
"LuCI.form.MultiValue#formvalue"><a href=
"LuCI.form.MultiValue.html#formvalue">formvalue
</a></li>
1239 <li data-name=
"LuCI.form.MultiValue#getUIElement"><a href=
"LuCI.form.MultiValue.html#getUIElement">getUIElement
</a></li>
1241 <li data-name=
"LuCI.form.MultiValue#isActive"><a href=
"LuCI.form.MultiValue.html#isActive">isActive
</a></li>
1243 <li data-name=
"LuCI.form.MultiValue#isValid"><a href=
"LuCI.form.MultiValue.html#isValid">isValid
</a></li>
1245 <li data-name=
"LuCI.form.MultiValue#load"><a href=
"LuCI.form.MultiValue.html#load">load
</a></li>
1247 <li data-name=
"LuCI.form.MultiValue#parse"><a href=
"LuCI.form.MultiValue.html#parse">parse
</a></li>
1249 <li data-name=
"LuCI.form.MultiValue#remove"><a href=
"LuCI.form.MultiValue.html#remove">remove
</a></li>
1251 <li data-name=
"LuCI.form.MultiValue#stripTags"><a href=
"LuCI.form.MultiValue.html#stripTags">stripTags
</a></li>
1253 <li data-name=
"LuCI.form.MultiValue#textvalue"><a href=
"LuCI.form.MultiValue.html#textvalue">textvalue
</a></li>
1255 <li data-name=
"LuCI.form.MultiValue#titleFn"><a href=
"LuCI.form.MultiValue.html#titleFn">titleFn
</a></li>
1257 <li data-name=
"LuCI.form.MultiValue#value"><a href=
"LuCI.form.MultiValue.html#value">value
</a></li>
1259 <li data-name=
"LuCI.form.MultiValue#write"><a href=
"LuCI.form.MultiValue.html#write">write
</a></li>
1262 <ul class=
"events itemMembers">
1267 <li class=
"item" data-name=
"LuCI.form.NamedSection">
1268 <span class=
"title">
1269 <a href=
"LuCI.form.NamedSection.html">LuCI.form.NamedSection
</a>
1272 <ul class=
"members itemMembers">
1274 <span class=
"subtitle">Members
</span>
1276 <li data-name=
"LuCI.form.NamedSection##addremove"><a href=
"LuCI.form.NamedSection.html#addremove">addremove
</a></li>
1278 <li data-name=
"LuCI.form.NamedSection##uciconfig"><a href=
"LuCI.form.NamedSection.html#uciconfig">uciconfig
</a></li>
1280 <li data-name=
"LuCI.form.NamedSection#parentoption"><a href=
"LuCI.form.NamedSection.html#parentoption">parentoption
</a></li>
1283 <ul class=
"typedefs itemMembers">
1286 <ul class=
"typedefs itemMembers">
1289 <ul class=
"methods itemMembers">
1291 <span class=
"subtitle">Methods
</span>
1293 <li data-name=
"LuCI.form.NamedSection#append"><a href=
"LuCI.form.NamedSection.html#append">append
</a></li>
1295 <li data-name=
"LuCI.form.NamedSection#cfgsections"><a href=
"LuCI.form.NamedSection.html#cfgsections">cfgsections
</a></li>
1297 <li data-name=
"LuCI.form.NamedSection#filter"><a href=
"LuCI.form.NamedSection.html#filter">filter
</a></li>
1299 <li data-name=
"LuCI.form.NamedSection#load"><a href=
"LuCI.form.NamedSection.html#load">load
</a></li>
1301 <li data-name=
"LuCI.form.NamedSection#option"><a href=
"LuCI.form.NamedSection.html#option">option
</a></li>
1303 <li data-name=
"LuCI.form.NamedSection#parse"><a href=
"LuCI.form.NamedSection.html#parse">parse
</a></li>
1305 <li data-name=
"LuCI.form.NamedSection#render"><a href=
"LuCI.form.NamedSection.html#render">render
</a></li>
1307 <li data-name=
"LuCI.form.NamedSection#stripTags"><a href=
"LuCI.form.NamedSection.html#stripTags">stripTags
</a></li>
1309 <li data-name=
"LuCI.form.NamedSection#tab"><a href=
"LuCI.form.NamedSection.html#tab">tab
</a></li>
1311 <li data-name=
"LuCI.form.NamedSection#taboption"><a href=
"LuCI.form.NamedSection.html#taboption">taboption
</a></li>
1313 <li data-name=
"LuCI.form.NamedSection#titleFn"><a href=
"LuCI.form.NamedSection.html#titleFn">titleFn
</a></li>
1316 <ul class=
"events itemMembers">
1321 <li class=
"item" data-name=
"LuCI.form.SectionValue">
1322 <span class=
"title">
1323 <a href=
"LuCI.form.SectionValue.html">LuCI.form.SectionValue
</a>
1326 <ul class=
"members itemMembers">
1328 <span class=
"subtitle">Members
</span>
1330 <li data-name=
"LuCI.form.SectionValue##subsection"><a href=
"LuCI.form.SectionValue.html#subsection">subsection
</a></li>
1332 <li data-name=
"LuCI.form.SectionValue#datatype"><a href=
"LuCI.form.SectionValue.html#datatype">datatype
</a></li>
1334 <li data-name=
"LuCI.form.SectionValue#default"><a href=
"LuCI.form.SectionValue.html#default">default
</a></li>
1336 <li data-name=
"LuCI.form.SectionValue#editable"><a href=
"LuCI.form.SectionValue.html#editable">editable
</a></li>
1338 <li data-name=
"LuCI.form.SectionValue#modalonly"><a href=
"LuCI.form.SectionValue.html#modalonly">modalonly
</a></li>
1340 <li data-name=
"LuCI.form.SectionValue#optional"><a href=
"LuCI.form.SectionValue.html#optional">optional
</a></li>
1342 <li data-name=
"LuCI.form.SectionValue#password"><a href=
"LuCI.form.SectionValue.html#password">password
</a></li>
1344 <li data-name=
"LuCI.form.SectionValue#placeholder"><a href=
"LuCI.form.SectionValue.html#placeholder">placeholder
</a></li>
1346 <li data-name=
"LuCI.form.SectionValue#rmempty"><a href=
"LuCI.form.SectionValue.html#rmempty">rmempty
</a></li>
1348 <li data-name=
"LuCI.form.SectionValue#uciconfig"><a href=
"LuCI.form.SectionValue.html#uciconfig">uciconfig
</a></li>
1350 <li data-name=
"LuCI.form.SectionValue#ucioption"><a href=
"LuCI.form.SectionValue.html#ucioption">ucioption
</a></li>
1352 <li data-name=
"LuCI.form.SectionValue#ucisection"><a href=
"LuCI.form.SectionValue.html#ucisection">ucisection
</a></li>
1354 <li data-name=
"LuCI.form.SectionValue#validate"><a href=
"LuCI.form.SectionValue.html#validate">validate
</a></li>
1356 <li data-name=
"LuCI.form.SectionValue#width"><a href=
"LuCI.form.SectionValue.html#width">width
</a></li>
1359 <ul class=
"typedefs itemMembers">
1362 <ul class=
"typedefs itemMembers">
1365 <ul class=
"methods itemMembers">
1367 <span class=
"subtitle">Methods
</span>
1369 <li data-name=
"LuCI.form.SectionValue#append"><a href=
"LuCI.form.SectionValue.html#append">append
</a></li>
1371 <li data-name=
"LuCI.form.SectionValue#cbid"><a href=
"LuCI.form.SectionValue.html#cbid">cbid
</a></li>
1373 <li data-name=
"LuCI.form.SectionValue#cfgvalue"><a href=
"LuCI.form.SectionValue.html#cfgvalue">cfgvalue
</a></li>
1375 <li data-name=
"LuCI.form.SectionValue#depends"><a href=
"LuCI.form.SectionValue.html#depends">depends
</a></li>
1377 <li data-name=
"LuCI.form.SectionValue#formvalue"><a href=
"LuCI.form.SectionValue.html#formvalue">formvalue
</a></li>
1379 <li data-name=
"LuCI.form.SectionValue#getUIElement"><a href=
"LuCI.form.SectionValue.html#getUIElement">getUIElement
</a></li>
1381 <li data-name=
"LuCI.form.SectionValue#isActive"><a href=
"LuCI.form.SectionValue.html#isActive">isActive
</a></li>
1383 <li data-name=
"LuCI.form.SectionValue#isValid"><a href=
"LuCI.form.SectionValue.html#isValid">isValid
</a></li>
1385 <li data-name=
"LuCI.form.SectionValue#load"><a href=
"LuCI.form.SectionValue.html#load">load
</a></li>
1387 <li data-name=
"LuCI.form.SectionValue#parse"><a href=
"LuCI.form.SectionValue.html#parse">parse
</a></li>
1389 <li data-name=
"LuCI.form.SectionValue#remove"><a href=
"LuCI.form.SectionValue.html#remove">remove
</a></li>
1391 <li data-name=
"LuCI.form.SectionValue#stripTags"><a href=
"LuCI.form.SectionValue.html#stripTags">stripTags
</a></li>
1393 <li data-name=
"LuCI.form.SectionValue#textvalue"><a href=
"LuCI.form.SectionValue.html#textvalue">textvalue
</a></li>
1395 <li data-name=
"LuCI.form.SectionValue#titleFn"><a href=
"LuCI.form.SectionValue.html#titleFn">titleFn
</a></li>
1397 <li data-name=
"LuCI.form.SectionValue#value"><a href=
"LuCI.form.SectionValue.html#value">value
</a></li>
1399 <li data-name=
"LuCI.form.SectionValue#write"><a href=
"LuCI.form.SectionValue.html#write">write
</a></li>
1402 <ul class=
"events itemMembers">
1407 <li class=
"item" data-name=
"LuCI.form.TableSection">
1408 <span class=
"title">
1409 <a href=
"LuCI.form.TableSection.html">LuCI.form.TableSection
</a>
1412 <ul class=
"members itemMembers">
1414 <span class=
"subtitle">Members
</span>
1416 <li data-name=
"LuCI.form.TableSection##addbtntitle"><a href=
"LuCI.form.TableSection.html#addbtntitle">addbtntitle
</a></li>
1418 <li data-name=
"LuCI.form.TableSection##addremove"><a href=
"LuCI.form.TableSection.html#addremove">addremove
</a></li>
1420 <li data-name=
"LuCI.form.TableSection##anonymous"><a href=
"LuCI.form.TableSection.html#anonymous">anonymous
</a></li>
1422 <li data-name=
"LuCI.form.TableSection##extedit"><a href=
"LuCI.form.TableSection.html#extedit">extedit
</a></li>
1424 <li data-name=
"LuCI.form.TableSection##max_cols"><a href=
"LuCI.form.TableSection.html#max_cols">max_cols
</a></li>
1426 <li data-name=
"LuCI.form.TableSection##modaltitle"><a href=
"LuCI.form.TableSection.html#modaltitle">modaltitle
</a></li>
1428 <li data-name=
"LuCI.form.TableSection##rowcolors"><a href=
"LuCI.form.TableSection.html#rowcolors">rowcolors
</a></li>
1430 <li data-name=
"LuCI.form.TableSection##sectiontitle"><a href=
"LuCI.form.TableSection.html#sectiontitle">sectiontitle
</a></li>
1432 <li data-name=
"LuCI.form.TableSection##sortable"><a href=
"LuCI.form.TableSection.html#sortable">sortable
</a></li>
1434 <li data-name=
"LuCI.form.TableSection##uciconfig"><a href=
"LuCI.form.TableSection.html#uciconfig">uciconfig
</a></li>
1436 <li data-name=
"LuCI.form.TableSection#addbtntitle"><a href=
"LuCI.form.TableSection.html#addbtntitle">addbtntitle
</a></li>
1438 <li data-name=
"LuCI.form.TableSection#addremove"><a href=
"LuCI.form.TableSection.html#addremove">addremove
</a></li>
1440 <li data-name=
"LuCI.form.TableSection#anonymous"><a href=
"LuCI.form.TableSection.html#anonymous">anonymous
</a></li>
1442 <li data-name=
"LuCI.form.TableSection#parentoption"><a href=
"LuCI.form.TableSection.html#parentoption">parentoption
</a></li>
1444 <li data-name=
"LuCI.form.TableSection#tabbed"><a href=
"LuCI.form.TableSection.html#tabbed">tabbed
</a></li>
1446 <li data-name=
"LuCI.form.TableSection#uciconfig"><a href=
"LuCI.form.TableSection.html#uciconfig">uciconfig
</a></li>
1449 <ul class=
"typedefs itemMembers">
1452 <ul class=
"typedefs itemMembers">
1455 <ul class=
"methods itemMembers">
1457 <span class=
"subtitle">Methods
</span>
1459 <li data-name=
"LuCI.form.TableSection#addModalOptions"><a href=
"LuCI.form.TableSection.html#addModalOptions">addModalOptions
</a></li>
1461 <li data-name=
"LuCI.form.TableSection#append"><a href=
"LuCI.form.TableSection.html#append">append
</a></li>
1463 <li data-name=
"LuCI.form.TableSection#filter"><a href=
"LuCI.form.TableSection.html#filter">filter
</a></li>
1465 <li data-name=
"LuCI.form.TableSection#load"><a href=
"LuCI.form.TableSection.html#load">load
</a></li>
1467 <li data-name=
"LuCI.form.TableSection#option"><a href=
"LuCI.form.TableSection.html#option">option
</a></li>
1469 <li data-name=
"LuCI.form.TableSection#parse"><a href=
"LuCI.form.TableSection.html#parse">parse
</a></li>
1471 <li data-name=
"LuCI.form.TableSection#stripTags"><a href=
"LuCI.form.TableSection.html#stripTags">stripTags
</a></li>
1473 <li data-name=
"LuCI.form.TableSection#tab"><a href=
"LuCI.form.TableSection.html#tab">tab
</a></li>
1475 <li data-name=
"LuCI.form.TableSection#taboption"><a href=
"LuCI.form.TableSection.html#taboption">taboption
</a></li>
1477 <li data-name=
"LuCI.form.TableSection#titleFn"><a href=
"LuCI.form.TableSection.html#titleFn">titleFn
</a></li>
1480 <ul class=
"events itemMembers">
1485 <li class=
"item" data-name=
"LuCI.form.TextValue">
1486 <span class=
"title">
1487 <a href=
"LuCI.form.TextValue.html">LuCI.form.TextValue
</a>
1490 <ul class=
"members itemMembers">
1492 <span class=
"subtitle">Members
</span>
1494 <li data-name=
"LuCI.form.TextValue##cols"><a href=
"LuCI.form.TextValue.html#cols">cols
</a></li>
1496 <li data-name=
"LuCI.form.TextValue##monospace"><a href=
"LuCI.form.TextValue.html#monospace">monospace
</a></li>
1498 <li data-name=
"LuCI.form.TextValue##rows"><a href=
"LuCI.form.TextValue.html#rows">rows
</a></li>
1500 <li data-name=
"LuCI.form.TextValue##wrap"><a href=
"LuCI.form.TextValue.html#wrap">wrap
</a></li>
1502 <li data-name=
"LuCI.form.TextValue#datatype"><a href=
"LuCI.form.TextValue.html#datatype">datatype
</a></li>
1504 <li data-name=
"LuCI.form.TextValue#default"><a href=
"LuCI.form.TextValue.html#default">default
</a></li>
1506 <li data-name=
"LuCI.form.TextValue#editable"><a href=
"LuCI.form.TextValue.html#editable">editable
</a></li>
1508 <li data-name=
"LuCI.form.TextValue#modalonly"><a href=
"LuCI.form.TextValue.html#modalonly">modalonly
</a></li>
1510 <li data-name=
"LuCI.form.TextValue#optional"><a href=
"LuCI.form.TextValue.html#optional">optional
</a></li>
1512 <li data-name=
"LuCI.form.TextValue#password"><a href=
"LuCI.form.TextValue.html#password">password
</a></li>
1514 <li data-name=
"LuCI.form.TextValue#placeholder"><a href=
"LuCI.form.TextValue.html#placeholder">placeholder
</a></li>
1516 <li data-name=
"LuCI.form.TextValue#rmempty"><a href=
"LuCI.form.TextValue.html#rmempty">rmempty
</a></li>
1518 <li data-name=
"LuCI.form.TextValue#uciconfig"><a href=
"LuCI.form.TextValue.html#uciconfig">uciconfig
</a></li>
1520 <li data-name=
"LuCI.form.TextValue#ucioption"><a href=
"LuCI.form.TextValue.html#ucioption">ucioption
</a></li>
1522 <li data-name=
"LuCI.form.TextValue#ucisection"><a href=
"LuCI.form.TextValue.html#ucisection">ucisection
</a></li>
1524 <li data-name=
"LuCI.form.TextValue#validate"><a href=
"LuCI.form.TextValue.html#validate">validate
</a></li>
1526 <li data-name=
"LuCI.form.TextValue#width"><a href=
"LuCI.form.TextValue.html#width">width
</a></li>
1529 <ul class=
"typedefs itemMembers">
1532 <ul class=
"typedefs itemMembers">
1535 <ul class=
"methods itemMembers">
1537 <span class=
"subtitle">Methods
</span>
1539 <li data-name=
"LuCI.form.TextValue#append"><a href=
"LuCI.form.TextValue.html#append">append
</a></li>
1541 <li data-name=
"LuCI.form.TextValue#cbid"><a href=
"LuCI.form.TextValue.html#cbid">cbid
</a></li>
1543 <li data-name=
"LuCI.form.TextValue#cfgvalue"><a href=
"LuCI.form.TextValue.html#cfgvalue">cfgvalue
</a></li>
1545 <li data-name=
"LuCI.form.TextValue#depends"><a href=
"LuCI.form.TextValue.html#depends">depends
</a></li>
1547 <li data-name=
"LuCI.form.TextValue#formvalue"><a href=
"LuCI.form.TextValue.html#formvalue">formvalue
</a></li>
1549 <li data-name=
"LuCI.form.TextValue#getUIElement"><a href=
"LuCI.form.TextValue.html#getUIElement">getUIElement
</a></li>
1551 <li data-name=
"LuCI.form.TextValue#isActive"><a href=
"LuCI.form.TextValue.html#isActive">isActive
</a></li>
1553 <li data-name=
"LuCI.form.TextValue#isValid"><a href=
"LuCI.form.TextValue.html#isValid">isValid
</a></li>
1555 <li data-name=
"LuCI.form.TextValue#load"><a href=
"LuCI.form.TextValue.html#load">load
</a></li>
1557 <li data-name=
"LuCI.form.TextValue#parse"><a href=
"LuCI.form.TextValue.html#parse">parse
</a></li>
1559 <li data-name=
"LuCI.form.TextValue#remove"><a href=
"LuCI.form.TextValue.html#remove">remove
</a></li>
1561 <li data-name=
"LuCI.form.TextValue#stripTags"><a href=
"LuCI.form.TextValue.html#stripTags">stripTags
</a></li>
1563 <li data-name=
"LuCI.form.TextValue#textvalue"><a href=
"LuCI.form.TextValue.html#textvalue">textvalue
</a></li>
1565 <li data-name=
"LuCI.form.TextValue#titleFn"><a href=
"LuCI.form.TextValue.html#titleFn">titleFn
</a></li>
1567 <li data-name=
"LuCI.form.TextValue#write"><a href=
"LuCI.form.TextValue.html#write">write
</a></li>
1570 <ul class=
"events itemMembers">
1575 <li class=
"item" data-name=
"LuCI.form.TypedSection">
1576 <span class=
"title">
1577 <a href=
"LuCI.form.TypedSection.html">LuCI.form.TypedSection
</a>
1580 <ul class=
"members itemMembers">
1582 <span class=
"subtitle">Members
</span>
1584 <li data-name=
"LuCI.form.TypedSection##addbtntitle"><a href=
"LuCI.form.TypedSection.html#addbtntitle">addbtntitle
</a></li>
1586 <li data-name=
"LuCI.form.TypedSection##addremove"><a href=
"LuCI.form.TypedSection.html#addremove">addremove
</a></li>
1588 <li data-name=
"LuCI.form.TypedSection##anonymous"><a href=
"LuCI.form.TypedSection.html#anonymous">anonymous
</a></li>
1590 <li data-name=
"LuCI.form.TypedSection##tabbed"><a href=
"LuCI.form.TypedSection.html#tabbed">tabbed
</a></li>
1592 <li data-name=
"LuCI.form.TypedSection##uciconfig"><a href=
"LuCI.form.TypedSection.html#uciconfig">uciconfig
</a></li>
1594 <li data-name=
"LuCI.form.TypedSection#parentoption"><a href=
"LuCI.form.TypedSection.html#parentoption">parentoption
</a></li>
1597 <ul class=
"typedefs itemMembers">
1600 <ul class=
"typedefs itemMembers">
1603 <ul class=
"methods itemMembers">
1605 <span class=
"subtitle">Methods
</span>
1607 <li data-name=
"LuCI.form.TypedSection#append"><a href=
"LuCI.form.TypedSection.html#append">append
</a></li>
1609 <li data-name=
"LuCI.form.TypedSection#cfgsections"><a href=
"LuCI.form.TypedSection.html#cfgsections">cfgsections
</a></li>
1611 <li data-name=
"LuCI.form.TypedSection#filter"><a href=
"LuCI.form.TypedSection.html#filter">filter
</a></li>
1613 <li data-name=
"LuCI.form.TypedSection#load"><a href=
"LuCI.form.TypedSection.html#load">load
</a></li>
1615 <li data-name=
"LuCI.form.TypedSection#option"><a href=
"LuCI.form.TypedSection.html#option">option
</a></li>
1617 <li data-name=
"LuCI.form.TypedSection#parse"><a href=
"LuCI.form.TypedSection.html#parse">parse
</a></li>
1619 <li data-name=
"LuCI.form.TypedSection#render"><a href=
"LuCI.form.TypedSection.html#render">render
</a></li>
1621 <li data-name=
"LuCI.form.TypedSection#stripTags"><a href=
"LuCI.form.TypedSection.html#stripTags">stripTags
</a></li>
1623 <li data-name=
"LuCI.form.TypedSection#tab"><a href=
"LuCI.form.TypedSection.html#tab">tab
</a></li>
1625 <li data-name=
"LuCI.form.TypedSection#taboption"><a href=
"LuCI.form.TypedSection.html#taboption">taboption
</a></li>
1627 <li data-name=
"LuCI.form.TypedSection#titleFn"><a href=
"LuCI.form.TypedSection.html#titleFn">titleFn
</a></li>
1630 <ul class=
"events itemMembers">
1635 <li class=
"item" data-name=
"LuCI.form.Value">
1636 <span class=
"title">
1637 <a href=
"LuCI.form.Value.html">LuCI.form.Value
</a>
1640 <ul class=
"members itemMembers">
1642 <span class=
"subtitle">Members
</span>
1644 <li data-name=
"LuCI.form.Value##password"><a href=
"LuCI.form.Value.html#password">password
</a></li>
1646 <li data-name=
"LuCI.form.Value##placeholder"><a href=
"LuCI.form.Value.html#placeholder">placeholder
</a></li>
1648 <li data-name=
"LuCI.form.Value#datatype"><a href=
"LuCI.form.Value.html#datatype">datatype
</a></li>
1650 <li data-name=
"LuCI.form.Value#default"><a href=
"LuCI.form.Value.html#default">default
</a></li>
1652 <li data-name=
"LuCI.form.Value#editable"><a href=
"LuCI.form.Value.html#editable">editable
</a></li>
1654 <li data-name=
"LuCI.form.Value#modalonly"><a href=
"LuCI.form.Value.html#modalonly">modalonly
</a></li>
1656 <li data-name=
"LuCI.form.Value#optional"><a href=
"LuCI.form.Value.html#optional">optional
</a></li>
1658 <li data-name=
"LuCI.form.Value#rmempty"><a href=
"LuCI.form.Value.html#rmempty">rmempty
</a></li>
1660 <li data-name=
"LuCI.form.Value#uciconfig"><a href=
"LuCI.form.Value.html#uciconfig">uciconfig
</a></li>
1662 <li data-name=
"LuCI.form.Value#ucioption"><a href=
"LuCI.form.Value.html#ucioption">ucioption
</a></li>
1664 <li data-name=
"LuCI.form.Value#ucisection"><a href=
"LuCI.form.Value.html#ucisection">ucisection
</a></li>
1666 <li data-name=
"LuCI.form.Value#validate"><a href=
"LuCI.form.Value.html#validate">validate
</a></li>
1668 <li data-name=
"LuCI.form.Value#width"><a href=
"LuCI.form.Value.html#width">width
</a></li>
1671 <ul class=
"typedefs itemMembers">
1674 <ul class=
"typedefs itemMembers">
1677 <ul class=
"methods itemMembers">
1679 <span class=
"subtitle">Methods
</span>
1681 <li data-name=
"LuCI.form.Value#append"><a href=
"LuCI.form.Value.html#append">append
</a></li>
1683 <li data-name=
"LuCI.form.Value#cbid"><a href=
"LuCI.form.Value.html#cbid">cbid
</a></li>
1685 <li data-name=
"LuCI.form.Value#cfgvalue"><a href=
"LuCI.form.Value.html#cfgvalue">cfgvalue
</a></li>
1687 <li data-name=
"LuCI.form.Value#depends"><a href=
"LuCI.form.Value.html#depends">depends
</a></li>
1689 <li data-name=
"LuCI.form.Value#formvalue"><a href=
"LuCI.form.Value.html#formvalue">formvalue
</a></li>
1691 <li data-name=
"LuCI.form.Value#getUIElement"><a href=
"LuCI.form.Value.html#getUIElement">getUIElement
</a></li>
1693 <li data-name=
"LuCI.form.Value#isActive"><a href=
"LuCI.form.Value.html#isActive">isActive
</a></li>
1695 <li data-name=
"LuCI.form.Value#isValid"><a href=
"LuCI.form.Value.html#isValid">isValid
</a></li>
1697 <li data-name=
"LuCI.form.Value#load"><a href=
"LuCI.form.Value.html#load">load
</a></li>
1699 <li data-name=
"LuCI.form.Value#parse"><a href=
"LuCI.form.Value.html#parse">parse
</a></li>
1701 <li data-name=
"LuCI.form.Value#remove"><a href=
"LuCI.form.Value.html#remove">remove
</a></li>
1703 <li data-name=
"LuCI.form.Value#render"><a href=
"LuCI.form.Value.html#render">render
</a></li>
1705 <li data-name=
"LuCI.form.Value#stripTags"><a href=
"LuCI.form.Value.html#stripTags">stripTags
</a></li>
1707 <li data-name=
"LuCI.form.Value#textvalue"><a href=
"LuCI.form.Value.html#textvalue">textvalue
</a></li>
1709 <li data-name=
"LuCI.form.Value#titleFn"><a href=
"LuCI.form.Value.html#titleFn">titleFn
</a></li>
1711 <li data-name=
"LuCI.form.Value#value"><a href=
"LuCI.form.Value.html#value">value
</a></li>
1713 <li data-name=
"LuCI.form.Value#write"><a href=
"LuCI.form.Value.html#write">write
</a></li>
1716 <ul class=
"events itemMembers">
1721 <li class=
"item" data-name=
"LuCI.fs">
1722 <span class=
"title">
1723 <a href=
"LuCI.fs.html">LuCI.fs
</a>
1726 <ul class=
"members itemMembers">
1729 <ul class=
"typedefs itemMembers">
1731 <span class=
"subtitle">Typedefs
</span>
1733 <li data-name=
"LuCI.fs.FileExecResult"><a href=
"LuCI.fs.html#.FileExecResult">FileExecResult
</a></li>
1735 <li data-name=
"LuCI.fs.FileStatEntry"><a href=
"LuCI.fs.html#.FileStatEntry">FileStatEntry
</a></li>
1738 <ul class=
"typedefs itemMembers">
1741 <ul class=
"methods itemMembers">
1743 <span class=
"subtitle">Methods
</span>
1745 <li data-name=
"LuCI.fs#exec"><a href=
"LuCI.fs.html#exec">exec
</a></li>
1747 <li data-name=
"LuCI.fs#exec_direct"><a href=
"LuCI.fs.html#exec_direct">exec_direct
</a></li>
1749 <li data-name=
"LuCI.fs#lines"><a href=
"LuCI.fs.html#lines">lines
</a></li>
1751 <li data-name=
"LuCI.fs#list"><a href=
"LuCI.fs.html#list">list
</a></li>
1753 <li data-name=
"LuCI.fs#read"><a href=
"LuCI.fs.html#read">read
</a></li>
1755 <li data-name=
"LuCI.fs#read_direct"><a href=
"LuCI.fs.html#read_direct">read_direct
</a></li>
1757 <li data-name=
"LuCI.fs#remove"><a href=
"LuCI.fs.html#remove">remove
</a></li>
1759 <li data-name=
"LuCI.fs#stat"><a href=
"LuCI.fs.html#stat">stat
</a></li>
1761 <li data-name=
"LuCI.fs#trimmed"><a href=
"LuCI.fs.html#trimmed">trimmed
</a></li>
1763 <li data-name=
"LuCI.fs#write"><a href=
"LuCI.fs.html#write">write
</a></li>
1766 <ul class=
"events itemMembers">
1771 <li class=
"item" data-name=
"LuCI.headers">
1772 <span class=
"title">
1773 <a href=
"LuCI.headers.html">LuCI.headers
</a>
1776 <ul class=
"members itemMembers">
1779 <ul class=
"typedefs itemMembers">
1782 <ul class=
"typedefs itemMembers">
1785 <ul class=
"methods itemMembers">
1787 <span class=
"subtitle">Methods
</span>
1789 <li data-name=
"LuCI.headers#get"><a href=
"LuCI.headers.html#get">get
</a></li>
1791 <li data-name=
"LuCI.headers#has"><a href=
"LuCI.headers.html#has">has
</a></li>
1794 <ul class=
"events itemMembers">
1799 <li class=
"item" data-name=
"LuCI.network">
1800 <span class=
"title">
1801 <a href=
"LuCI.network.html">LuCI.network
</a>
1804 <ul class=
"members itemMembers">
1807 <ul class=
"typedefs itemMembers">
1809 <span class=
"subtitle">Typedefs
</span>
1811 <li data-name=
"LuCI.network.SwitchTopology"><a href=
"LuCI.network.html#.SwitchTopology">SwitchTopology
</a></li>
1813 <li data-name=
"LuCI.network.WifiEncryption"><a href=
"LuCI.network.html#.WifiEncryption">WifiEncryption
</a></li>
1815 <li data-name=
"LuCI.network.WifiPeerEntry"><a href=
"LuCI.network.html#.WifiPeerEntry">WifiPeerEntry
</a></li>
1817 <li data-name=
"LuCI.network.WifiRateEntry"><a href=
"LuCI.network.html#.WifiRateEntry">WifiRateEntry
</a></li>
1819 <li data-name=
"LuCI.network.WifiScanResult"><a href=
"LuCI.network.html#.WifiScanResult">WifiScanResult
</a></li>
1822 <ul class=
"typedefs itemMembers">
1825 <ul class=
"methods itemMembers">
1827 <span class=
"subtitle">Methods
</span>
1829 <li data-name=
"LuCI.network#addNetwork"><a href=
"LuCI.network.html#addNetwork">addNetwork
</a></li>
1831 <li data-name=
"LuCI.network#addWifiNetwork"><a href=
"LuCI.network.html#addWifiNetwork">addWifiNetwork
</a></li>
1833 <li data-name=
"LuCI.network#deleteNetwork"><a href=
"LuCI.network.html#deleteNetwork">deleteNetwork
</a></li>
1835 <li data-name=
"LuCI.network#deleteWifiNetwork"><a href=
"LuCI.network.html#deleteWifiNetwork">deleteWifiNetwork
</a></li>
1837 <li data-name=
"LuCI.network#flushCache"><a href=
"LuCI.network.html#flushCache">flushCache
</a></li>
1839 <li data-name=
"LuCI.network#formatWifiEncryption"><a href=
"LuCI.network.html#formatWifiEncryption">formatWifiEncryption
</a></li>
1841 <li data-name=
"LuCI.network#getDevice"><a href=
"LuCI.network.html#getDevice">getDevice
</a></li>
1843 <li data-name=
"LuCI.network#getDevices"><a href=
"LuCI.network.html#getDevices">getDevices
</a></li>
1845 <li data-name=
"LuCI.network#getDSLModemType"><a href=
"LuCI.network.html#getDSLModemType">getDSLModemType
</a></li>
1847 <li data-name=
"LuCI.network#getHostHints"><a href=
"LuCI.network.html#getHostHints">getHostHints
</a></li>
1849 <li data-name=
"LuCI.network#getIfnameOf"><a href=
"LuCI.network.html#getIfnameOf">getIfnameOf
</a></li>
1851 <li data-name=
"LuCI.network#getNetwork"><a href=
"LuCI.network.html#getNetwork">getNetwork
</a></li>
1853 <li data-name=
"LuCI.network#getNetworks"><a href=
"LuCI.network.html#getNetworks">getNetworks
</a></li>
1855 <li data-name=
"LuCI.network#getProtocol"><a href=
"LuCI.network.html#getProtocol">getProtocol
</a></li>
1857 <li data-name=
"LuCI.network#getProtocols"><a href=
"LuCI.network.html#getProtocols">getProtocols
</a></li>
1859 <li data-name=
"LuCI.network#getSwitchTopologies"><a href=
"LuCI.network.html#getSwitchTopologies">getSwitchTopologies
</a></li>
1861 <li data-name=
"LuCI.network#getWAN6Networks"><a href=
"LuCI.network.html#getWAN6Networks">getWAN6Networks
</a></li>
1863 <li data-name=
"LuCI.network#getWANNetworks"><a href=
"LuCI.network.html#getWANNetworks">getWANNetworks
</a></li>
1865 <li data-name=
"LuCI.network#getWifiDevice"><a href=
"LuCI.network.html#getWifiDevice">getWifiDevice
</a></li>
1867 <li data-name=
"LuCI.network#getWifiDevices"><a href=
"LuCI.network.html#getWifiDevices">getWifiDevices
</a></li>
1869 <li data-name=
"LuCI.network#getWifiNetwork"><a href=
"LuCI.network.html#getWifiNetwork">getWifiNetwork
</a></li>
1871 <li data-name=
"LuCI.network#getWifiNetworks"><a href=
"LuCI.network.html#getWifiNetworks">getWifiNetworks
</a></li>
1873 <li data-name=
"LuCI.network#isIgnoredDevice"><a href=
"LuCI.network.html#isIgnoredDevice">isIgnoredDevice
</a></li>
1875 <li data-name=
"LuCI.network#maskToPrefix"><a href=
"LuCI.network.html#maskToPrefix">maskToPrefix
</a></li>
1877 <li data-name=
"LuCI.network#prefixToMask"><a href=
"LuCI.network.html#prefixToMask">prefixToMask
</a></li>
1879 <li data-name=
"LuCI.network#registerErrorCode"><a href=
"LuCI.network.html#registerErrorCode">registerErrorCode
</a></li>
1881 <li data-name=
"LuCI.network#registerPatternVirtual"><a href=
"LuCI.network.html#registerPatternVirtual">registerPatternVirtual
</a></li>
1883 <li data-name=
"LuCI.network#registerProtocol"><a href=
"LuCI.network.html#registerProtocol">registerProtocol
</a></li>
1885 <li data-name=
"LuCI.network#renameNetwork"><a href=
"LuCI.network.html#renameNetwork">renameNetwork
</a></li>
1888 <ul class=
"events itemMembers">
1893 <li class=
"item" data-name=
"LuCI.network.Device">
1894 <span class=
"title">
1895 <a href=
"LuCI.network.Device.html">LuCI.network.Device
</a>
1898 <ul class=
"members itemMembers">
1901 <ul class=
"typedefs itemMembers">
1904 <ul class=
"typedefs itemMembers">
1907 <ul class=
"methods itemMembers">
1909 <span class=
"subtitle">Methods
</span>
1911 <li data-name=
"LuCI.network.Device#getBridgeID"><a href=
"LuCI.network.Device.html#getBridgeID">getBridgeID
</a></li>
1913 <li data-name=
"LuCI.network.Device#getBridgeSTP"><a href=
"LuCI.network.Device.html#getBridgeSTP">getBridgeSTP
</a></li>
1915 <li data-name=
"LuCI.network.Device#getI18n"><a href=
"LuCI.network.Device.html#getI18n">getI18n
</a></li>
1917 <li data-name=
"LuCI.network.Device#getIP6Addrs"><a href=
"LuCI.network.Device.html#getIP6Addrs">getIP6Addrs
</a></li>
1919 <li data-name=
"LuCI.network.Device#getIPAddrs"><a href=
"LuCI.network.Device.html#getIPAddrs">getIPAddrs
</a></li>
1921 <li data-name=
"LuCI.network.Device#getMAC"><a href=
"LuCI.network.Device.html#getMAC">getMAC
</a></li>
1923 <li data-name=
"LuCI.network.Device#getMTU"><a href=
"LuCI.network.Device.html#getMTU">getMTU
</a></li>
1925 <li data-name=
"LuCI.network.Device#getName"><a href=
"LuCI.network.Device.html#getName">getName
</a></li>
1927 <li data-name=
"LuCI.network.Device#getNetwork"><a href=
"LuCI.network.Device.html#getNetwork">getNetwork
</a></li>
1929 <li data-name=
"LuCI.network.Device#getNetworks"><a href=
"LuCI.network.Device.html#getNetworks">getNetworks
</a></li>
1931 <li data-name=
"LuCI.network.Device#getPorts"><a href=
"LuCI.network.Device.html#getPorts">getPorts
</a></li>
1933 <li data-name=
"LuCI.network.Device#getRXBytes"><a href=
"LuCI.network.Device.html#getRXBytes">getRXBytes
</a></li>
1935 <li data-name=
"LuCI.network.Device#getRXPackets"><a href=
"LuCI.network.Device.html#getRXPackets">getRXPackets
</a></li>
1937 <li data-name=
"LuCI.network.Device#getShortName"><a href=
"LuCI.network.Device.html#getShortName">getShortName
</a></li>
1939 <li data-name=
"LuCI.network.Device#getTXBytes"><a href=
"LuCI.network.Device.html#getTXBytes">getTXBytes
</a></li>
1941 <li data-name=
"LuCI.network.Device#getTXPackets"><a href=
"LuCI.network.Device.html#getTXPackets">getTXPackets
</a></li>
1943 <li data-name=
"LuCI.network.Device#getType"><a href=
"LuCI.network.Device.html#getType">getType
</a></li>
1945 <li data-name=
"LuCI.network.Device#getTypeI18n"><a href=
"LuCI.network.Device.html#getTypeI18n">getTypeI18n
</a></li>
1947 <li data-name=
"LuCI.network.Device#getWifiNetwork"><a href=
"LuCI.network.Device.html#getWifiNetwork">getWifiNetwork
</a></li>
1949 <li data-name=
"LuCI.network.Device#isBridge"><a href=
"LuCI.network.Device.html#isBridge">isBridge
</a></li>
1951 <li data-name=
"LuCI.network.Device#isBridgePort"><a href=
"LuCI.network.Device.html#isBridgePort">isBridgePort
</a></li>
1953 <li data-name=
"LuCI.network.Device#isUp"><a href=
"LuCI.network.Device.html#isUp">isUp
</a></li>
1956 <ul class=
"events itemMembers">
1961 <li class=
"item" data-name=
"LuCI.network.Hosts">
1962 <span class=
"title">
1963 <a href=
"LuCI.network.Hosts.html">LuCI.network.Hosts
</a>
1966 <ul class=
"members itemMembers">
1969 <ul class=
"typedefs itemMembers">
1972 <ul class=
"typedefs itemMembers">
1975 <ul class=
"methods itemMembers">
1977 <span class=
"subtitle">Methods
</span>
1979 <li data-name=
"LuCI.network.Hosts#getHostnameByIP6Addr"><a href=
"LuCI.network.Hosts.html#getHostnameByIP6Addr">getHostnameByIP6Addr
</a></li>
1981 <li data-name=
"LuCI.network.Hosts#getHostnameByIPAddr"><a href=
"LuCI.network.Hosts.html#getHostnameByIPAddr">getHostnameByIPAddr
</a></li>
1983 <li data-name=
"LuCI.network.Hosts#getHostnameByMACAddr"><a href=
"LuCI.network.Hosts.html#getHostnameByMACAddr">getHostnameByMACAddr
</a></li>
1985 <li data-name=
"LuCI.network.Hosts#getIP6AddrByMACAddr"><a href=
"LuCI.network.Hosts.html#getIP6AddrByMACAddr">getIP6AddrByMACAddr
</a></li>
1987 <li data-name=
"LuCI.network.Hosts#getIPAddrByMACAddr"><a href=
"LuCI.network.Hosts.html#getIPAddrByMACAddr">getIPAddrByMACAddr
</a></li>
1989 <li data-name=
"LuCI.network.Hosts#getMACAddrByIP6Addr"><a href=
"LuCI.network.Hosts.html#getMACAddrByIP6Addr">getMACAddrByIP6Addr
</a></li>
1991 <li data-name=
"LuCI.network.Hosts#getMACAddrByIPAddr"><a href=
"LuCI.network.Hosts.html#getMACAddrByIPAddr">getMACAddrByIPAddr
</a></li>
1993 <li data-name=
"LuCI.network.Hosts#getMACHints"><a href=
"LuCI.network.Hosts.html#getMACHints">getMACHints
</a></li>
1996 <ul class=
"events itemMembers">
2001 <li class=
"item" data-name=
"LuCI.network.Protocol">
2002 <span class=
"title">
2003 <a href=
"LuCI.network.Protocol.html">LuCI.network.Protocol
</a>
2006 <ul class=
"members itemMembers">
2009 <ul class=
"typedefs itemMembers">
2012 <ul class=
"typedefs itemMembers">
2015 <ul class=
"methods itemMembers">
2017 <span class=
"subtitle">Methods
</span>
2019 <li data-name=
"LuCI.network.Protocol#addDevice"><a href=
"LuCI.network.Protocol.html#addDevice">addDevice
</a></li>
2021 <li data-name=
"LuCI.network.Protocol#containsDevice"><a href=
"LuCI.network.Protocol.html#containsDevice">containsDevice
</a></li>
2023 <li data-name=
"LuCI.network.Protocol#deleteConfiguration"><a href=
"LuCI.network.Protocol.html#deleteConfiguration">deleteConfiguration
</a></li>
2025 <li data-name=
"LuCI.network.Protocol#deleteDevice"><a href=
"LuCI.network.Protocol.html#deleteDevice">deleteDevice
</a></li>
2027 <li data-name=
"LuCI.network.Protocol#get"><a href=
"LuCI.network.Protocol.html#get">get
</a></li>
2029 <li data-name=
"LuCI.network.Protocol#getDevice"><a href=
"LuCI.network.Protocol.html#getDevice">getDevice
</a></li>
2031 <li data-name=
"LuCI.network.Protocol#getDevices"><a href=
"LuCI.network.Protocol.html#getDevices">getDevices
</a></li>
2033 <li data-name=
"LuCI.network.Protocol#getDNS6Addrs"><a href=
"LuCI.network.Protocol.html#getDNS6Addrs">getDNS6Addrs
</a></li>
2035 <li data-name=
"LuCI.network.Protocol#getDNSAddrs"><a href=
"LuCI.network.Protocol.html#getDNSAddrs">getDNSAddrs
</a></li>
2037 <li data-name=
"LuCI.network.Protocol#getErrors"><a href=
"LuCI.network.Protocol.html#getErrors">getErrors
</a></li>
2039 <li data-name=
"LuCI.network.Protocol#getExpiry"><a href=
"LuCI.network.Protocol.html#getExpiry">getExpiry
</a></li>
2041 <li data-name=
"LuCI.network.Protocol#getGateway6Addr"><a href=
"LuCI.network.Protocol.html#getGateway6Addr">getGateway6Addr
</a></li>
2043 <li data-name=
"LuCI.network.Protocol#getGatewayAddr"><a href=
"LuCI.network.Protocol.html#getGatewayAddr">getGatewayAddr
</a></li>
2045 <li data-name=
"LuCI.network.Protocol#getI18n"><a href=
"LuCI.network.Protocol.html#getI18n">getI18n
</a></li>
2047 <li data-name=
"LuCI.network.Protocol#getIfname"><a href=
"LuCI.network.Protocol.html#getIfname">getIfname
</a></li>
2049 <li data-name=
"LuCI.network.Protocol#getIP6Addr"><a href=
"LuCI.network.Protocol.html#getIP6Addr">getIP6Addr
</a></li>
2051 <li data-name=
"LuCI.network.Protocol#getIP6Addrs"><a href=
"LuCI.network.Protocol.html#getIP6Addrs">getIP6Addrs
</a></li>
2053 <li data-name=
"LuCI.network.Protocol#getIP6Prefix"><a href=
"LuCI.network.Protocol.html#getIP6Prefix">getIP6Prefix
</a></li>
2055 <li data-name=
"LuCI.network.Protocol#getIPAddr"><a href=
"LuCI.network.Protocol.html#getIPAddr">getIPAddr
</a></li>
2057 <li data-name=
"LuCI.network.Protocol#getIPAddrs"><a href=
"LuCI.network.Protocol.html#getIPAddrs">getIPAddrs
</a></li>
2059 <li data-name=
"LuCI.network.Protocol#getL2Device"><a href=
"LuCI.network.Protocol.html#getL2Device">getL2Device
</a></li>
2061 <li data-name=
"LuCI.network.Protocol#getL3Device"><a href=
"LuCI.network.Protocol.html#getL3Device">getL3Device
</a></li>
2063 <li data-name=
"LuCI.network.Protocol#getMetric"><a href=
"LuCI.network.Protocol.html#getMetric">getMetric
</a></li>
2065 <li data-name=
"LuCI.network.Protocol#getName"><a href=
"LuCI.network.Protocol.html#getName">getName
</a></li>
2067 <li data-name=
"LuCI.network.Protocol#getNetmask"><a href=
"LuCI.network.Protocol.html#getNetmask">getNetmask
</a></li>
2069 <li data-name=
"LuCI.network.Protocol#getOpkgPackage"><a href=
"LuCI.network.Protocol.html#getOpkgPackage">getOpkgPackage
</a></li>
2071 <li data-name=
"LuCI.network.Protocol#getProtocol"><a href=
"LuCI.network.Protocol.html#getProtocol">getProtocol
</a></li>
2073 <li data-name=
"LuCI.network.Protocol#getType"><a href=
"LuCI.network.Protocol.html#getType">getType
</a></li>
2075 <li data-name=
"LuCI.network.Protocol#getUptime"><a href=
"LuCI.network.Protocol.html#getUptime">getUptime
</a></li>
2077 <li data-name=
"LuCI.network.Protocol#getZoneName"><a href=
"LuCI.network.Protocol.html#getZoneName">getZoneName
</a></li>
2079 <li data-name=
"LuCI.network.Protocol#isAlias"><a href=
"LuCI.network.Protocol.html#isAlias">isAlias
</a></li>
2081 <li data-name=
"LuCI.network.Protocol#isBridge"><a href=
"LuCI.network.Protocol.html#isBridge">isBridge
</a></li>
2083 <li data-name=
"LuCI.network.Protocol#isCreateable"><a href=
"LuCI.network.Protocol.html#isCreateable">isCreateable
</a></li>
2085 <li data-name=
"LuCI.network.Protocol#isDynamic"><a href=
"LuCI.network.Protocol.html#isDynamic">isDynamic
</a></li>
2087 <li data-name=
"LuCI.network.Protocol#isEmpty"><a href=
"LuCI.network.Protocol.html#isEmpty">isEmpty
</a></li>
2089 <li data-name=
"LuCI.network.Protocol#isFloating"><a href=
"LuCI.network.Protocol.html#isFloating">isFloating
</a></li>
2091 <li data-name=
"LuCI.network.Protocol#isInstalled"><a href=
"LuCI.network.Protocol.html#isInstalled">isInstalled
</a></li>
2093 <li data-name=
"LuCI.network.Protocol#isUp"><a href=
"LuCI.network.Protocol.html#isUp">isUp
</a></li>
2095 <li data-name=
"LuCI.network.Protocol#isVirtual"><a href=
"LuCI.network.Protocol.html#isVirtual">isVirtual
</a></li>
2097 <li data-name=
"LuCI.network.Protocol#set"><a href=
"LuCI.network.Protocol.html#set">set
</a></li>
2100 <ul class=
"events itemMembers">
2105 <li class=
"item" data-name=
"LuCI.network.WifiDevice">
2106 <span class=
"title">
2107 <a href=
"LuCI.network.WifiDevice.html">LuCI.network.WifiDevice
</a>
2110 <ul class=
"members itemMembers">
2113 <ul class=
"typedefs itemMembers">
2116 <ul class=
"typedefs itemMembers">
2119 <ul class=
"methods itemMembers">
2121 <span class=
"subtitle">Methods
</span>
2123 <li data-name=
"LuCI.network.WifiDevice#addWifiNetwork"><a href=
"LuCI.network.WifiDevice.html#addWifiNetwork">addWifiNetwork
</a></li>
2125 <li data-name=
"LuCI.network.WifiDevice#deleteWifiNetwork"><a href=
"LuCI.network.WifiDevice.html#deleteWifiNetwork">deleteWifiNetwork
</a></li>
2127 <li data-name=
"LuCI.network.WifiDevice#get"><a href=
"LuCI.network.WifiDevice.html#get">get
</a></li>
2129 <li data-name=
"LuCI.network.WifiDevice#getHTModes"><a href=
"LuCI.network.WifiDevice.html#getHTModes">getHTModes
</a></li>
2131 <li data-name=
"LuCI.network.WifiDevice#getHWModes"><a href=
"LuCI.network.WifiDevice.html#getHWModes">getHWModes
</a></li>
2133 <li data-name=
"LuCI.network.WifiDevice#getI18n"><a href=
"LuCI.network.WifiDevice.html#getI18n">getI18n
</a></li>
2135 <li data-name=
"LuCI.network.WifiDevice#getName"><a href=
"LuCI.network.WifiDevice.html#getName">getName
</a></li>
2137 <li data-name=
"LuCI.network.WifiDevice#getScanList"><a href=
"LuCI.network.WifiDevice.html#getScanList">getScanList
</a></li>
2139 <li data-name=
"LuCI.network.WifiDevice#getWifiNetwork"><a href=
"LuCI.network.WifiDevice.html#getWifiNetwork">getWifiNetwork
</a></li>
2141 <li data-name=
"LuCI.network.WifiDevice#getWifiNetworks"><a href=
"LuCI.network.WifiDevice.html#getWifiNetworks">getWifiNetworks
</a></li>
2143 <li data-name=
"LuCI.network.WifiDevice#isDisabled"><a href=
"LuCI.network.WifiDevice.html#isDisabled">isDisabled
</a></li>
2145 <li data-name=
"LuCI.network.WifiDevice#isUp"><a href=
"LuCI.network.WifiDevice.html#isUp">isUp
</a></li>
2147 <li data-name=
"LuCI.network.WifiDevice#set"><a href=
"LuCI.network.WifiDevice.html#set">set
</a></li>
2150 <ul class=
"events itemMembers">
2155 <li class=
"item" data-name=
"LuCI.network.WifiNetwork">
2156 <span class=
"title">
2157 <a href=
"LuCI.network.WifiNetwork.html">LuCI.network.WifiNetwork
</a>
2160 <ul class=
"members itemMembers">
2163 <ul class=
"typedefs itemMembers">
2166 <ul class=
"typedefs itemMembers">
2169 <ul class=
"methods itemMembers">
2171 <span class=
"subtitle">Methods
</span>
2173 <li data-name=
"LuCI.network.WifiNetwork#disconnectClient"><a href=
"LuCI.network.WifiNetwork.html#disconnectClient">disconnectClient
</a></li>
2175 <li data-name=
"LuCI.network.WifiNetwork#get"><a href=
"LuCI.network.WifiNetwork.html#get">get
</a></li>
2177 <li data-name=
"LuCI.network.WifiNetwork#getActiveBSSID"><a href=
"LuCI.network.WifiNetwork.html#getActiveBSSID">getActiveBSSID
</a></li>
2179 <li data-name=
"LuCI.network.WifiNetwork#getActiveEncryption"><a href=
"LuCI.network.WifiNetwork.html#getActiveEncryption">getActiveEncryption
</a></li>
2181 <li data-name=
"LuCI.network.WifiNetwork#getActiveMode"><a href=
"LuCI.network.WifiNetwork.html#getActiveMode">getActiveMode
</a></li>
2183 <li data-name=
"LuCI.network.WifiNetwork#getActiveModeI18n"><a href=
"LuCI.network.WifiNetwork.html#getActiveModeI18n">getActiveModeI18n
</a></li>
2185 <li data-name=
"LuCI.network.WifiNetwork#getActiveSSID"><a href=
"LuCI.network.WifiNetwork.html#getActiveSSID">getActiveSSID
</a></li>
2187 <li data-name=
"LuCI.network.WifiNetwork#getAssocList"><a href=
"LuCI.network.WifiNetwork.html#getAssocList">getAssocList
</a></li>
2189 <li data-name=
"LuCI.network.WifiNetwork#getBitRate"><a href=
"LuCI.network.WifiNetwork.html#getBitRate">getBitRate
</a></li>
2191 <li data-name=
"LuCI.network.WifiNetwork#getBSSID"><a href=
"LuCI.network.WifiNetwork.html#getBSSID">getBSSID
</a></li>
2193 <li data-name=
"LuCI.network.WifiNetwork#getChannel"><a href=
"LuCI.network.WifiNetwork.html#getChannel">getChannel
</a></li>
2195 <li data-name=
"LuCI.network.WifiNetwork#getCountryCode"><a href=
"LuCI.network.WifiNetwork.html#getCountryCode">getCountryCode
</a></li>
2197 <li data-name=
"LuCI.network.WifiNetwork#getDevice"><a href=
"LuCI.network.WifiNetwork.html#getDevice">getDevice
</a></li>
2199 <li data-name=
"LuCI.network.WifiNetwork#getFrequency"><a href=
"LuCI.network.WifiNetwork.html#getFrequency">getFrequency
</a></li>
2201 <li data-name=
"LuCI.network.WifiNetwork#getI18n"><a href=
"LuCI.network.WifiNetwork.html#getI18n">getI18n
</a></li>
2203 <li data-name=
"LuCI.network.WifiNetwork#getID"><a href=
"LuCI.network.WifiNetwork.html#getID">getID
</a></li>
2205 <li data-name=
"LuCI.network.WifiNetwork#getIfname"><a href=
"LuCI.network.WifiNetwork.html#getIfname">getIfname
</a></li>
2207 <li data-name=
"LuCI.network.WifiNetwork#getMeshID"><a href=
"LuCI.network.WifiNetwork.html#getMeshID">getMeshID
</a></li>
2209 <li data-name=
"LuCI.network.WifiNetwork#getMode"><a href=
"LuCI.network.WifiNetwork.html#getMode">getMode
</a></li>
2211 <li data-name=
"LuCI.network.WifiNetwork#getName"><a href=
"LuCI.network.WifiNetwork.html#getName">getName
</a></li>
2213 <li data-name=
"LuCI.network.WifiNetwork#getNetwork"><a href=
"LuCI.network.WifiNetwork.html#getNetwork">getNetwork
</a></li>
2215 <li data-name=
"LuCI.network.WifiNetwork#getNetworkNames"><a href=
"LuCI.network.WifiNetwork.html#getNetworkNames">getNetworkNames
</a></li>
2217 <li data-name=
"LuCI.network.WifiNetwork#getNetworks"><a href=
"LuCI.network.WifiNetwork.html#getNetworks">getNetworks
</a></li>
2219 <li data-name=
"LuCI.network.WifiNetwork#getNoise"><a href=
"LuCI.network.WifiNetwork.html#getNoise">getNoise
</a></li>
2221 <li data-name=
"LuCI.network.WifiNetwork#getShortName"><a href=
"LuCI.network.WifiNetwork.html#getShortName">getShortName
</a></li>
2223 <li data-name=
"LuCI.network.WifiNetwork#getSignal"><a href=
"LuCI.network.WifiNetwork.html#getSignal">getSignal
</a></li>
2225 <li data-name=
"LuCI.network.WifiNetwork#getSignalLevel"><a href=
"LuCI.network.WifiNetwork.html#getSignalLevel">getSignalLevel
</a></li>
2227 <li data-name=
"LuCI.network.WifiNetwork#getSignalPercent"><a href=
"LuCI.network.WifiNetwork.html#getSignalPercent">getSignalPercent
</a></li>
2229 <li data-name=
"LuCI.network.WifiNetwork#getSSID"><a href=
"LuCI.network.WifiNetwork.html#getSSID">getSSID
</a></li>
2231 <li data-name=
"LuCI.network.WifiNetwork#getTXPower"><a href=
"LuCI.network.WifiNetwork.html#getTXPower">getTXPower
</a></li>
2233 <li data-name=
"LuCI.network.WifiNetwork#getTXPowerOffset"><a href=
"LuCI.network.WifiNetwork.html#getTXPowerOffset">getTXPowerOffset
</a></li>
2235 <li data-name=
"LuCI.network.WifiNetwork#getWifiDevice"><a href=
"LuCI.network.WifiNetwork.html#getWifiDevice">getWifiDevice
</a></li>
2237 <li data-name=
"LuCI.network.WifiNetwork#getWifiDeviceName"><a href=
"LuCI.network.WifiNetwork.html#getWifiDeviceName">getWifiDeviceName
</a></li>
2239 <li data-name=
"LuCI.network.WifiNetwork#isClientDisconnectSupported"><a href=
"LuCI.network.WifiNetwork.html#isClientDisconnectSupported">isClientDisconnectSupported
</a></li>
2241 <li data-name=
"LuCI.network.WifiNetwork#isDisabled"><a href=
"LuCI.network.WifiNetwork.html#isDisabled">isDisabled
</a></li>
2243 <li data-name=
"LuCI.network.WifiNetwork#isUp"><a href=
"LuCI.network.WifiNetwork.html#isUp">isUp
</a></li>
2245 <li data-name=
"LuCI.network.WifiNetwork#set"><a href=
"LuCI.network.WifiNetwork.html#set">set
</a></li>
2248 <ul class=
"events itemMembers">
2253 <li class=
"item" data-name=
"LuCI.poll">
2254 <span class=
"title">
2255 <a href=
"LuCI.poll.html">LuCI.poll
</a>
2258 <ul class=
"members itemMembers">
2261 <ul class=
"typedefs itemMembers">
2264 <ul class=
"typedefs itemMembers">
2267 <ul class=
"methods itemMembers">
2269 <span class=
"subtitle">Methods
</span>
2271 <li data-name=
"LuCI.poll#active"><a href=
"LuCI.poll.html#active">active
</a></li>
2273 <li data-name=
"LuCI.poll#add"><a href=
"LuCI.poll.html#add">add
</a></li>
2275 <li data-name=
"LuCI.poll#remove"><a href=
"LuCI.poll.html#remove">remove
</a></li>
2277 <li data-name=
"LuCI.poll#start"><a href=
"LuCI.poll.html#start">start
</a></li>
2279 <li data-name=
"LuCI.poll#stop"><a href=
"LuCI.poll.html#stop">stop
</a></li>
2282 <ul class=
"events itemMembers">
2287 <li class=
"item" data-name=
"LuCI.request">
2288 <span class=
"title">
2289 <a href=
"LuCI.request.html">LuCI.request
</a>
2292 <ul class=
"members itemMembers">
2295 <ul class=
"typedefs itemMembers">
2297 <span class=
"subtitle">Typedefs
</span>
2299 <li data-name=
"LuCI.request.interceptorFn"><a href=
"LuCI.request.html#.interceptorFn">interceptorFn
</a></li>
2301 <li data-name=
"LuCI.request.RequestOptions"><a href=
"LuCI.request.html#.RequestOptions">RequestOptions
</a></li>
2304 <ul class=
"typedefs itemMembers">
2307 <ul class=
"methods itemMembers">
2309 <span class=
"subtitle">Methods
</span>
2311 <li data-name=
"LuCI.request#addInterceptor"><a href=
"LuCI.request.html#addInterceptor">addInterceptor
</a></li>
2313 <li data-name=
"LuCI.request#expandURL"><a href=
"LuCI.request.html#expandURL">expandURL
</a></li>
2315 <li data-name=
"LuCI.request#get"><a href=
"LuCI.request.html#get">get
</a></li>
2317 <li data-name=
"LuCI.request#post"><a href=
"LuCI.request.html#post">post
</a></li>
2319 <li data-name=
"LuCI.request#removeInterceptor"><a href=
"LuCI.request.html#removeInterceptor">removeInterceptor
</a></li>
2321 <li data-name=
"LuCI.request#request"><a href=
"LuCI.request.html#request">request
</a></li>
2324 <ul class=
"events itemMembers">
2329 <li class=
"item" data-name=
"LuCI.request.poll">
2330 <span class=
"title">
2331 <a href=
"LuCI.request.poll.html">LuCI.request.poll
</a>
2334 <ul class=
"members itemMembers">
2337 <ul class=
"typedefs itemMembers">
2339 <span class=
"subtitle">Typedefs
</span>
2341 <li data-name=
"LuCI.request.poll~callbackFn"><a href=
"LuCI.request.poll.html#~callbackFn">callbackFn
</a></li>
2344 <ul class=
"typedefs itemMembers">
2347 <ul class=
"methods itemMembers">
2349 <span class=
"subtitle">Methods
</span>
2351 <li data-name=
"LuCI.request.poll#active"><a href=
"LuCI.request.poll.html#active">active
</a></li>
2353 <li data-name=
"LuCI.request.poll#add"><a href=
"LuCI.request.poll.html#add">add
</a></li>
2355 <li data-name=
"LuCI.request.poll#remove"><a href=
"LuCI.request.poll.html#remove">remove
</a></li>
2357 <li data-name=
"LuCI.request.poll#start"><a href=
"LuCI.request.poll.html#start">start
</a></li>
2359 <li data-name=
"LuCI.request.poll#stop"><a href=
"LuCI.request.poll.html#stop">stop
</a></li>
2362 <ul class=
"events itemMembers">
2367 <li class=
"item" data-name=
"LuCI.response">
2368 <span class=
"title">
2369 <a href=
"LuCI.response.html">LuCI.response
</a>
2372 <ul class=
"members itemMembers">
2374 <span class=
"subtitle">Members
</span>
2376 <li data-name=
"LuCI.response#duration"><a href=
"LuCI.response.html#duration">duration
</a></li>
2378 <li data-name=
"LuCI.response#headers"><a href=
"LuCI.response.html#headers">headers
</a></li>
2380 <li data-name=
"LuCI.response#ok"><a href=
"LuCI.response.html#ok">ok
</a></li>
2382 <li data-name=
"LuCI.response#status"><a href=
"LuCI.response.html#status">status
</a></li>
2384 <li data-name=
"LuCI.response#statusText"><a href=
"LuCI.response.html#statusText">statusText
</a></li>
2386 <li data-name=
"LuCI.response#url"><a href=
"LuCI.response.html#url">url
</a></li>
2389 <ul class=
"typedefs itemMembers">
2392 <ul class=
"typedefs itemMembers">
2395 <ul class=
"methods itemMembers">
2397 <span class=
"subtitle">Methods
</span>
2399 <li data-name=
"LuCI.response#blob"><a href=
"LuCI.response.html#blob">blob
</a></li>
2401 <li data-name=
"LuCI.response#clone"><a href=
"LuCI.response.html#clone">clone
</a></li>
2403 <li data-name=
"LuCI.response#json"><a href=
"LuCI.response.html#json">json
</a></li>
2405 <li data-name=
"LuCI.response#text"><a href=
"LuCI.response.html#text">text
</a></li>
2408 <ul class=
"events itemMembers">
2413 <li class=
"item" data-name=
"LuCI.rpc">
2414 <span class=
"title">
2415 <a href=
"LuCI.rpc.html">LuCI.rpc
</a>
2418 <ul class=
"members itemMembers">
2421 <ul class=
"typedefs itemMembers">
2423 <span class=
"subtitle">Typedefs
</span>
2425 <li data-name=
"LuCI.rpc.DeclareOptions"><a href=
"LuCI.rpc.html#.DeclareOptions">DeclareOptions
</a></li>
2427 <li data-name=
"LuCI.rpc~filterFn"><a href=
"LuCI.rpc.html#~filterFn">filterFn
</a></li>
2429 <li data-name=
"LuCI.rpc~interceptorFn"><a href=
"LuCI.rpc.html#~interceptorFn">interceptorFn
</a></li>
2431 <li data-name=
"LuCI.rpc~invokeFn"><a href=
"LuCI.rpc.html#~invokeFn">invokeFn
</a></li>
2434 <ul class=
"typedefs itemMembers">
2437 <ul class=
"methods itemMembers">
2439 <span class=
"subtitle">Methods
</span>
2441 <li data-name=
"LuCI.rpc#addInterceptor"><a href=
"LuCI.rpc.html#addInterceptor">addInterceptor
</a></li>
2443 <li data-name=
"LuCI.rpc#declare"><a href=
"LuCI.rpc.html#declare">declare
</a></li>
2445 <li data-name=
"LuCI.rpc#getBaseURL"><a href=
"LuCI.rpc.html#getBaseURL">getBaseURL
</a></li>
2447 <li data-name=
"LuCI.rpc#getSessionID"><a href=
"LuCI.rpc.html#getSessionID">getSessionID
</a></li>
2449 <li data-name=
"LuCI.rpc#getStatusText"><a href=
"LuCI.rpc.html#getStatusText">getStatusText
</a></li>
2451 <li data-name=
"LuCI.rpc#list"><a href=
"LuCI.rpc.html#list">list
</a></li>
2453 <li data-name=
"LuCI.rpc#removeInterceptor"><a href=
"LuCI.rpc.html#removeInterceptor">removeInterceptor
</a></li>
2455 <li data-name=
"LuCI.rpc#setBaseURL"><a href=
"LuCI.rpc.html#setBaseURL">setBaseURL
</a></li>
2457 <li data-name=
"LuCI.rpc#setSessionID"><a href=
"LuCI.rpc.html#setSessionID">setSessionID
</a></li>
2460 <ul class=
"events itemMembers">
2465 <li class=
"item" data-name=
"LuCI.uci">
2466 <span class=
"title">
2467 <a href=
"LuCI.uci.html">LuCI.uci
</a>
2470 <ul class=
"members itemMembers">
2473 <ul class=
"typedefs itemMembers">
2475 <span class=
"subtitle">Typedefs
</span>
2477 <li data-name=
"LuCI.uci.ChangeRecord"><a href=
"LuCI.uci.html#.ChangeRecord">ChangeRecord
</a></li>
2479 <li data-name=
"LuCI.uci.SectionObject"><a href=
"LuCI.uci.html#.SectionObject">SectionObject
</a></li>
2481 <li data-name=
"LuCI.uci~sectionsFn"><a href=
"LuCI.uci.html#~sectionsFn">sectionsFn
</a></li>
2484 <ul class=
"typedefs itemMembers">
2487 <ul class=
"methods itemMembers">
2489 <span class=
"subtitle">Methods
</span>
2491 <li data-name=
"LuCI.uci#add"><a href=
"LuCI.uci.html#add">add
</a></li>
2493 <li data-name=
"LuCI.uci#apply"><a href=
"LuCI.uci.html#apply">apply
</a></li>
2495 <li data-name=
"LuCI.uci#changes"><a href=
"LuCI.uci.html#changes">changes
</a></li>
2497 <li data-name=
"LuCI.uci#createSID"><a href=
"LuCI.uci.html#createSID">createSID
</a></li>
2499 <li data-name=
"LuCI.uci#get"><a href=
"LuCI.uci.html#get">get
</a></li>
2501 <li data-name=
"LuCI.uci#get_first"><a href=
"LuCI.uci.html#get_first">get_first
</a></li>
2503 <li data-name=
"LuCI.uci#load"><a href=
"LuCI.uci.html#load">load
</a></li>
2505 <li data-name=
"LuCI.uci#move"><a href=
"LuCI.uci.html#move">move
</a></li>
2507 <li data-name=
"LuCI.uci#remove"><a href=
"LuCI.uci.html#remove">remove
</a></li>
2509 <li data-name=
"LuCI.uci#resolveSID"><a href=
"LuCI.uci.html#resolveSID">resolveSID
</a></li>
2511 <li data-name=
"LuCI.uci#save"><a href=
"LuCI.uci.html#save">save
</a></li>
2513 <li data-name=
"LuCI.uci#sections"><a href=
"LuCI.uci.html#sections">sections
</a></li>
2515 <li data-name=
"LuCI.uci#set"><a href=
"LuCI.uci.html#set">set
</a></li>
2517 <li data-name=
"LuCI.uci#set_first"><a href=
"LuCI.uci.html#set_first">set_first
</a></li>
2519 <li data-name=
"LuCI.uci#unload"><a href=
"LuCI.uci.html#unload">unload
</a></li>
2521 <li data-name=
"LuCI.uci#unset"><a href=
"LuCI.uci.html#unset">unset
</a></li>
2523 <li data-name=
"LuCI.uci#unset_first"><a href=
"LuCI.uci.html#unset_first">unset_first
</a></li>
2526 <ul class=
"events itemMembers">
2531 <li class=
"item" data-name=
"LuCI.ui">
2532 <span class=
"title">
2533 <a href=
"LuCI.ui.html">LuCI.ui
</a>
2536 <ul class=
"members itemMembers">
2539 <ul class=
"typedefs itemMembers">
2541 <span class=
"subtitle">Typedefs
</span>
2543 <li data-name=
"LuCI.ui.FileUploadReply"><a href=
"LuCI.ui.html#.FileUploadReply">FileUploadReply
</a></li>
2546 <ul class=
"typedefs itemMembers">
2549 <ul class=
"methods itemMembers">
2551 <span class=
"subtitle">Methods
</span>
2553 <li data-name=
"LuCI.ui#addNotification"><a href=
"LuCI.ui.html#addNotification">addNotification
</a></li>
2555 <li data-name=
"LuCI.ui#addValidator"><a href=
"LuCI.ui.html#addValidator">addValidator
</a></li>
2557 <li data-name=
"LuCI.ui#awaitReconnect"><a href=
"LuCI.ui.html#awaitReconnect">awaitReconnect
</a></li>
2559 <li data-name=
"LuCI.ui#createHandlerFn"><a href=
"LuCI.ui.html#createHandlerFn">createHandlerFn
</a></li>
2561 <li data-name=
"LuCI.ui#hideIndicator"><a href=
"LuCI.ui.html#hideIndicator">hideIndicator
</a></li>
2563 <li data-name=
"LuCI.ui#hideModal"><a href=
"LuCI.ui.html#hideModal">hideModal
</a></li>
2565 <li data-name=
"LuCI.ui#instantiateView"><a href=
"LuCI.ui.html#instantiateView">instantiateView
</a></li>
2567 <li data-name=
"LuCI.ui#itemlist"><a href=
"LuCI.ui.html#itemlist">itemlist
</a></li>
2569 <li data-name=
"LuCI.ui#pingDevice"><a href=
"LuCI.ui.html#pingDevice">pingDevice
</a></li>
2571 <li data-name=
"LuCI.ui#showIndicator"><a href=
"LuCI.ui.html#showIndicator">showIndicator
</a></li>
2573 <li data-name=
"LuCI.ui#showModal"><a href=
"LuCI.ui.html#showModal">showModal
</a></li>
2575 <li data-name=
"LuCI.ui#uploadFile"><a href=
"LuCI.ui.html#uploadFile">uploadFile
</a></li>
2578 <ul class=
"events itemMembers">
2583 <li class=
"item" data-name=
"LuCI.ui.AbstractElement">
2584 <span class=
"title">
2585 <a href=
"LuCI.ui.AbstractElement.html">LuCI.ui.AbstractElement
</a>
2588 <ul class=
"members itemMembers">
2591 <ul class=
"typedefs itemMembers">
2593 <span class=
"subtitle">Typedefs
</span>
2595 <li data-name=
"LuCI.ui.AbstractElement.InitOptions"><a href=
"LuCI.ui.AbstractElement.html#.InitOptions">InitOptions
</a></li>
2598 <ul class=
"typedefs itemMembers">
2601 <ul class=
"methods itemMembers">
2603 <span class=
"subtitle">Methods
</span>
2605 <li data-name=
"LuCI.ui.AbstractElement#getValue"><a href=
"LuCI.ui.AbstractElement.html#getValue">getValue
</a></li>
2607 <li data-name=
"LuCI.ui.AbstractElement#isValid"><a href=
"LuCI.ui.AbstractElement.html#isValid">isValid
</a></li>
2609 <li data-name=
"LuCI.ui.AbstractElement#registerEvents"><a href=
"LuCI.ui.AbstractElement.html#registerEvents">registerEvents
</a></li>
2611 <li data-name=
"LuCI.ui.AbstractElement#render"><a href=
"LuCI.ui.AbstractElement.html#render">render
</a></li>
2613 <li data-name=
"LuCI.ui.AbstractElement#setChangeEvents"><a href=
"LuCI.ui.AbstractElement.html#setChangeEvents">setChangeEvents
</a></li>
2615 <li data-name=
"LuCI.ui.AbstractElement#setUpdateEvents"><a href=
"LuCI.ui.AbstractElement.html#setUpdateEvents">setUpdateEvents
</a></li>
2617 <li data-name=
"LuCI.ui.AbstractElement#setValue"><a href=
"LuCI.ui.AbstractElement.html#setValue">setValue
</a></li>
2619 <li data-name=
"LuCI.ui.AbstractElement#triggerValidation"><a href=
"LuCI.ui.AbstractElement.html#triggerValidation">triggerValidation
</a></li>
2622 <ul class=
"events itemMembers">
2627 <li class=
"item" data-name=
"LuCI.ui.changes">
2628 <span class=
"title">
2629 <a href=
"LuCI.ui.changes.html">LuCI.ui.changes
</a>
2632 <ul class=
"members itemMembers">
2635 <ul class=
"typedefs itemMembers">
2638 <ul class=
"typedefs itemMembers">
2641 <ul class=
"methods itemMembers">
2643 <span class=
"subtitle">Methods
</span>
2645 <li data-name=
"LuCI.ui.changes#apply"><a href=
"LuCI.ui.changes.html#apply">apply
</a></li>
2647 <li data-name=
"LuCI.ui.changes#displayChanges"><a href=
"LuCI.ui.changes.html#displayChanges">displayChanges
</a></li>
2649 <li data-name=
"LuCI.ui.changes#renderChangeIndicator"><a href=
"LuCI.ui.changes.html#renderChangeIndicator">renderChangeIndicator
</a></li>
2651 <li data-name=
"LuCI.ui.changes#revert"><a href=
"LuCI.ui.changes.html#revert">revert
</a></li>
2653 <li data-name=
"LuCI.ui.changes#setIndicator"><a href=
"LuCI.ui.changes.html#setIndicator">setIndicator
</a></li>
2656 <ul class=
"events itemMembers">
2661 <li class=
"item" data-name=
"LuCI.ui.Checkbox">
2662 <span class=
"title">
2663 <a href=
"LuCI.ui.Checkbox.html">LuCI.ui.Checkbox
</a>
2666 <ul class=
"members itemMembers">
2669 <ul class=
"typedefs itemMembers">
2671 <span class=
"subtitle">Typedefs
</span>
2673 <li data-name=
"LuCI.ui.Checkbox.InitOptions"><a href=
"LuCI.ui.Checkbox.html#.InitOptions">InitOptions
</a></li>
2676 <ul class=
"typedefs itemMembers">
2679 <ul class=
"methods itemMembers">
2681 <span class=
"subtitle">Methods
</span>
2683 <li data-name=
"LuCI.ui.Checkbox#getValue"><a href=
"LuCI.ui.Checkbox.html#getValue">getValue
</a></li>
2685 <li data-name=
"LuCI.ui.Checkbox#isChecked"><a href=
"LuCI.ui.Checkbox.html#isChecked">isChecked
</a></li>
2687 <li data-name=
"LuCI.ui.Checkbox#isValid"><a href=
"LuCI.ui.Checkbox.html#isValid">isValid
</a></li>
2689 <li data-name=
"LuCI.ui.Checkbox#registerEvents"><a href=
"LuCI.ui.Checkbox.html#registerEvents">registerEvents
</a></li>
2691 <li data-name=
"LuCI.ui.Checkbox#render"><a href=
"LuCI.ui.Checkbox.html#render">render
</a></li>
2693 <li data-name=
"LuCI.ui.Checkbox#setChangeEvents"><a href=
"LuCI.ui.Checkbox.html#setChangeEvents">setChangeEvents
</a></li>
2695 <li data-name=
"LuCI.ui.Checkbox#setUpdateEvents"><a href=
"LuCI.ui.Checkbox.html#setUpdateEvents">setUpdateEvents
</a></li>
2697 <li data-name=
"LuCI.ui.Checkbox#setValue"><a href=
"LuCI.ui.Checkbox.html#setValue">setValue
</a></li>
2699 <li data-name=
"LuCI.ui.Checkbox#triggerValidation"><a href=
"LuCI.ui.Checkbox.html#triggerValidation">triggerValidation
</a></li>
2702 <ul class=
"events itemMembers">
2707 <li class=
"item" data-name=
"LuCI.ui.Combobox">
2708 <span class=
"title">
2709 <a href=
"LuCI.ui.Combobox.html">LuCI.ui.Combobox
</a>
2712 <ul class=
"members itemMembers">
2715 <ul class=
"typedefs itemMembers">
2717 <span class=
"subtitle">Typedefs
</span>
2719 <li data-name=
"LuCI.ui.Combobox.InitOptions"><a href=
"LuCI.ui.Combobox.html#.InitOptions">InitOptions
</a></li>
2722 <ul class=
"typedefs itemMembers">
2725 <ul class=
"methods itemMembers">
2727 <span class=
"subtitle">Methods
</span>
2729 <li data-name=
"LuCI.ui.Combobox#addChoices"><a href=
"LuCI.ui.Combobox.html#addChoices">addChoices
</a></li>
2731 <li data-name=
"LuCI.ui.Combobox#clearChoices"><a href=
"LuCI.ui.Combobox.html#clearChoices">clearChoices
</a></li>
2733 <li data-name=
"LuCI.ui.Combobox#closeAllDropdowns"><a href=
"LuCI.ui.Combobox.html#closeAllDropdowns">closeAllDropdowns
</a></li>
2735 <li data-name=
"LuCI.ui.Combobox#isValid"><a href=
"LuCI.ui.Combobox.html#isValid">isValid
</a></li>
2737 <li data-name=
"LuCI.ui.Combobox#registerEvents"><a href=
"LuCI.ui.Combobox.html#registerEvents">registerEvents
</a></li>
2739 <li data-name=
"LuCI.ui.Combobox#setChangeEvents"><a href=
"LuCI.ui.Combobox.html#setChangeEvents">setChangeEvents
</a></li>
2741 <li data-name=
"LuCI.ui.Combobox#setUpdateEvents"><a href=
"LuCI.ui.Combobox.html#setUpdateEvents">setUpdateEvents
</a></li>
2743 <li data-name=
"LuCI.ui.Combobox#triggerValidation"><a href=
"LuCI.ui.Combobox.html#triggerValidation">triggerValidation
</a></li>
2746 <ul class=
"events itemMembers">
2751 <li class=
"item" data-name=
"LuCI.ui.ComboButton">
2752 <span class=
"title">
2753 <a href=
"LuCI.ui.ComboButton.html">LuCI.ui.ComboButton
</a>
2756 <ul class=
"members itemMembers">
2759 <ul class=
"typedefs itemMembers">
2761 <span class=
"subtitle">Typedefs
</span>
2763 <li data-name=
"LuCI.ui.ComboButton.InitOptions"><a href=
"LuCI.ui.ComboButton.html#.InitOptions">InitOptions
</a></li>
2766 <ul class=
"typedefs itemMembers">
2769 <ul class=
"methods itemMembers">
2771 <span class=
"subtitle">Methods
</span>
2773 <li data-name=
"LuCI.ui.ComboButton#addChoices"><a href=
"LuCI.ui.ComboButton.html#addChoices">addChoices
</a></li>
2775 <li data-name=
"LuCI.ui.ComboButton#clearChoices"><a href=
"LuCI.ui.ComboButton.html#clearChoices">clearChoices
</a></li>
2777 <li data-name=
"LuCI.ui.ComboButton#closeAllDropdowns"><a href=
"LuCI.ui.ComboButton.html#closeAllDropdowns">closeAllDropdowns
</a></li>
2779 <li data-name=
"LuCI.ui.ComboButton#isValid"><a href=
"LuCI.ui.ComboButton.html#isValid">isValid
</a></li>
2781 <li data-name=
"LuCI.ui.ComboButton#registerEvents"><a href=
"LuCI.ui.ComboButton.html#registerEvents">registerEvents
</a></li>
2783 <li data-name=
"LuCI.ui.ComboButton#setChangeEvents"><a href=
"LuCI.ui.ComboButton.html#setChangeEvents">setChangeEvents
</a></li>
2785 <li data-name=
"LuCI.ui.ComboButton#setUpdateEvents"><a href=
"LuCI.ui.ComboButton.html#setUpdateEvents">setUpdateEvents
</a></li>
2787 <li data-name=
"LuCI.ui.ComboButton#triggerValidation"><a href=
"LuCI.ui.ComboButton.html#triggerValidation">triggerValidation
</a></li>
2790 <ul class=
"events itemMembers">
2795 <li class=
"item" data-name=
"LuCI.ui.Dropdown">
2796 <span class=
"title">
2797 <a href=
"LuCI.ui.Dropdown.html">LuCI.ui.Dropdown
</a>
2800 <ul class=
"members itemMembers">
2803 <ul class=
"typedefs itemMembers">
2805 <span class=
"subtitle">Typedefs
</span>
2807 <li data-name=
"LuCI.ui.Dropdown.InitOptions"><a href=
"LuCI.ui.Dropdown.html#.InitOptions">InitOptions
</a></li>
2810 <ul class=
"typedefs itemMembers">
2813 <ul class=
"methods itemMembers">
2815 <span class=
"subtitle">Methods
</span>
2817 <li data-name=
"LuCI.ui.Dropdown#addChoices"><a href=
"LuCI.ui.Dropdown.html#addChoices">addChoices
</a></li>
2819 <li data-name=
"LuCI.ui.Dropdown#clearChoices"><a href=
"LuCI.ui.Dropdown.html#clearChoices">clearChoices
</a></li>
2821 <li data-name=
"LuCI.ui.Dropdown#closeAllDropdowns"><a href=
"LuCI.ui.Dropdown.html#closeAllDropdowns">closeAllDropdowns
</a></li>
2823 <li data-name=
"LuCI.ui.Dropdown#getValue"><a href=
"LuCI.ui.Dropdown.html#getValue">getValue
</a></li>
2825 <li data-name=
"LuCI.ui.Dropdown#isValid"><a href=
"LuCI.ui.Dropdown.html#isValid">isValid
</a></li>
2827 <li data-name=
"LuCI.ui.Dropdown#registerEvents"><a href=
"LuCI.ui.Dropdown.html#registerEvents">registerEvents
</a></li>
2829 <li data-name=
"LuCI.ui.Dropdown#render"><a href=
"LuCI.ui.Dropdown.html#render">render
</a></li>
2831 <li data-name=
"LuCI.ui.Dropdown#setChangeEvents"><a href=
"LuCI.ui.Dropdown.html#setChangeEvents">setChangeEvents
</a></li>
2833 <li data-name=
"LuCI.ui.Dropdown#setUpdateEvents"><a href=
"LuCI.ui.Dropdown.html#setUpdateEvents">setUpdateEvents
</a></li>
2835 <li data-name=
"LuCI.ui.Dropdown#setValue"><a href=
"LuCI.ui.Dropdown.html#setValue">setValue
</a></li>
2837 <li data-name=
"LuCI.ui.Dropdown#triggerValidation"><a href=
"LuCI.ui.Dropdown.html#triggerValidation">triggerValidation
</a></li>
2840 <ul class=
"events itemMembers">
2845 <li class=
"item" data-name=
"LuCI.ui.DynamicList">
2846 <span class=
"title">
2847 <a href=
"LuCI.ui.DynamicList.html">LuCI.ui.DynamicList
</a>
2850 <ul class=
"members itemMembers">
2853 <ul class=
"typedefs itemMembers">
2855 <span class=
"subtitle">Typedefs
</span>
2857 <li data-name=
"LuCI.ui.DynamicList.InitOptions"><a href=
"LuCI.ui.DynamicList.html#.InitOptions">InitOptions
</a></li>
2860 <ul class=
"typedefs itemMembers">
2863 <ul class=
"methods itemMembers">
2865 <span class=
"subtitle">Methods
</span>
2867 <li data-name=
"LuCI.ui.DynamicList#addChoices"><a href=
"LuCI.ui.DynamicList.html#addChoices">addChoices
</a></li>
2869 <li data-name=
"LuCI.ui.DynamicList#clearChoices"><a href=
"LuCI.ui.DynamicList.html#clearChoices">clearChoices
</a></li>
2871 <li data-name=
"LuCI.ui.DynamicList#getValue"><a href=
"LuCI.ui.DynamicList.html#getValue">getValue
</a></li>
2873 <li data-name=
"LuCI.ui.DynamicList#isValid"><a href=
"LuCI.ui.DynamicList.html#isValid">isValid
</a></li>
2875 <li data-name=
"LuCI.ui.DynamicList#registerEvents"><a href=
"LuCI.ui.DynamicList.html#registerEvents">registerEvents
</a></li>
2877 <li data-name=
"LuCI.ui.DynamicList#render"><a href=
"LuCI.ui.DynamicList.html#render">render
</a></li>
2879 <li data-name=
"LuCI.ui.DynamicList#setChangeEvents"><a href=
"LuCI.ui.DynamicList.html#setChangeEvents">setChangeEvents
</a></li>
2881 <li data-name=
"LuCI.ui.DynamicList#setUpdateEvents"><a href=
"LuCI.ui.DynamicList.html#setUpdateEvents">setUpdateEvents
</a></li>
2883 <li data-name=
"LuCI.ui.DynamicList#setValue"><a href=
"LuCI.ui.DynamicList.html#setValue">setValue
</a></li>
2885 <li data-name=
"LuCI.ui.DynamicList#triggerValidation"><a href=
"LuCI.ui.DynamicList.html#triggerValidation">triggerValidation
</a></li>
2888 <ul class=
"events itemMembers">
2893 <li class=
"item" data-name=
"LuCI.ui.FileUpload">
2894 <span class=
"title">
2895 <a href=
"LuCI.ui.FileUpload.html">LuCI.ui.FileUpload
</a>
2898 <ul class=
"members itemMembers">
2901 <ul class=
"typedefs itemMembers">
2903 <span class=
"subtitle">Typedefs
</span>
2905 <li data-name=
"LuCI.ui.FileUpload.InitOptions"><a href=
"LuCI.ui.FileUpload.html#.InitOptions">InitOptions
</a></li>
2908 <ul class=
"typedefs itemMembers">
2911 <ul class=
"methods itemMembers">
2913 <span class=
"subtitle">Methods
</span>
2915 <li data-name=
"LuCI.ui.FileUpload#getValue"><a href=
"LuCI.ui.FileUpload.html#getValue">getValue
</a></li>
2917 <li data-name=
"LuCI.ui.FileUpload#isValid"><a href=
"LuCI.ui.FileUpload.html#isValid">isValid
</a></li>
2919 <li data-name=
"LuCI.ui.FileUpload#registerEvents"><a href=
"LuCI.ui.FileUpload.html#registerEvents">registerEvents
</a></li>
2921 <li data-name=
"LuCI.ui.FileUpload#render"><a href=
"LuCI.ui.FileUpload.html#render">render
</a></li>
2923 <li data-name=
"LuCI.ui.FileUpload#setChangeEvents"><a href=
"LuCI.ui.FileUpload.html#setChangeEvents">setChangeEvents
</a></li>
2925 <li data-name=
"LuCI.ui.FileUpload#setUpdateEvents"><a href=
"LuCI.ui.FileUpload.html#setUpdateEvents">setUpdateEvents
</a></li>
2927 <li data-name=
"LuCI.ui.FileUpload#setValue"><a href=
"LuCI.ui.FileUpload.html#setValue">setValue
</a></li>
2929 <li data-name=
"LuCI.ui.FileUpload#triggerValidation"><a href=
"LuCI.ui.FileUpload.html#triggerValidation">triggerValidation
</a></li>
2932 <ul class=
"events itemMembers">
2937 <li class=
"item" data-name=
"LuCI.ui.Hiddenfield">
2938 <span class=
"title">
2939 <a href=
"LuCI.ui.Hiddenfield.html">LuCI.ui.Hiddenfield
</a>
2942 <ul class=
"members itemMembers">
2945 <ul class=
"typedefs itemMembers">
2948 <ul class=
"typedefs itemMembers">
2951 <ul class=
"methods itemMembers">
2953 <span class=
"subtitle">Methods
</span>
2955 <li data-name=
"LuCI.ui.Hiddenfield#getValue"><a href=
"LuCI.ui.Hiddenfield.html#getValue">getValue
</a></li>
2957 <li data-name=
"LuCI.ui.Hiddenfield#isValid"><a href=
"LuCI.ui.Hiddenfield.html#isValid">isValid
</a></li>
2959 <li data-name=
"LuCI.ui.Hiddenfield#registerEvents"><a href=
"LuCI.ui.Hiddenfield.html#registerEvents">registerEvents
</a></li>
2961 <li data-name=
"LuCI.ui.Hiddenfield#render"><a href=
"LuCI.ui.Hiddenfield.html#render">render
</a></li>
2963 <li data-name=
"LuCI.ui.Hiddenfield#setChangeEvents"><a href=
"LuCI.ui.Hiddenfield.html#setChangeEvents">setChangeEvents
</a></li>
2965 <li data-name=
"LuCI.ui.Hiddenfield#setUpdateEvents"><a href=
"LuCI.ui.Hiddenfield.html#setUpdateEvents">setUpdateEvents
</a></li>
2967 <li data-name=
"LuCI.ui.Hiddenfield#setValue"><a href=
"LuCI.ui.Hiddenfield.html#setValue">setValue
</a></li>
2969 <li data-name=
"LuCI.ui.Hiddenfield#triggerValidation"><a href=
"LuCI.ui.Hiddenfield.html#triggerValidation">triggerValidation
</a></li>
2972 <ul class=
"events itemMembers">
2977 <li class=
"item" data-name=
"LuCI.ui.Select">
2978 <span class=
"title">
2979 <a href=
"LuCI.ui.Select.html">LuCI.ui.Select
</a>
2982 <ul class=
"members itemMembers">
2985 <ul class=
"typedefs itemMembers">
2987 <span class=
"subtitle">Typedefs
</span>
2989 <li data-name=
"LuCI.ui.Select.InitOptions"><a href=
"LuCI.ui.Select.html#.InitOptions">InitOptions
</a></li>
2992 <ul class=
"typedefs itemMembers">
2995 <ul class=
"methods itemMembers">
2997 <span class=
"subtitle">Methods
</span>
2999 <li data-name=
"LuCI.ui.Select#getValue"><a href=
"LuCI.ui.Select.html#getValue">getValue
</a></li>
3001 <li data-name=
"LuCI.ui.Select#isValid"><a href=
"LuCI.ui.Select.html#isValid">isValid
</a></li>
3003 <li data-name=
"LuCI.ui.Select#registerEvents"><a href=
"LuCI.ui.Select.html#registerEvents">registerEvents
</a></li>
3005 <li data-name=
"LuCI.ui.Select#render"><a href=
"LuCI.ui.Select.html#render">render
</a></li>
3007 <li data-name=
"LuCI.ui.Select#setChangeEvents"><a href=
"LuCI.ui.Select.html#setChangeEvents">setChangeEvents
</a></li>
3009 <li data-name=
"LuCI.ui.Select#setUpdateEvents"><a href=
"LuCI.ui.Select.html#setUpdateEvents">setUpdateEvents
</a></li>
3011 <li data-name=
"LuCI.ui.Select#setValue"><a href=
"LuCI.ui.Select.html#setValue">setValue
</a></li>
3013 <li data-name=
"LuCI.ui.Select#triggerValidation"><a href=
"LuCI.ui.Select.html#triggerValidation">triggerValidation
</a></li>
3016 <ul class=
"events itemMembers">
3021 <li class=
"item" data-name=
"LuCI.ui.tabs">
3022 <span class=
"title">
3023 <a href=
"LuCI.ui.tabs.html">LuCI.ui.tabs
</a>
3026 <ul class=
"members itemMembers">
3029 <ul class=
"typedefs itemMembers">
3032 <ul class=
"typedefs itemMembers">
3035 <ul class=
"methods itemMembers">
3037 <span class=
"subtitle">Methods
</span>
3039 <li data-name=
"LuCI.ui.tabs#initTabGroup"><a href=
"LuCI.ui.tabs.html#initTabGroup">initTabGroup
</a></li>
3041 <li data-name=
"LuCI.ui.tabs#isEmptyPane"><a href=
"LuCI.ui.tabs.html#isEmptyPane">isEmptyPane
</a></li>
3044 <ul class=
"events itemMembers">
3049 <li class=
"item" data-name=
"LuCI.ui.Textarea">
3050 <span class=
"title">
3051 <a href=
"LuCI.ui.Textarea.html">LuCI.ui.Textarea
</a>
3054 <ul class=
"members itemMembers">
3057 <ul class=
"typedefs itemMembers">
3059 <span class=
"subtitle">Typedefs
</span>
3061 <li data-name=
"LuCI.ui.Textarea.InitOptions"><a href=
"LuCI.ui.Textarea.html#.InitOptions">InitOptions
</a></li>
3064 <ul class=
"typedefs itemMembers">
3067 <ul class=
"methods itemMembers">
3069 <span class=
"subtitle">Methods
</span>
3071 <li data-name=
"LuCI.ui.Textarea#getValue"><a href=
"LuCI.ui.Textarea.html#getValue">getValue
</a></li>
3073 <li data-name=
"LuCI.ui.Textarea#isValid"><a href=
"LuCI.ui.Textarea.html#isValid">isValid
</a></li>
3075 <li data-name=
"LuCI.ui.Textarea#registerEvents"><a href=
"LuCI.ui.Textarea.html#registerEvents">registerEvents
</a></li>
3077 <li data-name=
"LuCI.ui.Textarea#render"><a href=
"LuCI.ui.Textarea.html#render">render
</a></li>
3079 <li data-name=
"LuCI.ui.Textarea#setChangeEvents"><a href=
"LuCI.ui.Textarea.html#setChangeEvents">setChangeEvents
</a></li>
3081 <li data-name=
"LuCI.ui.Textarea#setUpdateEvents"><a href=
"LuCI.ui.Textarea.html#setUpdateEvents">setUpdateEvents
</a></li>
3083 <li data-name=
"LuCI.ui.Textarea#setValue"><a href=
"LuCI.ui.Textarea.html#setValue">setValue
</a></li>
3085 <li data-name=
"LuCI.ui.Textarea#triggerValidation"><a href=
"LuCI.ui.Textarea.html#triggerValidation">triggerValidation
</a></li>
3088 <ul class=
"events itemMembers">
3093 <li class=
"item" data-name=
"LuCI.ui.Textfield">
3094 <span class=
"title">
3095 <a href=
"LuCI.ui.Textfield.html">LuCI.ui.Textfield
</a>
3098 <ul class=
"members itemMembers">
3101 <ul class=
"typedefs itemMembers">
3103 <span class=
"subtitle">Typedefs
</span>
3105 <li data-name=
"LuCI.ui.Textfield.InitOptions"><a href=
"LuCI.ui.Textfield.html#.InitOptions">InitOptions
</a></li>
3108 <ul class=
"typedefs itemMembers">
3111 <ul class=
"methods itemMembers">
3113 <span class=
"subtitle">Methods
</span>
3115 <li data-name=
"LuCI.ui.Textfield#getValue"><a href=
"LuCI.ui.Textfield.html#getValue">getValue
</a></li>
3117 <li data-name=
"LuCI.ui.Textfield#isValid"><a href=
"LuCI.ui.Textfield.html#isValid">isValid
</a></li>
3119 <li data-name=
"LuCI.ui.Textfield#registerEvents"><a href=
"LuCI.ui.Textfield.html#registerEvents">registerEvents
</a></li>
3121 <li data-name=
"LuCI.ui.Textfield#render"><a href=
"LuCI.ui.Textfield.html#render">render
</a></li>
3123 <li data-name=
"LuCI.ui.Textfield#setChangeEvents"><a href=
"LuCI.ui.Textfield.html#setChangeEvents">setChangeEvents
</a></li>
3125 <li data-name=
"LuCI.ui.Textfield#setUpdateEvents"><a href=
"LuCI.ui.Textfield.html#setUpdateEvents">setUpdateEvents
</a></li>
3127 <li data-name=
"LuCI.ui.Textfield#setValue"><a href=
"LuCI.ui.Textfield.html#setValue">setValue
</a></li>
3129 <li data-name=
"LuCI.ui.Textfield#triggerValidation"><a href=
"LuCI.ui.Textfield.html#triggerValidation">triggerValidation
</a></li>
3132 <ul class=
"events itemMembers">
3137 <li class=
"item" data-name=
"LuCI.view">
3138 <span class=
"title">
3139 <a href=
"LuCI.view.html">LuCI.view
</a>
3142 <ul class=
"members itemMembers">
3145 <ul class=
"typedefs itemMembers">
3148 <ul class=
"typedefs itemMembers">
3151 <ul class=
"methods itemMembers">
3153 <span class=
"subtitle">Methods
</span>
3155 <li data-name=
"LuCI.view#addFooter"><a href=
"LuCI.view.html#addFooter">addFooter
</a></li>
3157 <li data-name=
"LuCI.view#handleReset"><a href=
"LuCI.view.html#handleReset">handleReset
</a></li>
3159 <li data-name=
"LuCI.view#handleSave"><a href=
"LuCI.view.html#handleSave">handleSave
</a></li>
3161 <li data-name=
"LuCI.view#handleSaveApply"><a href=
"LuCI.view.html#handleSaveApply">handleSaveApply
</a></li>
3163 <li data-name=
"LuCI.view#load"><a href=
"LuCI.view.html#load">load
</a></li>
3165 <li data-name=
"LuCI.view#render"><a href=
"LuCI.view.html#render">render
</a></li>
3168 <ul class=
"events itemMembers">
3173 <li class=
"item" data-name=
"LuCI.xhr">
3174 <span class=
"title">
3175 <a href=
"LuCI.xhr.html">LuCI.xhr
</a>
3178 <ul class=
"members itemMembers">
3181 <ul class=
"typedefs itemMembers">
3184 <ul class=
"typedefs itemMembers">
3187 <ul class=
"methods itemMembers">
3189 <span class=
"subtitle">Methods
</span>
3191 <li data-name=
"LuCI.xhr#abort"><a href=
"LuCI.xhr.html#abort">abort
</a></li>
3193 <li data-name=
"LuCI.xhr#busy"><a href=
"LuCI.xhr.html#busy">busy
</a></li>
3195 <li data-name=
"LuCI.xhr#cancel"><a href=
"LuCI.xhr.html#cancel">cancel
</a></li>
3197 <li data-name=
"LuCI.xhr#get"><a href=
"LuCI.xhr.html#get">get
</a></li>
3199 <li data-name=
"LuCI.xhr#post"><a href=
"LuCI.xhr.html#post">post
</a></li>
3201 <li data-name=
"LuCI.xhr#send_form"><a href=
"LuCI.xhr.html#send_form">send_form
</a></li>
3204 <ul class=
"events itemMembers">
3212 <h1 class=
"page-title" data-filename=
"luci.js.html">Source: luci.js
</h1>
3219 <pre id=
"source-code" class=
"prettyprint source "><code>/**
3223 * This is the LuCI base class. It is automatically instantiated and
3224 * accessible using the global `L` variable.
3226 * @param {Object} env
3227 * The environment settings to use for the LuCI runtime.
3230 (function(window, document, undefined) {
3233 /* Object.assign polyfill for IE */
3234 if (typeof Object.assign !== 'function') {
3235 Object.defineProperty(Object, 'assign', {
3236 value: function assign(target, varArgs) {
3238 throw new TypeError('Cannot convert undefined or null to object');
3240 var to = Object(target);
3242 for (var index =
1; index
< arguments.length; index++)
3243 if (arguments[index] != null)
3244 for (var nextKey in arguments[index])
3245 if (Object.prototype.hasOwnProperty.call(arguments[index], nextKey))
3246 to[nextKey] = arguments[index][nextKey];
3255 /* Promise.finally polyfill */
3256 if (typeof Promise.prototype.finally !== 'function') {
3257 Promise.prototype.finally = function(fn) {
3258 var onFinally = function(cb) {
3259 return Promise.resolve(fn.call(this)).then(cb);
3263 function(result) { return onFinally.call(this, function() { return result }) },
3264 function(reason) { return onFinally.call(this, function() { return Promise.reject(reason) }) }
3270 * Class declaration and inheritance helper
3273 var toCamelCase = function(s) {
3274 return s.replace(/(?:^|[\. -])(.)/g, function(m0, m1) { return m1.toUpperCase() });
3283 * `LuCI.baseclass` is the abstract base class all LuCI classes inherit from.
3285 * It provides simple means to create subclasses of given classes and
3286 * implements prototypal inheritance.
3288 var superContext = {}, classIndex =
0, Class = Object.assign(function() {}, {
3290 * Extends this base class with the properties described in
3291 * `properties` and returns a new subclassed Class instance
3293 * @memberof LuCI.baseclass
3295 * @param {Object
<string, *
>} properties
3296 * An object describing the properties to add to the new
3299 * @returns {LuCI.baseclass}
3300 * Returns a new LuCI.baseclass sublassed from this class, extended
3301 * by the given properties and with its prototype set to this base
3302 * class to enable inheritance. The resulting value represents a
3303 * class constructor and can be instantiated with `new`.
3305 extend: function(properties) {
3307 __id__: { value: classIndex },
3308 __base__: { value: this.prototype },
3309 __name__: { value: properties.__name__ || 'anonymous' + classIndex++ }
3312 var ClassConstructor = function() {
3313 if (!(this instanceof ClassConstructor))
3314 throw new TypeError('Constructor must not be called without
"new"');
3316 if (Object.getPrototypeOf(this).hasOwnProperty('__init__')) {
3317 if (typeof(this.__init__) != 'function')
3318 throw new TypeError('Class __init__ member is not a function');
3320 this.__init__.apply(this, arguments)
3323 this.super('__init__', arguments);
3327 for (var key in properties)
3328 if (!props[key]
&& properties.hasOwnProperty(key))
3329 props[key] = { value: properties[key], writable: true };
3331 ClassConstructor.prototype = Object.create(this.prototype, props);
3332 ClassConstructor.prototype.constructor = ClassConstructor;
3333 Object.assign(ClassConstructor, this);
3334 ClassConstructor.displayName = toCamelCase(props.__name__.value + 'Class');
3336 return ClassConstructor;
3340 * Extends this base class with the properties described in
3341 * `properties`, instantiates the resulting subclass using
3342 * the additional optional arguments passed to this function
3343 * and returns the resulting subclassed Class instance.
3345 * This function serves as a convenience shortcut for
3346 * {@link LuCI.baseclass.extend Class.extend()} and subsequent
3349 * @memberof LuCI.baseclass
3351 * @param {Object
<string, *
>} properties
3352 * An object describing the properties to add to the new
3355 * @param {...*} [new_args]
3356 * Specifies arguments to be passed to the subclass constructor
3357 * as-is in order to instantiate the new subclass.
3359 * @returns {LuCI.baseclass}
3360 * Returns a new LuCI.baseclass instance extended by the given
3361 * properties with its prototype set to this base class to
3362 * enable inheritance.
3364 singleton: function(properties /*, ... */) {
3365 return Class.extend(properties)
3366 .instantiate(Class.prototype.varargs(arguments,
1));
3370 * Calls the class constructor using `new` with the given argument
3371 * array being passed as variadic parameters to the constructor.
3373 * @memberof LuCI.baseclass
3375 * @param {Array
<*
>} params
3376 * An array of arbitrary values which will be passed as arguments
3377 * to the constructor function.
3379 * @param {...*} [new_args]
3380 * Specifies arguments to be passed to the subclass constructor
3381 * as-is in order to instantiate the new subclass.
3383 * @returns {LuCI.baseclass}
3384 * Returns a new LuCI.baseclass instance extended by the given
3385 * properties with its prototype set to this base class to
3386 * enable inheritance.
3388 instantiate: function(args) {
3389 return new (Function.prototype.bind.apply(this,
3390 Class.prototype.varargs(args,
0, null)))();
3394 call: function(self, method) {
3395 if (typeof(this.prototype[method]) != 'function')
3396 throw new ReferenceError(method + ' is not defined in class');
3398 return this.prototype[method].apply(self, self.varargs(arguments,
1));
3402 * Checks whether the given class value is a subclass of this class.
3404 * @memberof LuCI.baseclass
3406 * @param {LuCI.baseclass} classValue
3407 * The class object to test.
3409 * @returns {boolean}
3410 * Returns `true` when the given `classValue` is a subclass of this
3411 * class or `false` if the given value is not a valid class or not
3412 * a subclass of this class'.
3414 isSubclass: function(classValue) {
3415 return (classValue != null
&&
3416 typeof(classValue) == 'function'
&&
3417 classValue.prototype instanceof this);
3422 * Extract all values from the given argument array beginning from
3423 * `offset` and prepend any further given optional parameters to
3424 * the beginning of the resulting array copy.
3426 * @memberof LuCI.baseclass
3429 * @param {Array
<*
>} args
3430 * The array to extract the values from.
3432 * @param {number} offset
3433 * The offset from which to extract the values. An offset of `
0`
3434 * would copy all values till the end.
3436 * @param {...*} [extra_args]
3437 * Extra arguments to add to prepend to the resultung array.
3439 * @returns {Array
<*
>}
3440 * Returns a new array consisting of the optional extra arguments
3441 * and the values extracted from the `args` array beginning with
3444 varargs: function(args, offset /*, ... */) {
3445 return Array.prototype.slice.call(arguments,
2)
3446 .concat(Array.prototype.slice.call(args, offset));
3450 * Walks up the parent class chain and looks for a class member
3451 * called `key` in any of the parent classes this class inherits
3452 * from. Returns the member value of the superclass or calls the
3453 * member as function and returns its return value when the
3454 * optional `callArgs` array is given.
3456 * This function has two signatures and is sensitive to the
3457 * amount of arguments passed to it:
3458 * - `super('key')` -
3459 * Returns the value of `key` when found within one of the
3461 * - `super('key', ['arg1', 'arg2'])` -
3462 * Calls the `key()` method with parameters `arg1` and `arg2`
3463 * when found within one of the parent classes.
3465 * @memberof LuCI.baseclass
3468 * @param {string} key
3469 * The name of the superclass member to retrieve.
3471 * @param {Array
<*
>} [callArgs]
3472 * An optional array of function call parameters to use. When
3473 * this parameter is specified, the found member value is called
3474 * as function using the values of this array as arguments.
3476 * @throws {ReferenceError}
3477 * Throws a `ReferenceError` when `callArgs` are specified and
3478 * the found member named by `key` is not a function value.
3481 * Returns the value of the found member or the return value of
3482 * the call to the found method. Returns `null` when no member
3483 * was found in the parent class chain or when the call to the
3484 * superclass method returned `null`.
3486 super: function(key, callArgs) {
3490 var slotIdx = this.__id__ + '.' + key,
3491 symStack = superContext[slotIdx],
3494 for (protoCtx = Object.getPrototypeOf(symStack ? symStack[
0] : Object.getPrototypeOf(this));
3495 protoCtx != null
&& !protoCtx.hasOwnProperty(key);
3496 protoCtx = Object.getPrototypeOf(protoCtx)) {}
3498 if (protoCtx == null)
3501 var res = protoCtx[key];
3503 if (arguments.length
> 1) {
3504 if (typeof(res) != 'function')
3505 throw new ReferenceError(key + ' is not a function in base class');
3507 if (typeof(callArgs) != 'object')
3508 callArgs = this.varargs(arguments,
1);
3511 symStack.unshift(protoCtx);
3513 superContext[slotIdx] = [ protoCtx ];
3515 res = res.apply(this, callArgs);
3517 if (symStack
&& symStack.length
> 1)
3518 symStack.shift(protoCtx);
3520 delete superContext[slotIdx];
3527 * Returns a string representation of this class.
3530 * Returns a string representation of this class containing the
3531 * constructor functions `displayName` and describing the class
3532 * members and their respective types.
3534 toString: function() {
3535 var s = '[' + this.constructor.displayName + ']', f = true;
3536 for (var k in this) {
3537 if (this.hasOwnProperty(k)) {
3538 s += (f ? ' {\n' : '') + ' ' + k + ': ' + typeof(this[k]) + '\n';
3542 return s + (f ? '' : '}');
3554 * The `Headers` class is an internal utility class exposed in HTTP
3555 * response objects using the `response.headers` property.
3557 var Headers = Class.extend(/** @lends LuCI.headers.prototype */ {
3558 __name__: 'LuCI.headers',
3559 __init__: function(xhr) {
3560 var hdrs = this.headers = {};
3561 xhr.getAllResponseHeaders().split(/\r\n/).forEach(function(line) {
3562 var m = /^([^:]+):(.*)$/.exec(line);
3564 hdrs[m[
1].trim().toLowerCase()] = m[
2].trim();
3569 * Checks whether the given header name is present.
3570 * Note: Header-Names are case-insensitive.
3573 * @memberof LuCI.headers
3574 * @param {string} name
3575 * The header name to check
3577 * @returns {boolean}
3578 * Returns `true` if the header name is present, `false` otherwise
3580 has: function(name) {
3581 return this.headers.hasOwnProperty(String(name).toLowerCase());
3585 * Returns the value of the given header name.
3586 * Note: Header-Names are case-insensitive.
3589 * @memberof LuCI.headers
3590 * @param {string} name
3591 * The header name to read
3593 * @returns {string|null}
3594 * The value of the given header name or `null` if the header isn't present.
3596 get: function(name) {
3597 var key = String(name).toLowerCase();
3598 return this.headers.hasOwnProperty(key) ? this.headers[key] : null;
3608 * The `Response` class is an internal utility class representing HTTP responses.
3610 var Response = Class.extend({
3611 __name__: 'LuCI.response',
3612 __init__: function(xhr, url, duration, headers, content) {
3614 * Describes whether the response is successful (status codes `
200.
.299`) or not
3616 * @memberof LuCI.response
3620 this.ok = (xhr.status
>=
200 && xhr.status
<=
299);
3623 * The numeric HTTP status code of the response
3625 * @memberof LuCI.response
3629 this.status = xhr.status;
3632 * The HTTP status description message of the response
3634 * @memberof LuCI.response
3638 this.statusText = xhr.statusText;
3641 * The HTTP headers of the response
3643 * @memberof LuCI.response
3645 * @type {LuCI.headers}
3647 this.headers = (headers != null) ? headers : new Headers(xhr);
3650 * The total duration of the HTTP request in milliseconds
3652 * @memberof LuCI.response
3656 this.duration = duration;
3659 * The final URL of the request, i.e. after following redirects.
3661 * @memberof LuCI.response
3670 if (content instanceof Blob) {
3671 this.responseBlob = content;
3672 this.responseJSON = null;
3673 this.responseText = null;
3675 else if (content != null
&& typeof(content) == 'object') {
3676 this.responseBlob = null;
3677 this.responseJSON = content;
3678 this.responseText = null;
3680 else if (content != null) {
3681 this.responseBlob = null;
3682 this.responseJSON = null;
3683 this.responseText = String(content);
3686 this.responseJSON = null;
3688 if (xhr.responseType == 'blob') {
3689 this.responseBlob = xhr.response;
3690 this.responseText = null;
3693 this.responseBlob = null;
3694 this.responseText = xhr.responseText;
3700 * Clones the given response object, optionally overriding the content
3701 * of the cloned instance.
3704 * @memberof LuCI.response
3705 * @param {*} [content]
3706 * Override the content of the cloned response. Object values will be
3707 * treated as JSON response data, all other types will be converted
3708 * using `String()` and treated as response text.
3710 * @returns {LuCI.response}
3711 * The cloned `Response` instance.
3713 clone: function(content) {
3714 var copy = new Response(this.xhr, this.url, this.duration, this.headers, content);
3717 copy.status = this.status;
3718 copy.statusText = this.statusText;
3724 * Access the response content as JSON data.
3727 * @memberof LuCI.response
3728 * @throws {SyntaxError}
3729 * Throws `SyntaxError` if the content isn't valid JSON.
3732 * The parsed JSON data.
3735 if (this.responseJSON == null)
3736 this.responseJSON = JSON.parse(this.responseText);
3738 return this.responseJSON;
3742 * Access the response content as string.
3745 * @memberof LuCI.response
3747 * The response content.
3750 if (this.responseText == null
&& this.responseJSON != null)
3751 this.responseText = JSON.stringify(this.responseJSON);
3753 return this.responseText;
3757 * Access the response content as blob.
3760 * @memberof LuCI.response
3762 * The response content as blob.
3765 return this.responseBlob;
3770 var requestQueue = [];
3772 function isQueueableRequest(opt) {
3776 if (opt.method != 'POST' || typeof(opt.content) != 'object')
3779 if (opt.nobatch === true)
3782 var rpcBaseURL = Request.expandURL(classes.rpc.getBaseURL());
3784 return (rpcBaseURL != null
&& opt.url.indexOf(rpcBaseURL) ==
0);
3787 function flushRequestQueue() {
3788 if (!requestQueue.length)
3791 var reqopt = Object.assign({}, requestQueue[
0][
0], { content: [], nobatch: true }),
3794 for (var i =
0; i
< requestQueue.length; i++) {
3795 batch[i] = requestQueue[i];
3796 reqopt.content[i] = batch[i][
0].content;
3799 requestQueue.length =
0;
3801 Request.request(rpcBaseURL, reqopt).then(function(reply) {
3802 var json = null, req = null;
3804 try { json = reply.json() }
3807 while ((req = batch.shift()) != null)
3808 if (Array.isArray(json)
&& json.length)
3809 req[
2].call(reqopt, reply.clone(json.shift()));
3811 req[
1].call(reqopt, new Error('No related RPC reply'));
3812 }).catch(function(error) {
3815 while ((req = batch.shift()) != null)
3816 req[
1].call(reqopt, error);
3826 * The `Request` class allows initiating HTTP requests and provides utilities
3827 * for dealing with responses.
3829 var Request = Class.singleton(/** @lends LuCI.request.prototype */ {
3830 __name__: 'LuCI.request',
3835 * Turn the given relative URL into an absolute URL if necessary.
3838 * @memberof LuCI.request
3839 * @param {string} url
3840 * The URL to convert.
3843 * The absolute URL derived from the given one, or the original URL
3844 * if it already was absolute.
3846 expandURL: function(url) {
3847 if (!/^(?:[^/]+:)?\/\//.test(url))
3848 url = location.protocol + '//' + location.host + url;
3854 * @typedef {Object} RequestOptions
3855 * @memberof LuCI.request
3857 * @property {string} [method=GET]
3858 * The HTTP method to use, e.g. `GET` or `POST`.
3860 * @property {Object
<string, Object|string
>} [query]
3861 * Query string data to append to the URL. Non-string values of the
3862 * given object will be converted to JSON.
3864 * @property {boolean} [cache=false]
3865 * Specifies whether the HTTP response may be retrieved from cache.
3867 * @property {string} [username]
3868 * Provides a username for HTTP basic authentication.
3870 * @property {string} [password]
3871 * Provides a password for HTTP basic authentication.
3873 * @property {number} [timeout]
3874 * Specifies the request timeout in seconds.
3876 * @property {boolean} [credentials=false]
3877 * Whether to include credentials such as cookies in the request.
3879 * @property {string} [responseType=text]
3880 * Overrides the request response type. Valid values or `text` to
3881 * interpret the response as UTF-
8 string or `blob` to handle the
3882 * response as binary `Blob` data.
3884 * @property {*} [content]
3885 * Specifies the HTTP message body to send along with the request.
3886 * If the value is a function, it is invoked and the return value
3887 * used as content, if it is a FormData instance, it is used as-is,
3888 * if it is an object, it will be converted to JSON, in all other
3889 * cases it is converted to a string.
3891 * @property {Object
<string, string
>} [header]
3892 * Specifies HTTP headers to set for the request.
3894 * @property {function} [progress]
3895 * An optional request callback function which receives ProgressEvent
3896 * instances as sole argument during the HTTP request transfer.
3900 * Initiate an HTTP request to the given target.
3903 * @memberof LuCI.request
3904 * @param {string} target
3905 * The URL to request.
3907 * @param {LuCI.request.RequestOptions} [options]
3908 * Additional options to configure the request.
3910 * @returns {Promise
<LuCI.response
>}
3911 * The resulting HTTP response.
3913 request: function(target, options) {
3914 var state = { xhr: new XMLHttpRequest(), url: this.expandURL(target), start: Date.now() },
3915 opt = Object.assign({}, options, state),
3918 callback = this.handleReadyStateChange;
3920 return new Promise(function(resolveFn, rejectFn) {
3921 opt.xhr.onreadystatechange = callback.bind(opt, resolveFn, rejectFn);
3922 opt.method = String(opt.method || 'GET').toUpperCase();
3924 if ('query' in opt) {
3925 var q = (opt.query != null) ? Object.keys(opt.query).map(function(k) {
3926 if (opt.query[k] != null) {
3927 var v = (typeof(opt.query[k]) == 'object')
3928 ? JSON.stringify(opt.query[k])
3929 : String(opt.query[k]);
3931 return '%s=%s'.format(encodeURIComponent(k), encodeURIComponent(v));
3934 return encodeURIComponent(k);
3936 }).join('
&') : '';
3939 switch (opt.method) {
3943 opt.url += ((/\?/).test(opt.url) ? '
&' : '?') + q;
3947 if (content == null) {
3949 contenttype = 'application/x-www-form-urlencoded';
3956 opt.url += ((/\?/).test(opt.url) ? '
&' : '?') + (new Date()).getTime();
3958 if (isQueueableRequest(opt)) {
3959 requestQueue.push([opt, rejectFn, resolveFn]);
3960 requestAnimationFrame(flushRequestQueue);
3964 if ('username' in opt
&& 'password' in opt)
3965 opt.xhr.open(opt.method, opt.url, true, opt.username, opt.password);
3967 opt.xhr.open(opt.method, opt.url, true);
3969 opt.xhr.responseType = opt.responseType || 'text';
3971 if ('overrideMimeType' in opt.xhr)
3972 opt.xhr.overrideMimeType('application/octet-stream');
3974 if ('timeout' in opt)
3975 opt.xhr.timeout = +opt.timeout;
3977 if ('credentials' in opt)
3978 opt.xhr.withCredentials = !!opt.credentials;
3980 if (opt.content != null) {
3981 switch (typeof(opt.content)) {
3983 content = opt.content(xhr);
3987 if (!(opt.content instanceof FormData)) {
3988 content = JSON.stringify(opt.content);
3989 contenttype = 'application/json';
3992 content = opt.content;
3997 content = String(opt.content);
4001 if ('headers' in opt)
4002 for (var header in opt.headers)
4003 if (opt.headers.hasOwnProperty(header)) {
4004 if (header.toLowerCase() != 'content-type')
4005 opt.xhr.setRequestHeader(header, opt.headers[header]);
4007 contenttype = opt.headers[header];
4010 if ('progress' in opt
&& 'upload' in opt.xhr)
4011 opt.xhr.upload.addEventListener('progress', opt.progress);
4013 if (contenttype != null)
4014 opt.xhr.setRequestHeader('Content-Type', contenttype);
4017 opt.xhr.send(content);
4020 rejectFn.call(opt, e);
4025 handleReadyStateChange: function(resolveFn, rejectFn, ev) {
4027 duration = Date.now() - this.start;
4029 if (xhr.readyState !==
4)
4032 if (xhr.status ===
0 && xhr.statusText === '') {
4033 if (duration
>= this.timeout)
4034 rejectFn.call(this, new Error('XHR request timed out'));
4036 rejectFn.call(this, new Error('XHR request aborted by browser'));
4039 var response = new Response(
4040 xhr, xhr.responseURL || this.url, duration);
4042 Promise.all(Request.interceptors.map(function(fn) { return fn(response) }))
4043 .then(resolveFn.bind(this, response))
4044 .catch(rejectFn.bind(this));
4049 * Initiate an HTTP GET request to the given target.
4052 * @memberof LuCI.request
4053 * @param {string} target
4054 * The URL to request.
4056 * @param {LuCI.request.RequestOptions} [options]
4057 * Additional options to configure the request.
4059 * @returns {Promise
<LuCI.response
>}
4060 * The resulting HTTP response.
4062 get: function(url, options) {
4063 return this.request(url, Object.assign({ method: 'GET' }, options));
4067 * Initiate an HTTP POST request to the given target.
4070 * @memberof LuCI.request
4071 * @param {string} target
4072 * The URL to request.
4075 * The request data to send, see {@link LuCI.request.RequestOptions} for details.
4077 * @param {LuCI.request.RequestOptions} [options]
4078 * Additional options to configure the request.
4080 * @returns {Promise
<LuCI.response
>}
4081 * The resulting HTTP response.
4083 post: function(url, data, options) {
4084 return this.request(url, Object.assign({ method: 'POST', content: data }, options));
4088 * Interceptor functions are invoked whenever an HTTP reply is received, in the order
4089 * these functions have been registered.
4090 * @callback LuCI.request.interceptorFn
4091 * @param {LuCI.response} res
4092 * The HTTP response object
4096 * Register an HTTP response interceptor function. Interceptor
4097 * functions are useful to perform default actions on incoming HTTP
4098 * responses, such as checking for expired authentication or for
4099 * implementing request retries before returning a failure.
4102 * @memberof LuCI.request
4103 * @param {LuCI.request.interceptorFn} interceptorFn
4104 * The interceptor function to register.
4106 * @returns {LuCI.request.interceptorFn}
4107 * The registered function.
4109 addInterceptor: function(interceptorFn) {
4110 if (typeof(interceptorFn) == 'function')
4111 this.interceptors.push(interceptorFn);
4112 return interceptorFn;
4116 * Remove an HTTP response interceptor function. The passed function
4117 * value must be the very same value that was used to register the
4121 * @memberof LuCI.request
4122 * @param {LuCI.request.interceptorFn} interceptorFn
4123 * The interceptor function to remove.
4125 * @returns {boolean}
4126 * Returns `true` if any function has been removed, else `false`.
4128 removeInterceptor: function(interceptorFn) {
4129 var oldlen = this.interceptors.length, i = oldlen;
4131 if (this.interceptors[i] === interceptorFn)
4132 this.interceptors.splice(i,
1);
4133 return (this.interceptors.length
< oldlen);
4138 * @memberof LuCI.request
4142 * The `Request.poll` class provides some convience wrappers around
4143 * {@link LuCI.poll} mainly to simplify registering repeating HTTP
4144 * request calls as polling functions.
4148 * The callback function is invoked whenever an HTTP reply to a
4149 * polled request is received or when the polled request timed
4152 * @callback LuCI.request.poll~callbackFn
4153 * @param {LuCI.response} res
4154 * The HTTP response object.
4157 * The response JSON if the response could be parsed as such,
4160 * @param {number} duration
4161 * The total duration of the request in milliseconds.
4165 * Register a repeating HTTP request with an optional callback
4166 * to invoke whenever a response for the request is received.
4169 * @memberof LuCI.request.poll
4170 * @param {number} interval
4171 * The poll interval in seconds.
4173 * @param {string} url
4174 * The URL to request on each poll.
4176 * @param {LuCI.request.RequestOptions} [options]
4177 * Additional options to configure the request.
4179 * @param {LuCI.request.poll~callbackFn} [callback]
4180 * {@link LuCI.request.poll~callbackFn Callback} function to
4181 * invoke for each HTTP reply.
4183 * @throws {TypeError}
4184 * Throws `TypeError` when an invalid interval was passed.
4186 * @returns {function}
4187 * Returns the internally created poll function.
4189 add: function(interval, url, options, callback) {
4190 if (isNaN(interval) || interval
<=
0)
4191 throw new TypeError('Invalid poll interval');
4193 var ival = interval
>>> 0,
4194 opts = Object.assign({}, options, { timeout: ival *
1000 -
5 });
4196 var fn = function() {
4197 return Request.request(url, options).then(function(res) {
4202 callback(res, res.json(), res.duration);
4205 callback(res, null, res.duration);
4210 return (Poll.add(fn, ival) ? fn : null);
4214 * Remove a polling request that has been previously added using `add()`.
4215 * This function is essentially a wrapper around
4216 * {@link LuCI.poll.remove LuCI.poll.remove()}.
4219 * @memberof LuCI.request.poll
4220 * @param {function} entry
4221 * The poll function returned by {@link LuCI.request.poll#add add()}.
4223 * @returns {boolean}
4224 * Returns `true` if any function has been removed, else `false`.
4226 remove: function(entry) { return Poll.remove(entry) },
4229 * Alias for {@link LuCI.poll.start LuCI.poll.start()}.
4232 * @memberof LuCI.request.poll
4234 start: function() { return Poll.start() },
4237 * Alias for {@link LuCI.poll.stop LuCI.poll.stop()}.
4240 * @memberof LuCI.request.poll
4242 stop: function() { return Poll.stop() },
4245 * Alias for {@link LuCI.poll.active LuCI.poll.active()}.
4248 * @memberof LuCI.request.poll
4250 active: function() { return Poll.active() }
4260 * The `Poll` class allows registering and unregistering poll actions,
4261 * as well as starting, stopping and querying the state of the polling
4264 var Poll = Class.singleton(/** @lends LuCI.poll.prototype */ {
4265 __name__: 'LuCI.poll',
4270 * Add a new operation to the polling loop. If the polling loop is not
4271 * already started at this point, it will be implicitely started.
4274 * @memberof LuCI.poll
4275 * @param {function} fn
4276 * The function to invoke on each poll interval.
4278 * @param {number} interval
4279 * The poll interval in seconds.
4281 * @throws {TypeError}
4282 * Throws `TypeError` when an invalid interval was passed.
4284 * @returns {boolean}
4285 * Returns `true` if the function has been added or `false` if it
4286 * already is registered.
4288 add: function(fn, interval) {
4289 if (interval == null || interval
<=
0)
4290 interval = window.L ? window.L.env.pollinterval : null;
4292 if (isNaN(interval) || typeof(fn) != 'function')
4293 throw new TypeError('Invalid argument to LuCI.poll.add()');
4295 for (var i =
0; i
< this.queue.length; i++)
4296 if (this.queue[i].fn === fn)
4307 if (this.tick != null
&& !this.active())
4314 * Remove an operation from the polling loop. If no further operatons
4315 * are registered, the polling loop is implicitely stopped.
4318 * @memberof LuCI.poll
4319 * @param {function} fn
4320 * The function to remove.
4322 * @throws {TypeError}
4323 * Throws `TypeError` when the given argument isn't a function.
4325 * @returns {boolean}
4326 * Returns `true` if the function has been removed or `false` if it
4329 remove: function(fn) {
4330 if (typeof(fn) != 'function')
4331 throw new TypeError('Invalid argument to LuCI.poll.remove()');
4333 var len = this.queue.length;
4335 for (var i = len; i
> 0; i--)
4336 if (this.queue[i-
1].fn === fn)
4337 this.queue.splice(i-
1,
1);
4339 if (!this.queue.length
&& this.stop())
4342 return (this.queue.length != len);
4346 * (Re)start the polling loop. Dispatches a custom `poll-start` event
4347 * to the `document` object upon successful start.
4350 * @memberof LuCI.poll
4351 * @returns {boolean}
4352 * Returns `true` if polling has been started (or if no functions
4353 * where registered) or `false` when the polling loop already runs.
4361 if (this.queue.length) {
4362 this.timer = window.setInterval(this.step,
1000);
4364 document.dispatchEvent(new CustomEvent('poll-start'));
4371 * Stop the polling loop. Dispatches a custom `poll-stop` event
4372 * to the `document` object upon successful stop.
4375 * @memberof LuCI.poll
4376 * @returns {boolean}
4377 * Returns `true` if polling has been stopped or `false` if it din't
4378 * run to begin with.
4384 document.dispatchEvent(new CustomEvent('poll-stop'));
4385 window.clearInterval(this.timer);
4393 for (var i =
0, e = null; (e = Poll.queue[i]) != null; i++) {
4394 if ((Poll.tick % e.i) !=
0)
4402 Promise.resolve(e.fn()).finally((function() { this.r = true }).bind(e));
4405 Poll.tick = (Poll.tick +
1) % Math.pow(
2,
32);
4409 * Test whether the polling loop is running.
4412 * @memberof LuCI.poll
4413 * @returns {boolean} - Returns `true` if polling is active, else `false`.
4415 active: function() {
4416 return (this.timer != null);
4426 * The `dom` class provides convenience method for creating and
4427 * manipulating DOM elements.
4429 * To import the class in views, use `'require dom'`, to import it in
4430 * external JavaScript, use `L.require(
"dom").then(...)`.
4432 var DOM = Class.singleton(/* @lends LuCI.dom.prototype */ {
4433 __name__: 'LuCI.dom',
4436 * Tests whether the given argument is a valid DOM `Node`.
4439 * @memberof LuCI.dom
4441 * The value to test.
4443 * @returns {boolean}
4444 * Returns `true` if the value is a DOM `Node`, else `false`.
4447 return (e != null
&& typeof(e) == 'object'
&& 'nodeType' in e);
4451 * Parses a given string as HTML and returns the first child node.
4454 * @memberof LuCI.dom
4456 * A string containing an HTML fragment to parse. Note that only
4457 * the first result of the resulting structure is returned, so an
4458 * input value of `
<div
>foo
</div
> <div
>bar
</div
>` will only return
4459 * the first `div` element node.
4462 * Returns the first DOM `Node` extracted from the HTML fragment or
4463 * `null` on parsing failures or if no element could be found.
4465 parse: function(s) {
4469 domParser = domParser || new DOMParser();
4470 elem = domParser.parseFromString(s, 'text/html').body.firstChild;
4476 dummyElem = dummyElem || document.createElement('div');
4477 dummyElem.innerHTML = s;
4478 elem = dummyElem.firstChild;
4483 return elem || null;
4487 * Tests whether a given `Node` matches the given query selector.
4489 * This function is a convenience wrapper around the standard
4490 * `Node.matches(
"selector")` function with the added benefit that
4491 * the `node` argument may be a non-`Node` value, in which case
4492 * this function simply returns `false`.
4495 * @memberof LuCI.dom
4497 * The `Node` argument to test the selector against.
4499 * @param {string} [selector]
4500 * The query selector expression to test against the given node.
4502 * @returns {boolean}
4503 * Returns `true` if the given node matches the specified selector
4504 * or `false` when the node argument is no valid DOM `Node` or the
4505 * selector didn't match.
4507 matches: function(node, selector) {
4508 var m = this.elem(node) ? node.matches || node.msMatchesSelector : null;
4509 return m ? m.call(node, selector) : false;
4513 * Returns the closest parent node that matches the given query
4514 * selector expression.
4516 * This function is a convenience wrapper around the standard
4517 * `Node.closest(
"selector")` function with the added benefit that
4518 * the `node` argument may be a non-`Node` value, in which case
4519 * this function simply returns `null`.
4522 * @memberof LuCI.dom
4524 * The `Node` argument to find the closest parent for.
4526 * @param {string} [selector]
4527 * The query selector expression to test against each parent.
4529 * @returns {Node|null}
4530 * Returns the closest parent node matching the selector or
4531 * `null` when the node argument is no valid DOM `Node` or the
4532 * selector didn't match any parent.
4534 parent: function(node, selector) {
4535 if (this.elem(node)
&& node.closest)
4536 return node.closest(selector);
4538 while (this.elem(node))
4539 if (this.matches(node, selector))
4542 node = node.parentNode;
4548 * Appends the given children data to the given node.
4551 * @memberof LuCI.dom
4553 * The `Node` argument to append the children to.
4555 * @param {*} [children]
4556 * The childrens to append to the given node.
4558 * When `children` is an array, then each item of the array
4559 * will be either appended as child element or text node,
4560 * depending on whether the item is a DOM `Node` instance or
4561 * some other non-`null` value. Non-`Node`, non-`null` values
4562 * will be converted to strings first before being passed as
4563 * argument to `createTextNode()`.
4565 * When `children` is a function, it will be invoked with
4566 * the passed `node` argument as sole parameter and the `append`
4567 * function will be invoked again, with the given `node` argument
4568 * as first and the return value of the `children` function as
4571 * When `children` is is a DOM `Node` instance, it will be
4572 * appended to the given `node`.
4574 * When `children` is any other non-`null` value, it will be
4575 * converted to a string and appened to the `innerHTML` property
4576 * of the given `node`.
4578 * @returns {Node|null}
4579 * Returns the last children `Node` appended to the node or `null`
4580 * if either the `node` argument was no valid DOM `node` or if the
4581 * `children` was `null` or didn't result in further DOM nodes.
4583 append: function(node, children) {
4584 if (!this.elem(node))
4587 if (Array.isArray(children)) {
4588 for (var i =
0; i
< children.length; i++)
4589 if (this.elem(children[i]))
4590 node.appendChild(children[i]);
4591 else if (children !== null
&& children !== undefined)
4592 node.appendChild(document.createTextNode('' + children[i]));
4594 return node.lastChild;
4596 else if (typeof(children) === 'function') {
4597 return this.append(node, children(node));
4599 else if (this.elem(children)) {
4600 return node.appendChild(children);
4602 else if (children !== null
&& children !== undefined) {
4603 node.innerHTML = '' + children;
4604 return node.lastChild;
4611 * Replaces the content of the given node with the given children.
4613 * This function first removes any children of the given DOM
4614 * `Node` and then adds the given given children following the
4615 * rules outlined below.
4618 * @memberof LuCI.dom
4620 * The `Node` argument to replace the children of.
4622 * @param {*} [children]
4623 * The childrens to replace into the given node.
4625 * When `children` is an array, then each item of the array
4626 * will be either appended as child element or text node,
4627 * depending on whether the item is a DOM `Node` instance or
4628 * some other non-`null` value. Non-`Node`, non-`null` values
4629 * will be converted to strings first before being passed as
4630 * argument to `createTextNode()`.
4632 * When `children` is a function, it will be invoked with
4633 * the passed `node` argument as sole parameter and the `append`
4634 * function will be invoked again, with the given `node` argument
4635 * as first and the return value of the `children` function as
4638 * When `children` is is a DOM `Node` instance, it will be
4639 * appended to the given `node`.
4641 * When `children` is any other non-`null` value, it will be
4642 * converted to a string and appened to the `innerHTML` property
4643 * of the given `node`.
4645 * @returns {Node|null}
4646 * Returns the last children `Node` appended to the node or `null`
4647 * if either the `node` argument was no valid DOM `node` or if the
4648 * `children` was `null` or didn't result in further DOM nodes.
4650 content: function(node, children) {
4651 if (!this.elem(node))
4654 var dataNodes = node.querySelectorAll('[data-idref]');
4656 for (var i =
0; i
< dataNodes.length; i++)
4657 delete this.registry[dataNodes[i].getAttribute('data-idref')];
4659 while (node.firstChild)
4660 node.removeChild(node.firstChild);
4662 return this.append(node, children);
4666 * Sets attributes or registers event listeners on element nodes.
4669 * @memberof LuCI.dom
4671 * The `Node` argument to set the attributes or add the event
4672 * listeners for. When the given `node` value is not a valid
4673 * DOM `Node`, the function returns and does nothing.
4675 * @param {string|Object
<string, *
>} key
4676 * Specifies either the attribute or event handler name to use,
4677 * or an object containing multiple key, value pairs which are
4678 * each added to the node as either attribute or event handler,
4679 * depending on the respective value.
4682 * Specifies the attribute value or event handler function to add.
4683 * If the `key` parameter is an `Object`, this parameter will be
4686 * When `val` is of type function, it will be registered as event
4687 * handler on the given `node` with the `key` parameter being the
4690 * When `val` is of type object, it will be serialized as JSON and
4691 * added as attribute to the given `node`, using the given `key`
4692 * as attribute name.
4694 * When `val` is of any other type, it will be added as attribute
4695 * to the given `node` as-is, with the underlying `setAttribute()`
4696 * call implicitely turning it into a string.
4698 attr: function(node, key, val) {
4699 if (!this.elem(node))
4704 if (typeof(key) === 'object'
&& key !== null)
4706 else if (typeof(key) === 'string')
4707 attr = {}, attr[key] = val;
4710 if (!attr.hasOwnProperty(key) || attr[key] == null)
4713 switch (typeof(attr[key])) {
4715 node.addEventListener(key, attr[key]);
4719 node.setAttribute(key, JSON.stringify(attr[key]));
4723 node.setAttribute(key, attr[key]);
4729 * Creates a new DOM `Node` from the given `html`, `attr` and
4730 * `data` parameters.
4732 * This function has multiple signatures, it can be either invoked
4733 * in the form `create(html[, attr[, data]])` or in the form
4734 * `create(html[, data])`. The used variant is determined from the
4735 * type of the second argument.
4738 * @memberof LuCI.dom
4740 * Describes the node to create.
4742 * When the value of `html` is of type array, a `DocumentFragment`
4743 * node is created and each item of the array is first converted
4744 * to a DOM `Node` by passing it through `create()` and then added
4745 * as child to the fragment.
4747 * When the value of `html` is a DOM `Node` instance, no new
4748 * element will be created but the node will be used as-is.
4750 * When the value of `html` is a string starting with `
<`, it will
4751 * be passed to `dom.parse()` and the resulting value is used.
4753 * When the value of `html` is any other string, it will be passed
4754 * to `document.createElement()` for creating a new DOM `Node` of
4757 * @param {Object
<string, *
>} [attr]
4758 * Specifies an Object of key, value pairs to set as attributes
4759 * or event handlers on the created node. Refer to
4760 * {@link LuCI.dom#attr dom.attr()} for details.
4763 * Specifies children to append to the newly created element.
4764 * Refer to {@link LuCI.dom#append dom.append()} for details.
4766 * @throws {InvalidCharacterError}
4767 * Throws an `InvalidCharacterError` when the given `html`
4768 * argument contained malformed markup (such as not escaped
4769 * `
&` characters in XHTML mode) or when the given node name
4770 * in `html` contains characters which are not legal in DOM
4771 * element names, such as spaces.
4774 * Returns the newly created `Node`.
4776 create: function() {
4777 var html = arguments[
0],
4778 attr = arguments[
1],
4779 data = arguments[
2],
4782 if (!(attr instanceof Object) || Array.isArray(attr))
4783 data = attr, attr = null;
4785 if (Array.isArray(html)) {
4786 elem = document.createDocumentFragment();
4787 for (var i =
0; i
< html.length; i++)
4788 elem.appendChild(this.create(html[i]));
4790 else if (this.elem(html)) {
4793 else if (html.charCodeAt(
0) ===
60) {
4794 elem = this.parse(html);
4797 elem = document.createElement(html);
4803 this.attr(elem, attr);
4804 this.append(elem, data);
4812 * Attaches or detaches arbitrary data to and from a DOM `Node`.
4814 * This function is useful to attach non-string values or runtime
4815 * data that is not serializable to DOM nodes. To decouple data
4816 * from the DOM, values are not added directly to nodes, but
4817 * inserted into a registry instead which is then referenced by a
4818 * string key stored as `data-idref` attribute in the node.
4820 * This function has multiple signatures and is sensitive to the
4821 * number of arguments passed to it.
4823 * - `dom.data(node)` -
4824 * Fetches all data associated with the given node.
4825 * - `dom.data(node, key)` -
4826 * Fetches a specific key associated with the given node.
4827 * - `dom.data(node, key, val)` -
4828 * Sets a specific key to the given value associated with the
4830 * - `dom.data(node, null)` -
4831 * Clears any data associated with the node.
4832 * - `dom.data(node, key, null)` -
4833 * Clears the given key associated with the node.
4836 * @memberof LuCI.dom
4837 * @param {Node} node
4838 * The DOM `Node` instance to set or retrieve the data for.
4840 * @param {string|null} [key]
4841 * This is either a string specifying the key to retrieve, or
4842 * `null` to unset the entire node data.
4844 * @param {*|null} [val]
4845 * This is either a non-`null` value to set for a given key or
4846 * `null` to remove the given `key` from the specified node.
4849 * Returns the get or set value, or `null` when no value could
4852 data: function(node, key, val) {
4853 if (!node || !node.getAttribute)
4856 var id = node.getAttribute('data-idref');
4858 /* clear all data */
4859 if (arguments.length
> 1 && key == null) {
4861 node.removeAttribute('data-idref');
4862 val = this.registry[id]
4863 delete this.registry[id];
4871 else if (arguments.length
> 2 && key != null
&& val == null) {
4873 val = this.registry[id][key];
4874 delete this.registry[id][key];
4882 else if (arguments.length
> 2 && key != null
&& val != null) {
4884 do { id = Math.floor(Math.random() *
0xffffffff).toString(
16) }
4885 while (this.registry.hasOwnProperty(id));
4887 node.setAttribute('data-idref', id);
4888 this.registry[id] = {};
4891 return (this.registry[id][key] = val);
4895 else if (arguments.length ==
1) {
4897 return this.registry[id];
4903 else if (arguments.length ==
2) {
4905 return this.registry[id][key];
4912 * Binds the given class instance ot the specified DOM `Node`.
4914 * This function uses the `dom.data()` facility to attach the
4915 * passed instance of a Class to a node. This is needed for
4916 * complex widget elements or similar where the corresponding
4917 * class instance responsible for the element must be retrieved
4918 * from DOM nodes obtained by `querySelector()` or similar means.
4921 * @memberof LuCI.dom
4922 * @param {Node} node
4923 * The DOM `Node` instance to bind the class to.
4925 * @param {Class} inst
4926 * The Class instance to bind to the node.
4928 * @throws {TypeError}
4929 * Throws a `TypeError` when the given instance argument isn't
4930 * a valid Class instance.
4933 * Returns the bound class instance.
4935 bindClassInstance: function(node, inst) {
4936 if (!(inst instanceof Class))
4937 L.error('TypeError', 'Argument must be a class instance');
4939 return this.data(node, '_class', inst);
4943 * Finds a bound class instance on the given node itself or the
4944 * first bound instance on its closest parent node.
4947 * @memberof LuCI.dom
4948 * @param {Node} node
4949 * The DOM `Node` instance to start from.
4951 * @returns {Class|null}
4952 * Returns the founds class instance if any or `null` if no bound
4953 * class could be found on the node itself or any of its parents.
4955 findClassInstance: function(node) {
4959 inst = this.data(node, '_class');
4960 node = node.parentNode;
4962 while (!(inst instanceof Class)
&& node != null);
4968 * Finds a bound class instance on the given node itself or the
4969 * first bound instance on its closest parent node and invokes
4970 * the specified method name on the found class instance.
4973 * @memberof LuCI.dom
4974 * @param {Node} node
4975 * The DOM `Node` instance to start from.
4977 * @param {string} method
4978 * The name of the method to invoke on the found class instance.
4980 * @param {...*} params
4981 * Additional arguments to pass to the invoked method as-is.
4984 * Returns the return value of the invoked method if a class
4985 * instance and method has been found. Returns `null` if either
4986 * no bound class instance could be found, or if the found
4987 * instance didn't have the requested `method`.
4989 callClassMethod: function(node, method /*, ... */) {
4990 var inst = this.findClassInstance(node);
4992 if (inst == null || typeof(inst[method]) != 'function')
4995 return inst[method].apply(inst, inst.varargs(arguments,
2));
4999 * The ignore callback function is invoked by `isEmpty()` for each
5000 * child node to decide whether to ignore a child node or not.
5002 * When this function returns `false`, the node passed to it is
5003 * ignored, else not.
5005 * @callback LuCI.dom~ignoreCallbackFn
5006 * @param {Node} node
5007 * The child node to test.
5009 * @returns {boolean}
5010 * Boolean indicating whether to ignore the node or not.
5014 * Tests whether a given DOM `Node` instance is empty or appears
5017 * Any element child nodes which have the CSS class `hidden` set
5018 * or for which the optionally passed `ignoreFn` callback function
5019 * returns `false` are ignored.
5022 * @memberof LuCI.dom
5023 * @param {Node} node
5024 * The DOM `Node` instance to test.
5026 * @param {LuCI.dom~ignoreCallbackFn} [ignoreFn]
5027 * Specifies an optional function which is invoked for each child
5028 * node to decide whether the child node should be ignored or not.
5030 * @returns {boolean}
5031 * Returns `true` if the node does not have any children or if
5032 * any children node either has a `hidden` CSS class or a `false`
5033 * result when testing it using the given `ignoreFn`.
5035 isEmpty: function(node, ignoreFn) {
5036 for (var child = node.firstElementChild; child != null; child = child.nextElementSibling)
5037 if (!child.classList.contains('hidden')
&& (!ignoreFn || !ignoreFn(child)))
5050 * The `view` class forms the basis of views and provides a standard
5051 * set of methods to inherit from.
5053 var View = Class.extend(/* @lends LuCI.view.prototype */ {
5054 __name__: 'LuCI.view',
5056 __init__: function() {
5057 var vp = document.getElementById('view');
5059 DOM.content(vp, E('div', { 'class': 'spinning' }, _('Loading view…')));
5061 return Promise.resolve(this.load())
5062 .then(L.bind(this.render, this))
5063 .then(L.bind(function(nodes) {
5064 var vp = document.getElementById('view');
5066 DOM.content(vp, nodes);
5067 DOM.append(vp, this.addFooter());
5068 }, this)).catch(L.error);
5072 * The load function is invoked before the view is rendered.
5074 * The invocation of this function is wrapped by
5075 * `Promise.resolve()` so it may return Promises if needed.
5077 * The return value of the function (or the resolved values
5078 * of the promise returned by it) will be passed as first
5079 * argument to `render()`.
5081 * This function is supposed to be overwritten by subclasses,
5082 * the default implementation does nothing.
5086 * @memberof LuCI.view
5088 * @returns {*|Promise
<*
>}
5089 * May return any value or a Promise resolving to any value.
5091 load: function() {},
5094 * The render function is invoked after the
5095 * {@link LuCI.view#load load()} function and responsible
5096 * for setting up the view contents. It must return a DOM
5097 * `Node` or `DocumentFragment` holding the contents to
5098 * insert into the view area.
5100 * The invocation of this function is wrapped by
5101 * `Promise.resolve()` so it may return Promises if needed.
5103 * The return value of the function (or the resolved values
5104 * of the promise returned by it) will be inserted into the
5105 * main content area using
5106 * {@link LuCI.dom#append dom.append()}.
5108 * This function is supposed to be overwritten by subclasses,
5109 * the default implementation does nothing.
5113 * @memberof LuCI.view
5114 * @param {*|null} load_results
5115 * This function will receive the return value of the
5116 * {@link LuCI.view#load view.load()} function as first
5119 * @returns {Node|Promise
<Node
>}
5120 * Should return a DOM `Node` value or a `Promise` resolving
5121 * to a `Node` value.
5123 render: function() {},
5126 * The handleSave function is invoked when the user clicks
5127 * the `Save` button in the page action footer.
5129 * The default implementation should be sufficient for most
5130 * views using {@link form#Map form.Map()} based forms - it
5131 * will iterate all forms present in the view and invoke
5132 * the {@link form#Map#save Map.save()} method on each form.
5134 * Views not using `Map` instances or requiring other special
5135 * logic should overwrite `handleSave()` with a custom
5138 * To disable the `Save` page footer button, views extending
5139 * this base class should overwrite the `handleSave` function
5142 * The invocation of this function is wrapped by
5143 * `Promise.resolve()` so it may return Promises if needed.
5146 * @memberof LuCI.view
5148 * The DOM event that triggered the function.
5150 * @returns {*|Promise
<*
>}
5151 * Any return values of this function are discarded, but
5152 * passed through `Promise.resolve()` to ensure that any
5153 * returned promise runs to completion before the button
5156 handleSave: function(ev) {
5159 document.getElementById('maincontent')
5160 .querySelectorAll('.cbi-map').forEach(function(map) {
5161 tasks.push(DOM.callClassMethod(map, 'save'));
5164 return Promise.all(tasks);
5168 * The handleSaveApply function is invoked when the user clicks
5169 * the `Save
& Apply` button in the page action footer.
5171 * The default implementation should be sufficient for most
5172 * views using {@link form#Map form.Map()} based forms - it
5174 * {@link LuCI.view.handleSave view.handleSave()} and then
5175 * call {@link ui#changes#apply ui.changes.apply()} to start the
5176 * modal config apply and page reload flow.
5178 * Views not using `Map` instances or requiring other special
5179 * logic should overwrite `handleSaveApply()` with a custom
5182 * To disable the `Save
& Apply` page footer button, views
5183 * extending this base class should overwrite the
5184 * `handleSaveApply` function with `null`.
5186 * The invocation of this function is wrapped by
5187 * `Promise.resolve()` so it may return Promises if needed.
5190 * @memberof LuCI.view
5192 * The DOM event that triggered the function.
5194 * @returns {*|Promise
<*
>}
5195 * Any return values of this function are discarded, but
5196 * passed through `Promise.resolve()` to ensure that any
5197 * returned promise runs to completion before the button
5200 handleSaveApply: function(ev, mode) {
5201 return this.handleSave(ev).then(function() {
5202 L.ui.changes.apply(mode == '
0');
5207 * The handleReset function is invoked when the user clicks
5208 * the `Reset` button in the page action footer.
5210 * The default implementation should be sufficient for most
5211 * views using {@link form#Map form.Map()} based forms - it
5212 * will iterate all forms present in the view and invoke
5213 * the {@link form#Map#save Map.reset()} method on each form.
5215 * Views not using `Map` instances or requiring other special
5216 * logic should overwrite `handleReset()` with a custom
5219 * To disable the `Reset` page footer button, views extending
5220 * this base class should overwrite the `handleReset` function
5223 * The invocation of this function is wrapped by
5224 * `Promise.resolve()` so it may return Promises if needed.
5227 * @memberof LuCI.view
5229 * The DOM event that triggered the function.
5231 * @returns {*|Promise
<*
>}
5232 * Any return values of this function are discarded, but
5233 * passed through `Promise.resolve()` to ensure that any
5234 * returned promise runs to completion before the button
5237 handleReset: function(ev) {
5240 document.getElementById('maincontent')
5241 .querySelectorAll('.cbi-map').forEach(function(map) {
5242 tasks.push(DOM.callClassMethod(map, 'reset'));
5245 return Promise.all(tasks);
5249 * Renders a standard page action footer if any of the
5250 * `handleSave()`, `handleSaveApply()` or `handleReset()`
5251 * functions are defined.
5253 * The default implementation should be sufficient for most
5254 * views - it will render a standard page footer with action
5255 * buttons labeled `Save`, `Save
& Apply` and `Reset`
5256 * triggering the `handleSave()`, `handleSaveApply()` and
5257 * `handleReset()` functions respectively.
5259 * When any of these `handle*()` functions is overwritten
5260 * with `null` by a view extending this class, the
5261 * corresponding button will not be rendered.
5264 * @memberof LuCI.view
5265 * @returns {DocumentFragment}
5266 * Returns a `DocumentFragment` containing the footer bar
5267 * with buttons for each corresponding `handle*()` action
5268 * or an empty `DocumentFragment` if all three `handle*()`
5269 * methods are overwritten with `null`.
5271 addFooter: function() {
5274 var saveApplyBtn = this.handleSaveApply ? new L.ui.ComboButton('
0', {
5275 0: [ _('Save
& Apply') ],
5276 1: [ _('Apply unchecked') ]
5279 0: 'btn cbi-button cbi-button-apply important',
5280 1: 'btn cbi-button cbi-button-negative important'
5282 click: L.ui.createHandlerFn(this, 'handleSaveApply')
5283 }).render() : E([]);
5285 if (this.handleSaveApply || this.handleSave || this.handleReset) {
5286 footer.appendChild(E('div', { 'class': 'cbi-page-actions control-group' }, [
5288 this.handleSave ? E('button', {
5289 'class': 'cbi-button cbi-button-save',
5290 'click': L.ui.createHandlerFn(this, 'handleSave')
5291 }, [ _('Save') ]) : '', ' ',
5292 this.handleReset ? E('button', {
5293 'class': 'cbi-button cbi-button-reset',
5294 'click': L.ui.createHandlerFn(this, 'handleReset')
5295 }, [ _('Reset') ]) : ''
5304 var dummyElem = null,
5306 originalCBIInit = null,
5310 /*
"preload" builtin classes to make the available via require */
5319 var LuCI = Class.extend(/** @lends LuCI.prototype */ {
5321 __init__: function(env) {
5323 document.querySelectorAll('script[src*=
"/luci.js"]').forEach(function(s) {
5324 if (env.base_url == null || env.base_url == '') {
5325 var m = (s.getAttribute('src') || '').match(/^(.*)\/luci\.js(?:\?v=([^?]+))?$/);
5327 env.base_url = m[
1];
5328 env.resource_version = m[
2];
5333 if (env.base_url == null)
5334 this.error('InternalError', 'Cannot find url of luci.js');
5336 env.cgi_base = env.scriptname.replace(/\/[^\/]+$/, '');
5338 Object.assign(this.env, env);
5340 document.addEventListener('poll-start', function(ev) {
5341 document.querySelectorAll('[id^=
"xhr_poll_status"]').forEach(function(e) {
5342 e.style.display = (e.id == 'xhr_poll_status_off') ? 'none' : '';
5346 document.addEventListener('poll-stop', function(ev) {
5347 document.querySelectorAll('[id^=
"xhr_poll_status"]').forEach(function(e) {
5348 e.style.display = (e.id == 'xhr_poll_status_on') ? 'none' : '';
5352 var domReady = new Promise(function(resolveFn, rejectFn) {
5353 document.addEventListener('DOMContentLoaded', resolveFn);
5359 this.require('rpc'),
5360 this.require('form'),
5361 this.probeRPCBaseURL()
5362 ]).then(this.setupDOM.bind(this)).catch(this.error);
5364 originalCBIInit = window.cbi_init;
5365 window.cbi_init = function() {};
5369 * Captures the current stack trace and throws an error of the
5370 * specified type as a new exception. Also logs the exception as
5371 * error to the debug console if it is available.
5376 * @param {Error|string} [type=Error]
5377 * Either a string specifying the type of the error to throw or an
5378 * existing `Error` instance to copy.
5380 * @param {string} [fmt=Unspecified error]
5381 * A format string which is used to form the error message, together
5382 * with all subsequent optional arguments.
5384 * @param {...*} [args]
5385 * Zero or more variable arguments to the supplied format string.
5388 * Throws the created error object with the captured stack trace
5389 * appended to the message and the type set to the given type
5390 * argument or copied from the given error instance.
5392 raise: function(type, fmt /*, ...*/) {
5394 msg = fmt ? String.prototype.format.apply(fmt, this.varargs(arguments,
2)) : null,
5397 if (type instanceof Error) {
5401 e.message = msg + ': ' + e.message;
5404 try { throw new Error('stacktrace') }
5405 catch (e2) { stack = (e2.stack || '').split(/\n/) }
5407 e = new (window[type || 'Error'] || Error)(msg || 'Unspecified error');
5408 e.name = type || 'Error';
5411 stack = (stack || []).map(function(frame) {
5412 frame = frame.replace(/(.*?)@(.+):(\d+):(\d+)/g, 'at $
1 ($
2:$
3:$
4)').trim();
5413 return frame ? ' ' + frame : '';
5416 if (!/^ at /.test(stack[
0]))
5419 if (/\braise /.test(stack[
0]))
5422 if (/\berror /.test(stack[
0]))
5426 e.message += '\n' + stack.join('\n');
5428 if (window.console
&& console.debug)
5435 * A wrapper around {@link LuCI#raise raise()} which also renders
5436 * the error either as modal overlay when `ui.js` is already loaed
5437 * or directly into the view body.
5442 * @param {Error|string} [type=Error]
5443 * Either a string specifying the type of the error to throw or an
5444 * existing `Error` instance to copy.
5446 * @param {string} [fmt=Unspecified error]
5447 * A format string which is used to form the error message, together
5448 * with all subsequent optional arguments.
5450 * @param {...*} [args]
5451 * Zero or more variable arguments to the supplied format string.
5454 * Throws the created error object with the captured stack trace
5455 * appended to the message and the type set to the given type
5456 * argument or copied from the given error instance.
5458 error: function(type, fmt /*, ...*/) {
5460 L.raise.apply(L, Array.prototype.slice.call(arguments));
5465 L.ui.addNotification(e.name || _('Runtime error'),
5466 E('pre', {}, e.message), 'danger');
5468 DOM.content(document.querySelector('#maincontent'),
5469 E('pre', { 'class': 'alert-message error' }, e.message));
5479 * Return a bound function using the given `self` as `this` context
5480 * and any further arguments as parameters to the bound function.
5485 * @param {function} fn
5486 * The function to bind.
5489 * The value to bind as `this` context to the specified function.
5491 * @param {...*} [args]
5492 * Zero or more variable arguments which are bound to the function
5495 * @returns {function}
5496 * Returns the bound function.
5498 bind: function(fn, self /*, ... */) {
5499 return Function.prototype.bind.apply(fn, this.varargs(arguments,
2, self));
5503 * Load an additional LuCI JavaScript class and its dependencies,
5504 * instantiate it and return the resulting class instance. Each
5505 * class is only loaded once. Subsequent attempts to load the same
5506 * class will return the already instantiated class.
5511 * @param {string} name
5512 * The name of the class to load in dotted notation. Dots will
5513 * be replaced by spaces and joined with the runtime-determined
5514 * base URL of LuCI.js to form an absolute URL to load the class
5517 * @throws {DependencyError}
5518 * Throws a `DependencyError` when the class to load includes
5519 * circular dependencies.
5521 * @throws {NetworkError}
5522 * Throws `NetworkError` when the underlying {@link LuCI.request}
5525 * @throws {SyntaxError}
5526 * Throws `SyntaxError` when the loaded class file code cannot
5527 * be interpreted by `eval`.
5529 * @throws {TypeError}
5530 * Throws `TypeError` when the class file could be loaded and
5531 * interpreted, but when invoking its code did not yield a valid
5534 * @returns {Promise
<LuCI.baseclass
>}
5535 * Returns the instantiated class.
5537 require: function(name, from) {
5538 var L = this, url = null, from = from || [];
5540 /* Class already loaded */
5541 if (classes[name] != null) {
5542 /* Circular dependency */
5543 if (from.indexOf(name) != -
1)
5544 L.raise('DependencyError',
5545 'Circular dependency: class
"%s" depends on
"%s"',
5546 name, from.join('
" which depends on "'));
5548 return Promise.resolve(classes[name]);
5551 url = '%s/%s.js%s'.format(L.env.base_url, name.replace(/\./g, '/'), (L.env.resource_version ? '?v=' + L.env.resource_version : ''));
5552 from = [ name ].concat(from);
5554 var compileClass = function(res) {
5556 L.raise('NetworkError',
5557 'HTTP error %d while loading class file
"%s"', res.status, url);
5559 var source = res.text(),
5560 requirematch = /^require[ \t]+(\S+)(?:[ \t]+as[ \t]+([a-zA-Z_]\S*))?$/,
5561 strictmatch = /^use[ \t]+strict$/,
5565 /* find require statements in source */
5566 for (var i =
0, off = -
1, quote = -
1, esc = false; i
< source.length; i++) {
5567 var chr = source.charCodeAt(i);
5572 else if (chr ==
92) {
5575 else if (chr == quote) {
5576 var s = source.substring(off, i),
5577 m = requirematch.exec(s);
5580 var dep = m[
1], as = m[
2] || dep.replace(/[^a-zA-Z0-
9_]/g, '_');
5581 depends.push(L.require(dep, from));
5584 else if (!strictmatch.exec(s)) {
5591 else if (quote == -
1 && (chr ==
34 || chr ==
39)) {
5597 /* load dependencies and instantiate class */
5598 return Promise.all(depends).then(function(instances) {
5599 var _factory, _class;
5603 '(function(window, document, L%s) { %s })\n\n//# sourceURL=%s\n'
5604 .format(args, source, res.url));
5607 L.raise('SyntaxError', '%s\n in %s:%s',
5608 error.message, res.url, error.lineNumber || '?');
5611 _factory.displayName = toCamelCase(name + 'ClassFactory');
5612 _class = _factory.apply(_factory, [window, document, L].concat(instances));
5614 if (!Class.isSubclass(_class))
5615 L.error('TypeError', '
"%s" factory yields invalid constructor', name);
5617 if (_class.displayName == 'AnonymousClass')
5618 _class.displayName = toCamelCase(name + 'Class');
5620 var ptr = Object.getPrototypeOf(L),
5621 parts = name.split(/\./),
5622 instance = new _class();
5624 for (var i =
0; ptr
&& i
< parts.length -
1; i++)
5625 ptr = ptr[parts[i]];
5628 ptr[parts[i]] = instance;
5630 classes[name] = instance;
5636 /* Request class file */
5637 classes[name] = Request.get(url, { cache: true }).then(compileClass);
5639 return classes[name];
5643 probeRPCBaseURL: function() {
5644 if (rpcBaseURL == null) {
5646 rpcBaseURL = window.sessionStorage.getItem('rpcBaseURL');
5651 if (rpcBaseURL == null) {
5652 var rpcFallbackURL = this.url('admin/ubus');
5654 rpcBaseURL = Request.get(this.env.ubuspath).then(function(res) {
5655 return (rpcBaseURL = (res.status ==
400) ? L.env.ubuspath : rpcFallbackURL);
5657 return (rpcBaseURL = rpcFallbackURL);
5658 }).then(function(url) {
5660 window.sessionStorage.setItem('rpcBaseURL', url);
5668 return Promise.resolve(rpcBaseURL);
5671 probeSystemFeatures: function() {
5672 var sessionid = classes.rpc.getSessionID();
5674 if (sysFeatures == null) {
5676 var data = JSON.parse(window.sessionStorage.getItem('sysFeatures'));
5678 if (this.isObject(data)
&& this.isObject(data[sessionid]))
5679 sysFeatures = data[sessionid];
5684 if (!this.isObject(sysFeatures)) {
5685 sysFeatures = classes.rpc.declare({
5687 method: 'getFeatures',
5689 })().then(function(features) {
5692 data[sessionid] = features;
5694 window.sessionStorage.setItem('sysFeatures', JSON.stringify(data));
5698 sysFeatures = features;
5704 return Promise.resolve(sysFeatures);
5708 * Test whether a particular system feature is available, such as
5709 * hostapd SAE support or an installed firewall. The features are
5710 * queried once at the beginning of the LuCI session and cached in
5711 * `SessionStorage` throughout the lifetime of the associated tab or
5717 * @param {string} feature
5718 * The feature to test. For detailed list of known feature flags,
5719 * see `/modules/luci-base/root/usr/libexec/rpcd/luci`.
5721 * @param {string} [subfeature]
5722 * Some feature classes like `hostapd` provide sub-feature flags,
5723 * such as `sae` or `
11w` support. The `subfeature` argument can
5724 * be used to query these.
5726 * @return {boolean|null}
5727 * Return `true` if the queried feature (and sub-feature) is available
5728 * or `false` if the requested feature isn't present or known.
5729 * Return `null` when a sub-feature was queried for a feature which
5730 * has no sub-features.
5732 hasSystemFeature: function() {
5733 var ft = sysFeatures[arguments[
0]];
5735 if (arguments.length ==
2)
5736 return this.isObject(ft) ? ft[arguments[
1]] : null;
5738 return (ft != null
&& ft != false);
5742 notifySessionExpiry: function() {
5745 L.ui.showModal(_('Session expired'), [
5746 E('div', { class: 'alert-message warning' },
5747 _('A new login is required since the authentication session expired.')),
5748 E('div', { class: 'right' },
5750 class: 'btn primary',
5752 var loc = window.location;
5753 window.location = loc.protocol + '//' + loc.host + loc.pathname + loc.search;
5755 }, _('To login…')))
5758 L.raise('SessionError', 'Login session is expired');
5762 setupDOM: function(res) {
5767 rpcBaseURL = res[
4];
5769 rpcClass.setBaseURL(rpcBaseURL);
5771 rpcClass.addInterceptor(function(msg, req) {
5772 if (!L.isObject(msg) || !L.isObject(msg.error) || msg.error.code != -
32002)
5775 if (!L.isObject(req) || (req.object == 'session'
&& req.method == 'access'))
5778 return rpcClass.declare({
5779 'object': 'session',
5781 'params': [ 'scope', 'object', 'function' ],
5782 'expect': { access: true }
5783 })('uci', 'luci', 'read').catch(L.notifySessionExpiry);
5786 Request.addInterceptor(function(res) {
5787 var isDenied = false;
5789 if (res.status ==
403 && res.headers.get('X-LuCI-Login-Required') == 'yes')
5795 L.notifySessionExpiry();
5798 return this.probeSystemFeatures().finally(this.initDOM);
5802 initDOM: function() {
5805 document.dispatchEvent(new CustomEvent('luci-loaded'));
5809 * The `env` object holds environment settings used by LuCI, such
5810 * as request timeouts, base URLs etc.
5818 * Construct a relative URL path from the given prefix and parts.
5819 * The resulting URL is guaranteed to only contain the characters
5820 * `a-z`, `A-Z`, `
0-
9`, `_`, `.`, `%`, `,`, `;`, and `-` as well
5821 * as `/` for the path separator.
5826 * @param {string} [prefix]
5827 * The prefix to join the given parts with. If the `prefix` is
5828 * omitted, it defaults to an empty string.
5830 * @param {string[]} [parts]
5831 * An array of parts to join into an URL path. Parts may contain
5832 * slashes and any of the other characters mentioned above.
5835 * Return the joined URL path.
5837 path: function(prefix, parts) {
5838 var url = [ prefix || '' ];
5840 for (var i =
0; i
< parts.length; i++)
5841 if (/^(?:[a-zA-Z0-
9_.%,;-]+\/)*[a-zA-Z0-
9_.%,;-]+$/.test(parts[i]))
5842 url.push('/', parts[i]);
5844 if (url.length ===
1)
5847 return url.join('');
5851 * Construct an URL pathrelative to the script path of the server
5852 * side LuCI application (usually `/cgi-bin/luci`).
5854 * The resulting URL is guaranteed to only contain the characters
5855 * `a-z`, `A-Z`, `
0-
9`, `_`, `.`, `%`, `,`, `;`, and `-` as well
5856 * as `/` for the path separator.
5861 * @param {string[]} [parts]
5862 * An array of parts to join into an URL path. Parts may contain
5863 * slashes and any of the other characters mentioned above.
5866 * Returns the resulting URL path.
5869 return this.path(this.env.scriptname, arguments);
5873 * Construct an URL path relative to the global static resource path
5874 * of the LuCI ui (usually `/luci-static/resources`).
5876 * The resulting URL is guaranteed to only contain the characters
5877 * `a-z`, `A-Z`, `
0-
9`, `_`, `.`, `%`, `,`, `;`, and `-` as well
5878 * as `/` for the path separator.
5883 * @param {string[]} [parts]
5884 * An array of parts to join into an URL path. Parts may contain
5885 * slashes and any of the other characters mentioned above.
5888 * Returns the resulting URL path.
5890 resource: function() {
5891 return this.path(this.env.resource, arguments);
5895 * Construct an URL path relative to the media resource path of the
5896 * LuCI ui (usually `/luci-static/$theme_name`).
5898 * The resulting URL is guaranteed to only contain the characters
5899 * `a-z`, `A-Z`, `
0-
9`, `_`, `.`, `%`, `,`, `;`, and `-` as well
5900 * as `/` for the path separator.
5905 * @param {string[]} [parts]
5906 * An array of parts to join into an URL path. Parts may contain
5907 * slashes and any of the other characters mentioned above.
5910 * Returns the resulting URL path.
5913 return this.path(this.env.media, arguments);
5917 * Return the complete URL path to the current view.
5923 * Returns the URL path to the current view.
5925 location: function() {
5926 return this.path(this.env.scriptname, this.env.requestpath);
5931 * Tests whether the passed argument is a JavaScript object.
5932 * This function is meant to be an object counterpart to the
5933 * standard `Array.isArray()` function.
5942 * Returns `true` if the given value is of type object and
5943 * not `null`, else returns `false`.
5945 isObject: function(val) {
5946 return (val != null
&& typeof(val) == 'object');
5950 * Return an array of sorted object keys, optionally sorted by
5951 * a different key or a different sorting mode.
5956 * @param {object} obj
5957 * The object to extract the keys from. If the given value is
5958 * not an object, the function will return an empty array.
5960 * @param {string} [key]
5961 * Specifies the key to order by. This is mainly useful for
5962 * nested objects of objects or objects of arrays when sorting
5963 * shall not be performed by the primary object keys but by
5964 * some other key pointing to a value within the nested values.
5966 * @param {string} [sortmode]
5967 * May be either `addr` or `num` to override the natural
5968 * lexicographic sorting with a sorting suitable for IP/MAC style
5969 * addresses or numeric values respectively.
5971 * @return {string[]}
5972 * Returns an array containing the sorted keys of the given object.
5974 sortedKeys: function(obj, key, sortmode) {
5975 if (obj == null || typeof(obj) != 'object')
5978 return Object.keys(obj).map(function(e) {
5979 var v = (key != null) ? obj[e][key] : e;
5983 v = (v != null) ? v.replace(/(?:^|[.:])([
0-
9a-fA-F]{
1,
4})/g,
5984 function(m0, m1) { return ('
000' + m1.toLowerCase()).substr(-
4) }) : null;
5988 v = (v != null) ? +v : null;
5993 }).filter(function(e) {
5994 return (e[
1] != null);
5995 }).sort(function(a, b) {
5996 return (a[
1]
> b[
1]);
5997 }).map(function(e) {
6003 * Converts the given value to an array. If the given value is of
6004 * type array, it is returned as-is, values of type object are
6005 * returned as one-element array containing the object, empty
6006 * strings and `null` values are returned as empty array, all other
6007 * values are converted using `String()`, trimmed, split on white
6008 * space and returned as array.
6014 * The value to convert into an array.
6016 * @return {Array
<*
>}
6017 * Returns the resulting array.
6019 toArray: function(val) {
6022 else if (Array.isArray(val))
6024 else if (typeof(val) == 'object')
6027 var s = String(val).trim();
6032 return s.split(/\s+/);
6036 * Returns a promise resolving with either the given value or or with
6037 * the given default in case the input value is a rejecting promise.
6043 * The value to resolve the promise with.
6045 * @param {*} defvalue
6046 * The default value to resolve the promise with in case the given
6047 * input value is a rejecting promise.
6049 * @returns {Promise
<*
>}
6050 * Returns a new promise resolving either to the given input value or
6051 * to the given default value on error.
6053 resolveDefault: function(value, defvalue) {
6054 return Promise.resolve(value).catch(function() { return defvalue });
6058 * The request callback function is invoked whenever an HTTP
6059 * reply to a request made using the `L.get()`, `L.post()` or
6060 * `L.poll()` function is timed out or received successfully.
6065 * @callback LuCI.requestCallbackFn
6066 * @param {XMLHTTPRequest} xhr
6067 * The XMLHTTPRequest instance used to make the request.
6070 * The response JSON if the response could be parsed as such,
6073 * @param {number} duration
6074 * The total duration of the request in milliseconds.
6078 * Issues a GET request to the given url and invokes the specified
6079 * callback function. The function is a wrapper around
6080 * {@link LuCI.request#request Request.request()}.
6086 * @param {string} url
6087 * The URL to request.
6089 * @param {Object
<string, string
>} [args]
6090 * Additional query string arguments to append to the URL.
6092 * @param {LuCI.requestCallbackFn} cb
6093 * The callback function to invoke when the request finishes.
6095 * @return {Promise
<null
>}
6096 * Returns a promise resolving to `null` when concluded.
6098 get: function(url, args, cb) {
6099 return this.poll(null, url, args, cb, false);
6103 * Issues a POST request to the given url and invokes the specified
6104 * callback function. The function is a wrapper around
6105 * {@link LuCI.request#request Request.request()}. The request is
6106 * sent using `application/x-www-form-urlencoded` encoding and will
6107 * contain a field `token` with the current value of `LuCI.env.token`
6114 * @param {string} url
6115 * The URL to request.
6117 * @param {Object
<string, string
>} [args]
6118 * Additional post arguments to append to the request body.
6120 * @param {LuCI.requestCallbackFn} cb
6121 * The callback function to invoke when the request finishes.
6123 * @return {Promise
<null
>}
6124 * Returns a promise resolving to `null` when concluded.
6126 post: function(url, args, cb) {
6127 return this.poll(null, url, args, cb, true);
6131 * Register a polling HTTP request that invokes the specified
6132 * callback function. The function is a wrapper around
6133 * {@link LuCI.request.poll#add Request.poll.add()}.
6139 * @param {number} interval
6140 * The poll interval to use. If set to a value less than or equal
6141 * to `
0`, it will default to the global poll interval configured
6142 * in `LuCI.env.pollinterval`.
6144 * @param {string} url
6145 * The URL to request.
6147 * @param {Object
<string, string
>} [args]
6148 * Specifies additional arguments for the request. For GET requests,
6149 * the arguments are appended to the URL as query string, for POST
6150 * requests, they'll be added to the request body.
6152 * @param {LuCI.requestCallbackFn} cb
6153 * The callback function to invoke whenever a request finishes.
6155 * @param {boolean} [post=false]
6156 * When set to `false` or not specified, poll requests will be made
6157 * using the GET method. When set to `true`, POST requests will be
6158 * issued. In case of POST requests, the request body will contain
6159 * an argument `token` with the current value of `LuCI.env.token` by
6160 * default, regardless of the parameters specified with `args`.
6162 * @return {function}
6163 * Returns the internally created function that has been passed to
6164 * {@link LuCI.request.poll#add Request.poll.add()}. This value can
6165 * be passed to {@link LuCI.poll.remove Poll.remove()} to remove the
6168 poll: function(interval, url, args, cb, post) {
6169 if (interval !== null
&& interval
<=
0)
6170 interval = this.env.pollinterval;
6172 var data = post ? { token: this.env.token } : null,
6173 method = post ? 'POST' : 'GET';
6175 if (!/^(?:\/|\S+:\/\/)/.test(url))
6176 url = this.url(url);
6179 data = Object.assign(data || {}, args);
6181 if (interval !== null)
6182 return Request.poll.add(interval, url, { method: method, query: data }, cb);
6184 return Request.request(url, { method: method, query: data })
6185 .then(function(res) {
6187 if (/^application\/json\b/.test(res.headers.get('Content-Type')))
6188 try { json = res.json() } catch(e) {}
6189 cb(res.xhr, json, res.duration);
6194 * Deprecated wrapper around {@link LuCI.poll.remove Poll.remove()}.
6200 * @param {function} entry
6201 * The polling function to remove.
6204 * Returns `true` when the function has been removed or `false` if
6205 * it could not be found.
6207 stop: function(entry) { return Poll.remove(entry) },
6210 * Deprecated wrapper around {@link LuCI.poll.stop Poll.stop()}.
6217 * Returns `true` when the polling loop has been stopped or `false`
6218 * when it didn't run to begin with.
6220 halt: function() { return Poll.stop() },
6223 * Deprecated wrapper around {@link LuCI.poll.start Poll.start()}.
6230 * Returns `true` when the polling loop has been started or `false`
6231 * when it was already running.
6233 run: function() { return Poll.start() },
6236 * Legacy `L.dom` class alias. New view code should use `'require dom';`
6237 * to request the `LuCI.dom` class.
6246 * Legacy `L.view` class alias. New view code should use `'require view';`
6247 * to request the `LuCI.view` class.
6256 * Legacy `L.Poll` class alias. New view code should use `'require poll';`
6257 * to request the `LuCI.poll` class.
6266 * Legacy `L.Request` class alias. New view code should use `'require request';`
6267 * to request the `LuCI.request` class.
6276 * Legacy `L.Class` class alias. New view code should use `'require baseclass';`
6277 * to request the `LuCI.baseclass` class.
6292 * The `LuCI.xhr` class is a legacy compatibility shim for the
6293 * functionality formerly provided by `xhr.js`. It is registered as global
6294 * `window.XHR` symbol for compatibility with legacy code.
6296 * New code should use {@link LuCI.request} instead to implement HTTP
6299 var XHR = Class.extend(/** @lends LuCI.xhr.prototype */ {
6300 __name__: 'LuCI.xhr',
6301 __init__: function() {
6302 if (window.console
&& console.debug)
6303 console.debug('Direct use XHR() is deprecated, please use L.Request instead');
6306 _response: function(cb, res, json, duration) {
6308 cb(res, json, duration);
6313 * This function is a legacy wrapper around
6314 * {@link LuCI#get LuCI.get()}.
6318 * @memberof LuCI.xhr
6320 * @param {string} url
6321 * The URL to request
6323 * @param {Object} [data]
6324 * Additional query string data
6326 * @param {LuCI.requestCallbackFn} [callback]
6327 * Callback function to invoke on completion
6329 * @param {number} [timeout]
6330 * Request timeout to use
6332 * @return {Promise
<null
>}
6334 get: function(url, data, callback, timeout) {
6336 L.get(url, data, this._response.bind(this, callback), timeout);
6340 * This function is a legacy wrapper around
6341 * {@link LuCI#post LuCI.post()}.
6345 * @memberof LuCI.xhr
6347 * @param {string} url
6348 * The URL to request
6350 * @param {Object} [data]
6351 * Additional data to append to the request body.
6353 * @param {LuCI.requestCallbackFn} [callback]
6354 * Callback function to invoke on completion
6356 * @param {number} [timeout]
6357 * Request timeout to use
6359 * @return {Promise
<null
>}
6361 post: function(url, data, callback, timeout) {
6363 L.post(url, data, this._response.bind(this, callback), timeout);
6367 * Cancels a running request.
6369 * This function does not actually cancel the underlying
6370 * `XMLHTTPRequest` request but it sets a flag which prevents the
6371 * invocation of the callback function when the request eventually
6372 * finishes or timed out.
6376 * @memberof LuCI.xhr
6378 cancel: function() { delete this.active },
6381 * Checks the running state of the request.
6385 * @memberof LuCI.xhr
6387 * @returns {boolean}
6388 * Returns `true` if the request is still running or `false` if it
6389 * already completed.
6391 busy: function() { return (this.active === true) },
6394 * Ignored for backwards compatibility.
6396 * This function does nothing.
6400 * @memberof LuCI.xhr
6402 abort: function() {},
6405 * Existing for backwards compatibility.
6407 * This function simply throws an `InternalError` when invoked.
6411 * @memberof LuCI.xhr
6413 * @throws {InternalError}
6414 * Throws an `InternalError` with the message `Not implemented`
6417 send_form: function() { L.error('InternalError', 'Not implemented') },
6420 XHR.get = function() { return window.L.get.apply(window.L, arguments) };
6421 XHR.post = function() { return window.L.post.apply(window.L, arguments) };
6422 XHR.poll = function() { return window.L.poll.apply(window.L, arguments) };
6423 XHR.stop = Request.poll.remove.bind(Request.poll);
6424 XHR.halt = Request.poll.stop.bind(Request.poll);
6425 XHR.run = Request.poll.start.bind(Request.poll);
6426 XHR.running = Request.poll.active.bind(Request.poll);
6430 })(window, document);
6443 Documentation generated by
<a href=
"https://github.com/jsdoc3/jsdoc">JSDoc
3.6.3</a> on Tue Apr
07 2020 16:
33:
40 GMT+
0200 (Central European Summer Time)
6447 <script>prettyPrint();
</script>
6448 <script src=
"scripts/jaguar.js"></script>