5 <title>Source: form.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="form.js.html">Source: form.js</h1>
3219 <pre id="source-code" class="prettyprint source "><code>'use strict';
3223 'require baseclass';
3227 var CBIJSONConfig = baseclass.extend({
3228 __init__: function(data) {
3229 data = Object.assign({}, data);
3233 var num_sections = 0,
3236 for (var sectiontype in data) {
3237 if (!data.hasOwnProperty(sectiontype))
3240 if (L.isObject(data[sectiontype])) {
3241 this.data[sectiontype] = Object.assign(data[sectiontype], {
3242 '.anonymous': false,
3243 '.name': sectiontype,
3244 '.type': sectiontype
3247 section_ids.push(sectiontype);
3250 else if (Array.isArray(data[sectiontype])) {
3251 for (var i = 0, index = 0; i < data[sectiontype].length; i++) {
3252 var item = data[sectiontype][i],
3255 if (!L.isObject(item))
3258 if (typeof(item['.name']) == 'string') {
3259 name = item['.name'];
3263 name = sectiontype + num_sections;
3267 if (!this.data.hasOwnProperty(name))
3268 section_ids.push(name);
3270 this.data[name] = Object.assign(item, {
3271 '.index': num_sections++,
3272 '.anonymous': anonymous,
3274 '.type': sectiontype
3280 section_ids.sort(L.bind(function(a, b) {
3281 var indexA = (this.data[a]['.index'] != null) ? +this.data[a]['.index'] : 9999,
3282 indexB = (this.data[b]['.index'] != null) ? +this.data[b]['.index'] : 9999;
3284 if (indexA != indexB)
3285 return (indexA - indexB);
3290 for (var i = 0; i < section_ids.length; i++)
3291 this.data[section_ids[i]]['.index'] = i;
3295 return Promise.resolve(this.data);
3299 return Promise.resolve();
3302 get: function(config, section, option) {
3303 if (section == null)
3307 return this.data[section];
3309 if (!this.data.hasOwnProperty(section))
3312 var value = this.data[section][option];
3314 if (Array.isArray(value))
3318 return String(value);
3323 set: function(config, section, option, value) {
3324 if (section == null || option == null || option.charAt(0) == '.')
3327 if (!this.data.hasOwnProperty(section))
3331 delete this.data[section][option];
3332 else if (Array.isArray(value))
3333 this.data[section][option] = value;
3335 this.data[section][option] = String(value);
3338 unset: function(config, section, option) {
3339 return this.set(config, section, option, null);
3342 sections: function(config, sectiontype, callback) {
3345 for (var section_id in this.data)
3346 if (sectiontype == null || this.data[section_id]['.type'] == sectiontype)
3347 rv.push(this.data[section_id]);
3349 rv.sort(function(a, b) { return a['.index'] - b['.index'] });
3351 if (typeof(callback) == 'function')
3352 for (var i = 0; i < rv.length; i++)
3353 callback.call(this, rv[i], rv[i]['.name']);
3358 add: function(config, sectiontype, sectionname) {
3359 var num_sections_type = 0, next_index = 0;
3361 for (var name in this.data) {
3362 num_sections_type += (this.data[name]['.type'] == sectiontype);
3363 next_index = Math.max(next_index, this.data[name]['.index']);
3366 var section_id = sectionname || sectiontype + num_sections_type;
3368 if (!this.data.hasOwnProperty(section_id)) {
3369 this.data[section_id] = {
3370 '.name': section_id,
3371 '.type': sectiontype,
3372 '.anonymous': (sectionname == null),
3373 '.index': next_index + 1
3380 remove: function(config, section) {
3381 if (this.data.hasOwnProperty(section))
3382 delete this.data[section];
3385 resolveSID: function(config, section_id) {
3389 move: function(config, section_id1, section_id2, after) {
3390 return uci.move.apply(this, [config, section_id1, section_id2, after]);
3395 * @class AbstractElement
3396 * @memberof LuCI.form
3400 * The `AbstractElement` class serves as abstract base for the different form
3401 * elements implemented by `LuCI.form`. It provides the common logic for
3402 * loading and rendering values, for nesting elements and for defining common
3405 * This class is private and not directly accessible by user code.
3407 var CBIAbstractElement = baseclass.extend(/** @lends LuCI.form.AbstractElement.prototype */ {
3408 __init__: function(title, description) {
3409 this.title = title || '';
3410 this.description = description || '';
3415 * Add another form element as children to this element.
3417 * @param {AbstractElement} element
3418 * The form element to add.
3420 append: function(obj) {
3421 this.children.push(obj);
3425 * Parse this elements form input.
3427 * The `parse()` function recursively walks the form element tree and
3428 * triggers input value reading and validation for each encountered element.
3430 * Elements which are hidden due to unsatisified dependencies are skipped.
3432 * @returns {Promise<void>}
3433 * Returns a promise resolving once this element's value and the values of
3434 * all child elements have been parsed. The returned promise is rejected
3435 * if any parsed values are not meeting the validation constraints of their
3436 * respective elements.
3439 var args = arguments;
3440 this.children.forEach(function(child) {
3441 child.parse.apply(child, args);
3446 * Render the form element.
3448 * The `render()` function recursively walks the form element tree and
3449 * renders the markup for each element, returning the assembled DOM tree.
3452 * @returns {Node|Promise<Node>}
3453 * May return a DOM Node or a promise resolving to a DOM node containing
3454 * the form element's markup, including the markup of any child elements.
3456 render: function() {
3457 L.error('InternalError', 'Not implemented');
3461 loadChildren: function(/* ... */) {
3464 if (Array.isArray(this.children))
3465 for (var i = 0; i < this.children.length; i++)
3466 if (!this.children[i].disable)
3467 tasks.push(this.children[i].load.apply(this.children[i], arguments));
3469 return Promise.all(tasks);
3473 renderChildren: function(tab_name /*, ... */) {
3477 if (Array.isArray(this.children))
3478 for (var i = 0; i < this.children.length; i++)
3479 if (tab_name === null || this.children[i].tab === tab_name)
3480 if (!this.children[i].disable)
3481 tasks.push(this.children[i].render.apply(
3482 this.children[i], this.varargs(arguments, 1, index++)));
3484 return Promise.all(tasks);
3488 * Strip any HTML tags from the given input string.
3490 * @param {string} input
3491 * The input string to clean.
3494 * The cleaned input string with HTML removes removed.
3496 stripTags: function(s) {
3497 if (typeof(s) == 'string' && !s.match(/[<>]/))
3500 var x = E('div', {}, s);
3501 return x.textContent || x.innerText || '';
3505 * Format the given named property as title string.
3507 * This function looks up the given named property and formats its value
3508 * suitable for use as element caption or description string. It also
3509 * strips any HTML tags from the result.
3511 * If the property value is a string, it is passed to `String.format()`
3512 * along with any additional parameters passed to `titleFn()`.
3514 * If the property value is a function, it is invoked with any additional
3515 * `titleFn()` parameters as arguments and the obtained return value is
3516 * converted to a string.
3518 * In all other cases, `null` is returned.
3520 * @param {string} property
3521 * The name of the element property to use.
3523 * @param {...*} fmt_args
3524 * Extra values to format the title string with.
3526 * @returns {string|null}
3527 * The formatted title string or `null` if the property did not exist or
3528 * was neither a string nor a function.
3530 titleFn: function(attr /*, ... */) {
3533 if (typeof(this[attr]) == 'function')
3534 s = this[attr].apply(this, this.varargs(arguments, 1));
3535 else if (typeof(this[attr]) == 'string')
3536 s = (arguments.length > 1) ? ''.format.apply(this[attr], this.varargs(arguments, 1)) : this[attr];
3539 s = this.stripTags(String(s)).trim();
3541 if (s == null || s == '')
3550 * @memberof LuCI.form
3551 * @augments LuCI.form.AbstractElement
3555 * The `Map` class represents one complete form. A form usually maps one UCI
3556 * configuraton file and is divided into multiple sections containing multiple
3559 * It serves as main entry point into the `LuCI.form` for typical view code.
3561 * @param {string} config
3562 * The UCI configuration to map. It is automatically loaded along when the
3563 * resulting map instance.
3565 * @param {string} [title]
3566 * The title caption of the form. A form title is usually rendered as separate
3567 * headline element before the actual form contents. If omitted, the
3568 * corresponding headline element will not be rendered.
3570 * @param {string} [description]
3571 * The description text of the form which is usually rendered as text
3572 * paragraph below the form title and before the actual form conents.
3573 * If omitted, the corresponding paragraph element will not be rendered.
3575 var CBIMap = CBIAbstractElement.extend(/** @lends LuCI.form.Map.prototype */ {
3576 __init__: function(config /*, ... */) {
3577 this.super('__init__', this.varargs(arguments, 1));
3579 this.config = config;
3580 this.parsechain = [ config ];
3585 * Find all DOM nodes within this Map which match the given search
3586 * parameters. This function is essentially a convenience wrapper around
3587 * `querySelectorAll()`.
3589 * This function is sensitive to the amount of arguments passed to it;
3590 * if only one argument is specified, it is used as selector-expression
3591 * as-is. When two arguments are passed, the first argument is treated
3592 * as attribute name, the second one as attribute value to match.
3594 * As an example, `map.findElements('input')` would find all `<input>`
3595 * nodes while `map.findElements('type', 'text')` would find any DOM node
3596 * with a `type="text"` attribute.
3598 * @param {string} selector_or_attrname
3599 * If invoked with only one parameter, this argument is a
3600 * `querySelectorAll()` compatible selector expression. If invoked with
3601 * two parameters, this argument is the attribute name to filter for.
3603 * @param {string} [attrvalue]
3604 * In case the function is invoked with two parameters, this argument
3605 * specifies the attribute value to match.
3607 * @throws {InternalError}
3608 * Throws an `InternalError` if more than two function parameters are
3611 * @returns {NodeList}
3612 * Returns a (possibly empty) DOM `NodeList` containing the found DOM nodes.
3614 findElements: function(/* ... */) {
3617 if (arguments.length == 1)
3619 else if (arguments.length == 2)
3620 q = '[%s="%s"]'.format(arguments[0], arguments[1]);
3622 L.error('InternalError', 'Expecting one or two arguments to findElements()');
3624 return this.root.querySelectorAll(q);
3628 * Find the first DOM node within this Map which matches the given search
3629 * parameters. This function is essentially a convenience wrapper around
3630 * `findElements()` which only returns the first found node.
3632 * This function is sensitive to the amount of arguments passed to it;
3633 * if only one argument is specified, it is used as selector-expression
3634 * as-is. When two arguments are passed, the first argument is treated
3635 * as attribute name, the second one as attribute value to match.
3637 * As an example, `map.findElement('input')` would find the first `<input>`
3638 * node while `map.findElement('type', 'text')` would find the first DOM
3639 * node with a `type="text"` attribute.
3641 * @param {string} selector_or_attrname
3642 * If invoked with only one parameter, this argument is a `querySelector()`
3643 * compatible selector expression. If invoked with two parameters, this
3644 * argument is the attribute name to filter for.
3646 * @param {string} [attrvalue]
3647 * In case the function is invoked with two parameters, this argument
3648 * specifies the attribute value to match.
3650 * @throws {InternalError}
3651 * Throws an `InternalError` if more than two function parameters are
3654 * @returns {Node|null}
3655 * Returns the first found DOM node or `null` if no element matched.
3657 findElement: function(/* ... */) {
3658 var res = this.findElements.apply(this, arguments);
3659 return res.length ? res[0] : null;
3663 * Tie another UCI configuration to the map.
3665 * By default, a map instance will only load the UCI configuration file
3666 * specified in the constructor but sometimes access to values from
3667 * further configuration files is required. This function allows for such
3668 * use cases by registering further UCI configuration files which are
3669 * needed by the map.
3671 * @param {string} config
3672 * The additional UCI configuration file to tie to the map. If the given
3673 * config already is in the list of required files, it will be ignored.
3675 chain: function(config) {
3676 if (this.parsechain.indexOf(config) == -1)
3677 this.parsechain.push(config);
3681 * Add a configuration section to the map.
3683 * LuCI forms follow the structure of the underlying UCI configurations,
3684 * means that a map, which represents a single UCI configuration, is
3685 * divided into multiple sections which in turn contain an arbitrary
3686 * number of options.
3688 * While UCI itself only knows two kinds of sections - named and anonymous
3689 * ones - the form class offers various flavors of form section elements
3690 * to present configuration sections in different ways. Refer to the
3691 * documentation of the different section classes for details.
3693 * @param {LuCI.form.AbstractSection} sectionclass
3694 * The section class to use for rendering the configuration section.
3695 * Note that this value must be the class itself, not a class instance
3696 * obtained from calling `new`. It must also be a class dervied from
3697 * `LuCI.form.AbstractSection`.
3699 * @param {...string} classargs
3700 * Additional arguments which are passed as-is to the contructor of the
3701 * given section class. Refer to the class specific constructor
3702 * documentation for details.
3704 * @returns {LuCI.form.AbstractSection}
3705 * Returns the instantiated section class instance.
3707 section: function(cbiClass /*, ... */) {
3708 if (!CBIAbstractSection.isSubclass(cbiClass))
3709 L.error('TypeError', 'Class must be a descendent of CBIAbstractSection');
3711 var obj = cbiClass.instantiate(this.varargs(arguments, 1, this));
3717 * Load the configuration covered by this map.
3719 * The `load()` function first loads all referenced UCI configurations,
3720 * then it recursively walks the form element tree and invokes the
3721 * load function of each child element.
3723 * @returns {Promise<void>}
3724 * Returns a promise resolving once the entire form completed loading all
3725 * data. The promise may reject with an error if any configuration failed
3726 * to load or if any of the child elements load functions rejected with
3730 return this.data.load(this.parsechain || [ this.config ])
3731 .then(this.loadChildren.bind(this));
3735 * Parse the form input values.
3737 * The `parse()` function recursively walks the form element tree and
3738 * triggers input value reading and validation for each child element.
3740 * Elements which are hidden due to unsatisified dependencies are skipped.
3742 * @returns {Promise<void>}
3743 * Returns a promise resolving once the entire form completed parsing all
3744 * input values. The returned promise is rejected if any parsed values are
3745 * not meeting the validation constraints of their respective elements.
3750 if (Array.isArray(this.children))
3751 for (var i = 0; i < this.children.length; i++)
3752 tasks.push(this.children[i].parse());
3754 return Promise.all(tasks);
3758 * Save the form input values.
3760 * This function parses the current form, saves the resulting UCI changes,
3761 * reloads the UCI configuration data and redraws the form elements.
3763 * @param {function} [cb]
3764 * An optional callback function that is invoked after the form is parsed
3765 * but before the changed UCI data is saved. This is useful to perform
3766 * additional data manipulation steps before saving the changes.
3768 * @param {boolean} [silent=false]
3769 * If set to `true`, trigger an alert message to the user in case saving
3770 * the form data failes. Otherwise fail silently.
3772 * @returns {Promise<void>}
3773 * Returns a promise resolving once the entire save operation is complete.
3774 * The returned promise is rejected if any step of the save operation
3777 save: function(cb, silent) {
3778 this.checkDepends();
3782 .then(this.data.save.bind(this.data))
3783 .then(this.load.bind(this))
3784 .catch(function(e) {
3786 alert('Cannot save due to invalid values');
3788 return Promise.reject();
3789 }).finally(this.renderContents.bind(this));
3793 * Reset the form by re-rendering its contents. This will revert all
3794 * unsaved user inputs to their initial form state.
3796 * @returns {Promise<Node>}
3797 * Returns a promise resolving to the toplevel form DOM node once the
3798 * re-rendering is complete.
3801 return this.renderContents();
3805 * Render the form markup.
3807 * @returns {Promise<Node>}
3808 * Returns a promise resolving to the toplevel form DOM node once the
3809 * rendering is complete.
3811 render: function() {
3812 return this.load().then(this.renderContents.bind(this));
3816 renderContents: function() {
3817 var mapEl = this.root || (this.root = E('div', {
3818 'id': 'cbi-%s'.format(this.config),
3820 'cbi-dependency-check': L.bind(this.checkDepends, this)
3823 dom.bindClassInstance(mapEl, this);
3825 return this.renderChildren(null).then(L.bind(function(nodes) {
3826 var initialRender = !mapEl.firstChild;
3828 dom.content(mapEl, null);
3830 if (this.title != null && this.title != '')
3831 mapEl.appendChild(E('h2', { 'name': 'content' }, this.title));
3833 if (this.description != null && this.description != '')
3834 mapEl.appendChild(E('div', { 'class': 'cbi-map-descr' }, this.description));
3837 dom.append(mapEl, E('div', { 'class': 'cbi-map-tabbed' }, nodes));
3839 dom.append(mapEl, nodes);
3841 if (!initialRender) {
3842 mapEl.classList.remove('flash');
3844 window.setTimeout(function() {
3845 mapEl.classList.add('flash');
3849 this.checkDepends();
3851 var tabGroups = mapEl.querySelectorAll('.cbi-map-tabbed, .cbi-section-node-tabbed');
3853 for (var i = 0; i < tabGroups.length; i++)
3854 ui.tabs.initTabGroup(tabGroups[i].childNodes);
3861 * Find a form option element instance.
3863 * @param {string} name_or_id
3864 * The name or the full ID of the option element to look up.
3866 * @param {string} [section_id]
3867 * The ID of the UCI section containing the option to look up. May be
3868 * omitted if a full ID is passed as first argument.
3870 * @param {string} [config]
3871 * The name of the UCI configuration the option instance is belonging to.
3872 * Defaults to the main UCI configuration of the map if omitted.
3874 * @returns {Array<LuCI.form.AbstractValue,string>|null}
3875 * Returns a two-element array containing the form option instance as
3876 * first item and the corresponding UCI section ID as second item.
3877 * Returns `null` if the option could not be found.
3879 lookupOption: function(name, section_id, config_name) {
3880 var id, elem, sid, inst;
3882 if (name.indexOf('.') > -1)
3883 id = 'cbid.%s'.format(name);
3885 id = 'cbid.%s.%s.%s'.format(config_name || this.config, section_id, name);
3887 elem = this.findElement('data-field', id);
3888 sid = elem ? id.split(/\./)[2] : null;
3889 inst = elem ? dom.findClassInstance(elem) : null;
3891 return (inst instanceof CBIAbstractValue) ? [ inst, sid ] : null;
3895 checkDepends: function(ev, n) {
3896 var changed = false;
3898 for (var i = 0, s = this.children[0]; (s = this.children[i]) != null; i++)
3899 if (s.checkDepends(ev, n))
3902 if (changed && (n || 0) < 10)
3903 this.checkDepends(ev, (n || 10) + 1);
3905 ui.tabs.updateTabs(ev, this.root);
3909 isDependencySatisfied: function(depends, config_name, section_id) {
3912 if (!Array.isArray(depends) || !depends.length)
3915 for (var i = 0; i < depends.length; i++) {
3917 reverse = depends[i]['!reverse'],
3918 contains = depends[i]['!contains'];
3920 for (var dep in depends[i]) {
3921 if (dep == '!reverse' || dep == '!contains') {
3924 else if (dep == '!default') {
3929 var res = this.lookupOption(dep, section_id, config_name),
3930 val = (res && res[0].isActive(res[1])) ? res[0].formvalue(res[1]) : null;
3932 var equal = contains
3933 ? isContained(val, depends[i][dep])
3934 : isEqual(val, depends[i][dep]);
3936 istat = (istat && equal);
3940 if (istat ^ reverse)
3949 * @constructor JSONMap
3950 * @memberof LuCI.form
3951 * @augments LuCI.form.Map
3955 * A `JSONMap` class functions similar to [LuCI.form.Map]{@link LuCI.form.Map}
3956 * but uses a multidimensional JavaScript object instead of UCI configuration
3959 * @param {Object<string, Object<string, *>|Array<Object<string, *>>>} data
3960 * The JavaScript object to use as data source. Internally, the object is
3961 * converted into an UCI-like format. Its toplevel keys are treated like UCI
3962 * section types while the object or array-of-object values are treated as
3965 * @param {string} [title]
3966 * The title caption of the form. A form title is usually rendered as separate
3967 * headline element before the actual form contents. If omitted, the
3968 * corresponding headline element will not be rendered.
3970 * @param {string} [description]
3971 * The description text of the form which is usually rendered as text
3972 * paragraph below the form title and before the actual form conents.
3973 * If omitted, the corresponding paragraph element will not be rendered.
3975 var CBIJSONMap = CBIMap.extend(/** @lends LuCI.form.JSONMap.prototype */ {
3976 __init__: function(data /*, ... */) {
3977 this.super('__init__', this.varargs(arguments, 1, 'json'));
3979 this.config = 'json';
3980 this.parsechain = [ 'json' ];
3981 this.data = new CBIJSONConfig(data);
3986 * @class AbstractSection
3987 * @memberof LuCI.form
3988 * @augments LuCI.form.AbstractElement
3992 * The `AbstractSection` class serves as abstract base for the different form
3993 * section styles implemented by `LuCI.form`. It provides the common logic for
3994 * enumerating underlying configuration section instances, for registering
3995 * form options and for handling tabs to segment child options.
3997 * This class is private and not directly accessible by user code.
3999 var CBIAbstractSection = CBIAbstractElement.extend(/** @lends LuCI.form.AbstractSection.prototype */ {
4000 __init__: function(map, sectionType /*, ... */) {
4001 this.super('__init__', this.varargs(arguments, 2));
4003 this.sectiontype = sectionType;
4005 this.config = map.config;
4007 this.optional = true;
4008 this.addremove = false;
4009 this.dynamic = false;
4013 * Access the parent option container instance.
4015 * In case this section is nested within an option element container,
4016 * this property will hold a reference to the parent option instance.
4018 * If this section is not nested, the property is `null`.
4020 * @name LuCI.form.AbstractSection.prototype#parentoption
4021 * @type LuCI.form.AbstractValue
4026 * Enumerate the UCI section IDs covered by this form section element.
4029 * @throws {InternalError}
4030 * Throws an `InternalError` exception if the function is not implemented.
4032 * @returns {string[]}
4033 * Returns an array of UCI section IDs covered by this form element.
4034 * The sections will be rendered in the same order as the returned array.
4036 cfgsections: function() {
4037 L.error('InternalError', 'Not implemented');
4041 * Filter UCI section IDs to render.
4043 * The filter function is invoked for each UCI section ID of a given type
4044 * and controls whether the given UCI section is rendered or ignored by
4045 * the form section element.
4047 * The default implementation always returns `true`. User code or
4048 * classes extending `AbstractSection` may overwrite this function with
4049 * custom implementations.
4052 * @param {string} section_id
4053 * The UCI section ID to test.
4055 * @returns {boolean}
4056 * Returns `true` when the given UCI section ID should be handled and
4057 * `false` when it should be ignored.
4059 filter: function(section_id) {
4064 * Load the configuration covered by this section.
4066 * The `load()` function recursively walks the section element tree and
4067 * invokes the load function of each child option element.
4069 * @returns {Promise<void>}
4070 * Returns a promise resolving once the values of all child elements have
4071 * been loaded. The promise may reject with an error if any of the child
4072 * elements load functions rejected with an error.
4075 var section_ids = this.cfgsections(),
4078 if (Array.isArray(this.children))
4079 for (var i = 0; i < section_ids.length; i++)
4080 tasks.push(this.loadChildren(section_ids[i])
4081 .then(Function.prototype.bind.call(function(section_id, set_values) {
4082 for (var i = 0; i < set_values.length; i++)
4083 this.children[i].cfgvalue(section_id, set_values[i]);
4084 }, this, section_ids[i])));
4086 return Promise.all(tasks);
4090 * Parse this sections form input.
4092 * The `parse()` function recursively walks the section element tree and
4093 * triggers input value reading and validation for each encountered child
4096 * Options which are hidden due to unsatisified dependencies are skipped.
4098 * @returns {Promise<void>}
4099 * Returns a promise resolving once the values of all child elements have
4100 * been parsed. The returned promise is rejected if any parsed values are
4101 * not meeting the validation constraints of their respective elements.
4104 var section_ids = this.cfgsections(),
4107 if (Array.isArray(this.children))
4108 for (var i = 0; i < section_ids.length; i++)
4109 for (var j = 0; j < this.children.length; j++)
4110 tasks.push(this.children[j].parse(section_ids[i]));
4112 return Promise.all(tasks);
4116 * Add an option tab to the section.
4118 * The child option elements of a section may be divided into multiple
4119 * tabs to provide a better overview to the user.
4121 * Before options can be moved into a tab pane, the corresponding tab
4122 * has to be defined first, which is done by calling this function.
4124 * Note that once tabs are defined, user code must use the `taboption()`
4125 * method to add options to specific tabs. Option elements added by
4126 * `option()` will not be assigned to any tab and not be rendered in this
4129 * @param {string} name
4130 * The name of the tab to register. It may be freely chosen and just serves
4131 * as an identifier to differentiate tabs.
4133 * @param {string} title
4134 * The human readable caption of the tab.
4136 * @param {string} [description]
4137 * An additional description text for the corresponding tab pane. It is
4138 * displayed as text paragraph below the tab but before the tab pane
4139 * contents. If omitted, no description will be rendered.
4142 * Throws an exeption if a tab with the same `name` already exists.
4144 tab: function(name, title, description) {
4145 if (this.tabs && this.tabs[name])
4146 throw 'Tab already declared';
4151 description: description,
4155 this.tabs = this.tabs || [];
4156 this.tabs.push(entry);
4157 this.tabs[name] = entry;
4159 this.tab_names = this.tab_names || [];
4160 this.tab_names.push(name);
4164 * Add a configuration option widget to the section.
4166 * Note that [taboption()]{@link LuCI.form.AbstractSection#taboption}
4167 * should be used instead if this form section element uses tabs.
4169 * @param {LuCI.form.AbstractValue} optionclass
4170 * The option class to use for rendering the configuration option. Note
4171 * that this value must be the class itself, not a class instance obtained
4172 * from calling `new`. It must also be a class dervied from
4173 * [LuCI.form.AbstractSection]{@link LuCI.form.AbstractSection}.
4175 * @param {...*} classargs
4176 * Additional arguments which are passed as-is to the contructor of the
4177 * given option class. Refer to the class specific constructor
4178 * documentation for details.
4180 * @throws {TypeError}
4181 * Throws a `TypeError` exception in case the passed class value is not a
4182 * descendent of `AbstractValue`.
4184 * @returns {LuCI.form.AbstractValue}
4185 * Returns the instantiated option class instance.
4187 option: function(cbiClass /*, ... */) {
4188 if (!CBIAbstractValue.isSubclass(cbiClass))
4189 throw L.error('TypeError', 'Class must be a descendent of CBIAbstractValue');
4191 var obj = cbiClass.instantiate(this.varargs(arguments, 1, this.map, this));
4197 * Add a configuration option widget to a tab of the section.
4199 * @param {string} tabname
4200 * The name of the section tab to add the option element to.
4202 * @param {LuCI.form.AbstractValue} optionclass
4203 * The option class to use for rendering the configuration option. Note
4204 * that this value must be the class itself, not a class instance obtained
4205 * from calling `new`. It must also be a class dervied from
4206 * [LuCI.form.AbstractSection]{@link LuCI.form.AbstractSection}.
4208 * @param {...*} classargs
4209 * Additional arguments which are passed as-is to the contructor of the
4210 * given option class. Refer to the class specific constructor
4211 * documentation for details.
4213 * @throws {ReferenceError}
4214 * Throws a `ReferenceError` exception when the given tab name does not
4217 * @throws {TypeError}
4218 * Throws a `TypeError` exception in case the passed class value is not a
4219 * descendent of `AbstractValue`.
4221 * @returns {LuCI.form.AbstractValue}
4222 * Returns the instantiated option class instance.
4224 taboption: function(tabName /*, ... */) {
4225 if (!this.tabs || !this.tabs[tabName])
4226 throw L.error('ReferenceError', 'Associated tab not declared');
4228 var obj = this.option.apply(this, this.varargs(arguments, 1));
4230 this.tabs[tabName].children.push(obj);
4235 renderUCISection: function(section_id) {
4236 var renderTasks = [];
4239 return this.renderOptions(null, section_id);
4241 for (var i = 0; i < this.tab_names.length; i++)
4242 renderTasks.push(this.renderOptions(this.tab_names[i], section_id));
4244 return Promise.all(renderTasks)
4245 .then(this.renderTabContainers.bind(this, section_id));
4249 renderTabContainers: function(section_id, nodes) {
4250 var config_name = this.uciconfig || this.map.config,
4251 containerEls = E([]);
4253 for (var i = 0; i < nodes.length; i++) {
4254 var tab_name = this.tab_names[i],
4255 tab_data = this.tabs[tab_name],
4256 containerEl = E('div', {
4257 'id': 'container.%s.%s.%s'.format(config_name, section_id, tab_name),
4258 'data-tab': tab_name,
4259 'data-tab-title': tab_data.title,
4260 'data-tab-active': tab_name === this.selected_tab
4263 if (tab_data.description != null && tab_data.description != '')
4264 containerEl.appendChild(
4265 E('div', { 'class': 'cbi-tab-descr' }, tab_data.description));
4267 containerEl.appendChild(nodes[i]);
4268 containerEls.appendChild(containerEl);
4271 return containerEls;
4275 renderOptions: function(tab_name, section_id) {
4276 var in_table = (this instanceof CBITableSection);
4277 return this.renderChildren(tab_name, section_id, in_table).then(function(nodes) {
4278 var optionEls = E([]);
4279 for (var i = 0; i < nodes.length; i++)
4280 optionEls.appendChild(nodes[i]);
4286 checkDepends: function(ev, n) {
4287 var changed = false,
4288 sids = this.cfgsections();
4290 for (var i = 0, sid = sids[0]; (sid = sids[i]) != null; i++) {
4291 for (var j = 0, o = this.children[0]; (o = this.children[j]) != null; j++) {
4292 var isActive = o.isActive(sid),
4293 isSatisified = o.checkDepends(sid);
4295 if (isActive != isSatisified) {
4296 o.setActive(sid, !isActive);
4297 isActive = !isActive;
4301 if (!n && isActive)
4302 o.triggerValidation(sid);
4311 var isEqual = function(x, y) {
4312 if (x != null && y != null && typeof(x) != typeof(y))
4315 if ((x == null && y != null) || (x != null && y == null))
4318 if (Array.isArray(x)) {
4319 if (x.length != y.length)
4322 for (var i = 0; i < x.length; i++)
4323 if (!isEqual(x[i], y[i]))
4326 else if (typeof(x) == 'object') {
4328 if (x.hasOwnProperty(k) && !y.hasOwnProperty(k))
4331 if (!isEqual(x[k], y[k]))
4336 if (y.hasOwnProperty(k) && !x.hasOwnProperty(k))
4346 var isContained = function(x, y) {
4347 if (Array.isArray(x)) {
4348 for (var i = 0; i < x.length; i++)
4352 else if (L.isObject(x)) {
4353 if (x.hasOwnProperty(y) && x[y] != null)
4356 else if (typeof(x) == 'string') {
4357 return (x.indexOf(y) > -1);
4364 * @class AbstractValue
4365 * @memberof LuCI.form
4366 * @augments LuCI.form.AbstractElement
4370 * The `AbstractValue` class serves as abstract base for the different form
4371 * option styles implemented by `LuCI.form`. It provides the common logic for
4372 * handling option input values, for dependencies among options and for
4373 * validation constraints that should be applied to entered values.
4375 * This class is private and not directly accessible by user code.
4377 var CBIAbstractValue = CBIAbstractElement.extend(/** @lends LuCI.form.AbstractValue.prototype */ {
4378 __init__: function(map, section, option /*, ... */) {
4379 this.super('__init__', this.varargs(arguments, 3));
4381 this.section = section;
4382 this.option = option;
4384 this.config = map.config;
4388 this.rmempty = true;
4389 this.default = null;
4391 this.optional = false;
4395 * If set to `false`, the underlying option value is retained upon saving
4396 * the form when the option element is disabled due to unsatisfied
4397 * dependency constraints.
4399 * @name LuCI.form.AbstractValue.prototype#rmempty
4405 * If set to `true`, the underlying ui input widget is allowed to be empty,
4406 * otherwise the option element is marked invalid when no value is entered
4407 * or selected by the user.
4409 * @name LuCI.form.AbstractValue.prototype#optional
4415 * Sets a default value to use when the underlying UCI option is not set.
4417 * @name LuCI.form.AbstractValue.prototype#default
4423 * Specifies a datatype constraint expression to validate input values
4424 * against. Refer to {@link LuCI.validation} for details on the format.
4426 * If the user entered input does not match the datatype validation, the
4427 * option element is marked as invalid.
4429 * @name LuCI.form.AbstractValue.prototype#datatype
4435 * Specifies a custom validation function to test the user input for
4436 * validity. The validation function must return `true` to accept the
4437 * value. Any other return value type is converted to a string and
4438 * displayed to the user as validation error message.
4440 * If the user entered input does not pass the validation function, the
4441 * option element is marked as invalid.
4443 * @name LuCI.form.AbstractValue.prototype#validate
4449 * Override the UCI configuration name to read the option value from.
4451 * By default, the configuration name is inherited from the parent Map.
4452 * By setting this property, a deviating configuration may be specified.
4454 * The default is null, means inheriting from the parent form.
4456 * @name LuCI.form.AbstractValue.prototype#uciconfig
4462 * Override the UCI section name to read the option value from.
4464 * By default, the section ID is inherited from the parent section element.
4465 * By setting this property, a deviating section may be specified.
4467 * The default is null, means inheriting from the parent section.
4469 * @name LuCI.form.AbstractValue.prototype#ucisection
4475 * Override the UCI option name to read the value from.
4477 * By default, the elements name, which is passed as third argument to
4478 * the constructor, is used as UCI option name. By setting this property,
4479 * a deviating UCI option may be specified.
4481 * The default is null, means using the option element name.
4483 * @name LuCI.form.AbstractValue.prototype#ucioption
4489 * Mark grid section option element as editable.
4491 * Options which are displayed in the table portion of a `GridSection`
4492 * instance are rendered as readonly text by default. By setting the
4493 * `editable` property of a child option element to `true`, that element
4494 * is rendered as full input widget within its cell instead of a text only
4497 * This property has no effect on options that are not children of grid
4500 * @name LuCI.form.AbstractValue.prototype#editable
4506 * Move grid section option element into the table, the modal popup or both.
4508 * If this property is `null` (the default), the option element is
4509 * displayed in both the table preview area and the per-section instance
4510 * modal popup of a grid section. When it is set to `false` the option
4511 * is only shown in the table but not the modal popup. When set to `true`,
4512 * the option is only visible in the modal popup but not the table.
4514 * This property has no effect on options that are not children of grid
4517 * @name LuCI.form.AbstractValue.prototype#modalonly
4523 * Override the cell width of a table or grid section child option.
4525 * If the property is set to a numeric value, it is treated as pixel width
4526 * which is set on the containing cell element of the option, essentially
4527 * forcing a certain column width. When the property is set to a string
4528 * value, it is applied as-is to the CSS `width` property.
4530 * This property has no effect on options that are not children of grid or
4531 * table section elements.
4533 * @name LuCI.form.AbstractValue.prototype#width
4534 * @type number|string
4539 * Add a dependency contraint to the option.
4541 * Dependency constraints allow making the presence of option elements
4542 * dependant on the current values of certain other options within the
4543 * same form. An option element with unsatisfied dependencies will be
4544 * hidden from the view and its current value is omitted when saving.
4546 * Multiple constraints (that is, multiple calls to `depends()`) are
4547 * treated as alternatives, forming a logical "or" expression.
4549 * By passing an object of name => value pairs as first argument, it is
4550 * possible to depend on multiple options simultaneously, allowing to form
4551 * a logical "and" expression.
4553 * Option names may be given in "dot notation" which allows to reference
4554 * option elements outside of the current form section. If a name without
4555 * dot is specified, it refers to an option within the same configuration
4556 * section. If specified as <code>configname.sectionid.optionname</code>,
4557 * options anywhere within the same form may be specified.
4559 * The object notation also allows for a number of special keys which are
4560 * not treated as option names but as modifiers to influence the dependency
4561 * constraint evaluation. The associated value of these special "tag" keys
4562 * is ignored. The recognized tags are:
4566 * <code>!reverse</code><br>
4567 * Invert the dependency, instead of requiring another option to be
4568 * equal to the dependency value, that option should <em>not</em> be
4572 * <code>!contains</code><br>
4573 * Instead of requiring an exact match, the dependency is considered
4574 * satisfied when the dependency value is contained within the option
4578 * <code>!default</code><br>
4579 * The dependency is always satisfied
4587 * <code>opt.depends("foo", "test")</code><br>
4588 * Require the value of `foo` to be `test`.
4591 * <code>opt.depends({ foo: "test" })</code><br>
4592 * Equivalent to the previous example.
4595 * <code>opt.depends({ foo: "test", bar: "qrx" })</code><br>
4596 * Require the value of `foo` to be `test` and the value of `bar` to be
4600 * <code>opt.depends({ foo: "test" })<br>
4601 * opt.depends({ bar: "qrx" })</code><br>
4602 * Require either <code>foo</code> to be set to <code>test</code>,
4603 * <em>or</em> the <code>bar</code> option to be <code>qrx</code>.
4606 * <code>opt.depends("test.section1.foo", "bar")</code><br>
4607 * Require the "foo" form option within the "section1" section to be
4611 * <code>opt.depends({ foo: "test", "!contains": true })</code><br>
4612 * Require the "foo" option value to contain the substring "test".
4616 * @param {string|Object<string, string|boolean>} optionname_or_depends
4617 * The name of the option to depend on or an object describing multiple
4618 * dependencies which must be satified (a logical "and" expression).
4620 * @param {string} optionvalue
4621 * When invoked with a plain option name as first argument, this parameter
4622 * specifies the expected value. In case an object is passed as first
4623 * argument, this parameter is ignored.
4625 depends: function(field, value) {
4628 if (typeof(field) === 'string')
4629 deps = {}, deps[field] = value;
4633 this.deps.push(deps);
4637 transformDepList: function(section_id, deplist) {
4638 var list = deplist || this.deps,
4641 if (Array.isArray(list)) {
4642 for (var i = 0; i < list.length; i++) {
4645 for (var k in list[i]) {
4646 if (list[i].hasOwnProperty(k)) {
4647 if (k.charAt(0) === '!')
4648 dep[k] = list[i][k];
4649 else if (k.indexOf('.') !== -1)
4650 dep['cbid.%s'.format(k)] = list[i][k];
4652 dep['cbid.%s.%s.%s'.format(
4653 this.uciconfig || this.section.uciconfig || this.map.config,
4654 this.ucisection || section_id,
4660 for (var k in dep) {
4661 if (dep.hasOwnProperty(k)) {
4673 transformChoices: function() {
4674 if (!Array.isArray(this.keylist) || this.keylist.length == 0)
4679 for (var i = 0; i < this.keylist.length; i++)
4680 choices[this.keylist[i]] = this.vallist[i];
4686 checkDepends: function(section_id) {
4687 var config_name = this.uciconfig || this.section.uciconfig || this.map.config,
4688 active = this.map.isDependencySatisfied(this.deps, config_name, section_id);
4691 this.updateDefaultValue(section_id);
4697 updateDefaultValue: function(section_id) {
4698 if (!L.isObject(this.defaults))
4701 var config_name = this.uciconfig || this.section.uciconfig || this.map.config,
4702 cfgvalue = L.toArray(this.cfgvalue(section_id))[0],
4703 default_defval = null, satisified_defval = null;
4705 for (var value in this.defaults) {
4706 if (!this.defaults[value] || this.defaults[value].length == 0) {
4707 default_defval = value;
4710 else if (this.map.isDependencySatisfied(this.defaults[value], config_name, section_id)) {
4711 satisified_defval = value;
4716 if (satisified_defval == null)
4717 satisified_defval = default_defval;
4719 var node = this.map.findElement('id', this.cbid(section_id));
4720 if (node && node.getAttribute('data-changed') != 'true' && satisified_defval != null && cfgvalue == null)
4721 dom.callClassMethod(node, 'setValue', satisified_defval);
4723 this.default = satisified_defval;
4727 * Obtain the internal ID ("cbid") of the element instance.
4729 * Since each form section element may map multiple underlying
4730 * configuration sections, the configuration section ID is required to
4731 * form a fully qualified ID pointing to the specific element instance
4732 * within the given specific section.
4734 * @param {string} section_id
4735 * The configuration section ID
4737 * @throws {TypeError}
4738 * Throws a `TypeError` exception when no `section_id` was specified.
4741 * Returns the element ID.
4743 cbid: function(section_id) {
4744 if (section_id == null)
4745 L.error('TypeError', 'Section ID required');
4747 return 'cbid.%s.%s.%s'.format(
4748 this.uciconfig || this.section.uciconfig || this.map.config,
4749 section_id, this.option);
4753 * Load the underlying configuration value.
4755 * The default implementation of this method reads and returns the
4756 * underlying UCI option value (or the related JavaScript property for
4757 * `JSONMap` instances). It may be overwritten by user code to load data
4758 * from nonstandard sources.
4760 * @param {string} section_id
4761 * The configuration section ID
4763 * @throws {TypeError}
4764 * Throws a `TypeError` exception when no `section_id` was specified.
4766 * @returns {*|Promise<*>}
4767 * Returns the configuration value to initialize the option element with.
4768 * The return value of this function is filtered through `Promise.resolve()`
4769 * so it may return promises if overridden by user code.
4771 load: function(section_id) {
4772 if (section_id == null)
4773 L.error('TypeError', 'Section ID required');
4775 return this.map.data.get(
4776 this.uciconfig || this.section.uciconfig || this.map.config,
4777 this.ucisection || section_id,
4778 this.ucioption || this.option);
4782 * Obtain the underlying `LuCI.ui` element instance.
4784 * @param {string} section_id
4785 * The configuration section ID
4787 * @throws {TypeError}
4788 * Throws a `TypeError` exception when no `section_id` was specified.
4790 * @return {LuCI.ui.AbstractElement|null}
4791 * Returns the `LuCI.ui` element instance or `null` in case the form
4792 * option implementation does not use `LuCI.ui` widgets.
4794 getUIElement: function(section_id) {
4795 var node = this.map.findElement('id', this.cbid(section_id)),
4796 inst = node ? dom.findClassInstance(node) : null;
4797 return (inst instanceof ui.AbstractElement) ? inst : null;
4801 * Query the underlying configuration value.
4803 * The default implementation of this method returns the cached return
4804 * value of [load()]{@link LuCI.form.AbstractValue#load}. It may be
4805 * overwritten by user code to obtain the configuration value in a
4808 * @param {string} section_id
4809 * The configuration section ID
4811 * @throws {TypeError}
4812 * Throws a `TypeError` exception when no `section_id` was specified.
4815 * Returns the configuration value.
4817 cfgvalue: function(section_id, set_value) {
4818 if (section_id == null)
4819 L.error('TypeError', 'Section ID required');
4821 if (arguments.length == 2) {
4822 this.data = this.data || {};
4823 this.data[section_id] = set_value;
4826 return this.data ? this.data[section_id] : null;
4830 * Query the current form input value.
4832 * The default implementation of this method returns the current input
4833 * value of the underlying [LuCI.ui]{@link LuCI.ui.AbstractElement} widget.
4834 * It may be overwritten by user code to handle input values differently.
4836 * @param {string} section_id
4837 * The configuration section ID
4839 * @throws {TypeError}
4840 * Throws a `TypeError` exception when no `section_id` was specified.
4843 * Returns the current input value.
4845 formvalue: function(section_id) {
4846 var elem = this.getUIElement(section_id);
4847 return elem ? elem.getValue() : null;
4851 * Obtain a textual input representation.
4853 * The default implementation of this method returns the HTML escaped
4854 * current input value of the underlying
4855 * [LuCI.ui]{@link LuCI.ui.AbstractElement} widget. User code or specific
4856 * option element implementations may overwrite this function to apply a
4857 * different logic, e.g. to return `Yes` or `No` depending on the checked
4858 * state of checkbox elements.
4860 * @param {string} section_id
4861 * The configuration section ID
4863 * @throws {TypeError}
4864 * Throws a `TypeError` exception when no `section_id` was specified.
4867 * Returns the text representation of the current input value.
4869 textvalue: function(section_id) {
4870 var cval = this.cfgvalue(section_id);
4873 cval = this.default;
4875 return (cval != null) ? '%h'.format(cval) : null;
4879 * Apply custom validation logic.
4881 * This method is invoked whenever incremental validation is performed on
4882 * the user input, e.g. on keyup or blur events.
4884 * The default implementation of this method does nothing and always
4885 * returns `true`. User code may overwrite this method to provide
4886 * additional validation logic which is not covered by data type
4890 * @param {string} section_id
4891 * The configuration section ID
4894 * The value to validate
4897 * The method shall return `true` to accept the given value. Any other
4898 * return value is treated as failure, converted to a string and displayed
4899 * as error message to the user.
4901 validate: function(section_id, value) {
4906 * Test whether the input value is currently valid.
4908 * @param {string} section_id
4909 * The configuration section ID
4911 * @returns {boolean}
4912 * Returns `true` if the input value currently is valid, otherwise it
4915 isValid: function(section_id) {
4916 var elem = this.getUIElement(section_id);
4917 return elem ? elem.isValid() : true;
4921 * Test whether the option element is currently active.
4923 * An element is active when it is not hidden due to unsatisfied dependency
4926 * @param {string} section_id
4927 * The configuration section ID
4929 * @returns {boolean}
4930 * Returns `true` if the option element currently is active, otherwise it
4933 isActive: function(section_id) {
4934 var field = this.map.findElement('data-field', this.cbid(section_id));
4935 return (field != null && !field.classList.contains('hidden'));
4939 setActive: function(section_id, active) {
4940 var field = this.map.findElement('data-field', this.cbid(section_id));
4942 if (field && field.classList.contains('hidden') == active) {
4943 field.classList[active ? 'remove' : 'add']('hidden');
4951 triggerValidation: function(section_id) {
4952 var elem = this.getUIElement(section_id);
4953 return elem ? elem.triggerValidation() : true;
4957 * Parse the option element input.
4959 * The function is invoked when the `parse()` method has been invoked on
4960 * the parent form and triggers input value reading and validation.
4962 * @param {string} section_id
4963 * The configuration section ID
4965 * @returns {Promise<void>}
4966 * Returns a promise resolving once the input value has been read and
4967 * validated or rejecting in case the input value does not meet the
4968 * validation constraints.
4970 parse: function(section_id) {
4971 var active = this.isActive(section_id),
4972 cval = this.cfgvalue(section_id),
4973 fval = active ? this.formvalue(section_id) : null;
4975 if (active && !this.isValid(section_id))
4976 return Promise.reject();
4978 if (fval != '' && fval != null) {
4979 if (this.forcewrite || !isEqual(cval, fval))
4980 return Promise.resolve(this.write(section_id, fval));
4983 if (!active || this.rmempty || this.optional) {
4984 return Promise.resolve(this.remove(section_id));
4986 else if (!isEqual(cval, fval)) {
4987 console.log('This should have been catched by isValid()');
4988 return Promise.reject();
4992 return Promise.resolve();
4996 * Write the current input value into the configuration.
4998 * This function is invoked upon saving the parent form when the option
4999 * element is valid and when its input value has been changed compared to
5000 * the initial value returned by
5001 * [cfgvalue()]{@link LuCI.form.AbstractValue#cfgvalue}.
5003 * The default implementation simply sets the given input value in the
5004 * UCI configuration (or the associated JavaScript object property in
5005 * case of `JSONMap` forms). It may be overwritten by user code to
5006 * implement alternative save logic, e.g. to transform the input value
5007 * before it is written.
5009 * @param {string} section_id
5010 * The configuration section ID
5012 * @param {string|string[]} formvalue
5013 * The input value to write.
5015 write: function(section_id, formvalue) {
5016 return this.map.data.set(
5017 this.uciconfig || this.section.uciconfig || this.map.config,
5018 this.ucisection || section_id,
5019 this.ucioption || this.option,
5024 * Remove the corresponding value from the configuration.
5026 * This function is invoked upon saving the parent form when the option
5027 * element has been hidden due to unsatisfied dependencies or when the
5028 * user cleared the input value and the option is marked optional.
5030 * The default implementation simply removes the associated option from the
5031 * UCI configuration (or the associated JavaScript object property in
5032 * case of `JSONMap` forms). It may be overwritten by user code to
5033 * implement alternative removal logic, e.g. to retain the original value.
5035 * @param {string} section_id
5036 * The configuration section ID
5038 remove: function(section_id) {
5039 return this.map.data.unset(
5040 this.uciconfig || this.section.uciconfig || this.map.config,
5041 this.ucisection || section_id,
5042 this.ucioption || this.option);
5047 * @class TypedSection
5048 * @memberof LuCI.form
5049 * @augments LuCI.form.AbstractSection
5053 * The `TypedSection` class maps all or - if `filter()` is overwritten - a
5054 * subset of the underlying UCI configuration sections of a given type.
5056 * Layout wise, the configuration section instances mapped by the section
5057 * element (sometimes referred to as "section nodes") are stacked beneath
5058 * each other in a single column, with an optional section remove button next
5059 * to each section node and a section add button at the end, depending on the
5060 * value of the `addremove` property.
5062 * @param {LuCI.form.Map|LuCI.form.JSONMap} form
5063 * The configuration form this section is added to. It is automatically passed
5064 * by [section()]{@link LuCI.form.Map#section}.
5066 * @param {string} section_type
5067 * The type of the UCI section to map.
5069 * @param {string} [title]
5070 * The title caption of the form section element.
5072 * @param {string} [description]
5073 * The description text of the form section element.
5075 var CBITypedSection = CBIAbstractSection.extend(/** @lends LuCI.form.TypedSection.prototype */ {
5076 __name__: 'CBI.TypedSection',
5079 * If set to `true`, the user may add or remove instances from the form
5080 * section widget, otherwise only preexisting sections may be edited.
5081 * The default is `false`.
5083 * @name LuCI.form.TypedSection.prototype#addremove
5089 * If set to `true`, mapped section instances are treated as anonymous
5090 * UCI sections, which means that section instance elements will be
5091 * rendered without title element and that no name is required when adding
5092 * new sections. The default is `false`.
5094 * @name LuCI.form.TypedSection.prototype#anonymous
5100 * When set to `true`, instead of rendering section instances one below
5101 * another, treat each instance as separate tab pane and render a tab menu
5102 * at the top of the form section element, allowing the user to switch
5103 * among instances. The default is `false`.
5105 * @name LuCI.form.TypedSection.prototype#tabbed
5111 * Override the caption used for the section add button at the bottom of
5112 * the section form element. If set to a string, it will be used as-is,
5113 * if set to a function, the function will be invoked and its return value
5114 * is used as caption, after converting it to a string. If this property
5115 * is not set, the default is `Add`.
5117 * @name LuCI.form.TypedSection.prototype#addbtntitle
5118 * @type string|function
5123 * Override the UCI configuration name to read the section IDs from. By
5124 * default, the configuration name is inherited from the parent `Map`.
5125 * By setting this property, a deviating configuration may be specified.
5126 * The default is `null`, means inheriting from the parent form.
5128 * @name LuCI.form.TypedSection.prototype#uciconfig
5134 cfgsections: function() {
5135 return this.map.data.sections(this.uciconfig || this.map.config, this.sectiontype)
5136 .map(function(s) { return s['.name'] })
5137 .filter(L.bind(this.filter, this));
5141 handleAdd: function(ev, name) {
5142 var config_name = this.uciconfig || this.map.config;
5144 this.map.data.add(config_name, this.sectiontype, name);
5145 return this.map.save(null, true);
5149 handleRemove: function(section_id, ev) {
5150 var config_name = this.uciconfig || this.map.config;
5152 this.map.data.remove(config_name, section_id);
5153 return this.map.save(null, true);
5157 renderSectionAdd: function(extra_class) {
5158 if (!this.addremove)
5161 var createEl = E('div', { 'class': 'cbi-section-create' }),
5162 config_name = this.uciconfig || this.map.config,
5163 btn_title = this.titleFn('addbtntitle');
5165 if (extra_class != null)
5166 createEl.classList.add(extra_class);
5168 if (this.anonymous) {
5169 createEl.appendChild(E('button', {
5170 'class': 'cbi-button cbi-button-add',
5171 'title': btn_title || _('Add'),
5172 'click': ui.createHandlerFn(this, 'handleAdd')
5173 }, [ btn_title || _('Add') ]));
5176 var nameEl = E('input', {
5178 'class': 'cbi-section-create-name'
5181 dom.append(createEl, [
5182 E('div', {}, nameEl),
5184 'class': 'cbi-button cbi-button-add',
5186 'value': btn_title || _('Add'),
5187 'title': btn_title || _('Add'),
5188 'click': ui.createHandlerFn(this, function(ev) {
5189 if (nameEl.classList.contains('cbi-input-invalid'))
5192 return this.handleAdd(ev, nameEl.value);
5197 ui.addValidator(nameEl, 'uciname', true, 'blur', 'keyup');
5204 renderSectionPlaceholder: function() {
5206 E('em', _('This section contains no values yet')),
5212 renderContents: function(cfgsections, nodes) {
5213 var section_id = null,
5214 config_name = this.uciconfig || this.map.config,
5215 sectionEl = E('div', {
5216 'id': 'cbi-%s-%s'.format(config_name, this.sectiontype),
5217 'class': 'cbi-section',
5218 'data-tab': (this.map.tabbed && !this.parentoption) ? this.sectiontype : null,
5219 'data-tab-title': (this.map.tabbed && !this.parentoption) ? this.title || this.sectiontype : null
5222 if (this.title != null && this.title != '')
5223 sectionEl.appendChild(E('legend', {}, this.title));
5225 if (this.description != null && this.description != '')
5226 sectionEl.appendChild(E('div', { 'class': 'cbi-section-descr' }, this.description));
5228 for (var i = 0; i < nodes.length; i++) {
5229 if (this.addremove) {
5230 sectionEl.appendChild(
5231 E('div', { 'class': 'cbi-section-remove right' },
5233 'class': 'cbi-button',
5234 'name': 'cbi.rts.%s.%s'.format(config_name, cfgsections[i]),
5235 'data-section-id': cfgsections[i],
5236 'click': ui.createHandlerFn(this, 'handleRemove', cfgsections[i])
5237 }, [ _('Delete') ])));
5240 if (!this.anonymous)
5241 sectionEl.appendChild(E('h3', cfgsections[i].toUpperCase()));
5243 sectionEl.appendChild(E('div', {
5244 'id': 'cbi-%s-%s'.format(config_name, cfgsections[i]),
5246 ? 'cbi-section-node cbi-section-node-tabbed' : 'cbi-section-node',
5247 'data-section-id': cfgsections[i]
5251 if (nodes.length == 0)
5252 sectionEl.appendChild(this.renderSectionPlaceholder());
5254 sectionEl.appendChild(this.renderSectionAdd());
5256 dom.bindClassInstance(sectionEl, this);
5262 render: function() {
5263 var cfgsections = this.cfgsections(),
5266 for (var i = 0; i < cfgsections.length; i++)
5267 renderTasks.push(this.renderUCISection(cfgsections[i]));
5269 return Promise.all(renderTasks).then(this.renderContents.bind(this, cfgsections));
5274 * @class TableSection
5275 * @memberof LuCI.form
5276 * @augments LuCI.form.TypedSection
5280 * The `TableSection` class maps all or - if `filter()` is overwritten - a
5281 * subset of the underlying UCI configuration sections of a given type.
5283 * Layout wise, the configuration section instances mapped by the section
5284 * element (sometimes referred to as "section nodes") are rendered as rows
5285 * within an HTML table element, with an optional section remove button in the
5286 * last column and a section add button below the table, depending on the
5287 * value of the `addremove` property.
5289 * @param {LuCI.form.Map|LuCI.form.JSONMap} form
5290 * The configuration form this section is added to. It is automatically passed
5291 * by [section()]{@link LuCI.form.Map#section}.
5293 * @param {string} section_type
5294 * The type of the UCI section to map.
5296 * @param {string} [title]
5297 * The title caption of the form section element.
5299 * @param {string} [description]
5300 * The description text of the form section element.
5302 var CBITableSection = CBITypedSection.extend(/** @lends LuCI.form.TableSection.prototype */ {
5303 __name__: 'CBI.TableSection',
5306 * If set to `true`, the user may add or remove instances from the form
5307 * section widget, otherwise only preexisting sections may be edited.
5308 * The default is `false`.
5310 * @name LuCI.form.TableSection.prototype#addremove
5316 * If set to `true`, mapped section instances are treated as anonymous
5317 * UCI sections, which means that section instance elements will be
5318 * rendered without title element and that no name is required when adding
5319 * new sections. The default is `false`.
5321 * @name LuCI.form.TableSection.prototype#anonymous
5327 * Override the caption used for the section add button at the bottom of
5328 * the section form element. If set to a string, it will be used as-is,
5329 * if set to a function, the function will be invoked and its return value
5330 * is used as caption, after converting it to a string. If this property
5331 * is not set, the default is `Add`.
5333 * @name LuCI.form.TableSection.prototype#addbtntitle
5334 * @type string|function
5339 * Override the per-section instance title caption shown in the first
5340 * column of the table unless `anonymous` is set to true. If set to a
5341 * string, it will be used as `String.format()` pattern with the name of
5342 * the underlying UCI section as first argument, if set to a function, the
5343 * function will be invoked with the section name as first argument and
5344 * its return value is used as caption, after converting it to a string.
5345 * If this property is not set, the default is the name of the underlying
5346 * UCI configuration section.
5348 * @name LuCI.form.TableSection.prototype#sectiontitle
5349 * @type string|function
5354 * Override the per-section instance modal popup title caption shown when
5355 * clicking the `More…` button in a section specifying `max_cols`. If set
5356 * to a string, it will be used as `String.format()` pattern with the name
5357 * of the underlying UCI section as first argument, if set to a function,
5358 * the function will be invoked with the section name as first argument and
5359 * its return value is used as caption, after converting it to a string.
5360 * If this property is not set, the default is the name of the underlying
5361 * UCI configuration section.
5363 * @name LuCI.form.TableSection.prototype#modaltitle
5364 * @type string|function
5369 * Override the UCI configuration name to read the section IDs from. By
5370 * default, the configuration name is inherited from the parent `Map`.
5371 * By setting this property, a deviating configuration may be specified.
5372 * The default is `null`, means inheriting from the parent form.
5374 * @name LuCI.form.TableSection.prototype#uciconfig
5380 * Specify a maximum amount of columns to display. By default, one table
5381 * column is rendered for each child option of the form section element.
5382 * When this option is set to a positive number, then no more columns than
5383 * the given amount are rendered. When the number of child options exceeds
5384 * the specified amount, a `More…` button is rendered in the last column,
5385 * opening a modal dialog presenting all options elements in `NamedSection`
5386 * style when clicked.
5388 * @name LuCI.form.TableSection.prototype#max_cols
5394 * If set to `true`, alternating `cbi-rowstyle-1` and `cbi-rowstyle-2` CSS
5395 * classes are added to the table row elements. Not all LuCI themes
5396 * implement these row style classes. The default is `false`.
5398 * @name LuCI.form.TableSection.prototype#rowcolors
5404 * Enables a per-section instance row `Edit` button which triggers a certain
5405 * action when clicked. If set to a string, the string value is used
5406 * as `String.format()` pattern with the name of the underlying UCI section
5407 * as first format argument. The result is then interpreted as URL which
5408 * LuCI will navigate to when the user clicks the edit button.
5410 * If set to a function, this function will be registered as click event
5411 * handler on the rendered edit button, receiving the section instance
5412 * name as first and the DOM click event as second argument.
5414 * @name LuCI.form.TableSection.prototype#extedit
5415 * @type string|function
5420 * If set to `true`, a sort button is added to the last column, allowing
5421 * the user to reorder the section instances mapped by the section form
5424 * @name LuCI.form.TableSection.prototype#sortable
5430 * The `TableSection` implementation does not support option tabbing, so
5431 * its implementation of `tab()` will always throw an exception when
5435 * @throws Throws an exception when invoked.
5438 throw 'Tabs are not supported by TableSection';
5442 renderContents: function(cfgsections, nodes) {
5443 var section_id = null,
5444 config_name = this.uciconfig || this.map.config,
5445 max_cols = isNaN(this.max_cols) ? this.children.length : this.max_cols,
5446 has_more = max_cols < this.children.length,
5447 sectionEl = E('div', {
5448 'id': 'cbi-%s-%s'.format(config_name, this.sectiontype),
5449 'class': 'cbi-section cbi-tblsection',
5450 'data-tab': (this.map.tabbed && !this.parentoption) ? this.sectiontype : null,
5451 'data-tab-title': (this.map.tabbed && !this.parentoption) ? this.title || this.sectiontype : null
5453 tableEl = E('div', {
5454 'class': 'table cbi-section-table'
5457 if (this.title != null && this.title != '')
5458 sectionEl.appendChild(E('h3', {}, this.title));
5460 if (this.description != null && this.description != '')
5461 sectionEl.appendChild(E('div', { 'class': 'cbi-section-descr' }, this.description));
5463 tableEl.appendChild(this.renderHeaderRows(max_cols));
5465 for (var i = 0; i < nodes.length; i++) {
5466 var sectionname = this.titleFn('sectiontitle', cfgsections[i]);
5468 if (sectionname == null)
5469 sectionname = cfgsections[i];
5471 var trEl = E('div', {
5472 'id': 'cbi-%s-%s'.format(config_name, cfgsections[i]),
5473 'class': 'tr cbi-section-table-row',
5474 'data-sid': cfgsections[i],
5475 'draggable': this.sortable ? true : null,
5476 'mousedown': this.sortable ? L.bind(this.handleDragInit, this) : null,
5477 'dragstart': this.sortable ? L.bind(this.handleDragStart, this) : null,
5478 'dragover': this.sortable ? L.bind(this.handleDragOver, this) : null,
5479 'dragenter': this.sortable ? L.bind(this.handleDragEnter, this) : null,
5480 'dragleave': this.sortable ? L.bind(this.handleDragLeave, this) : null,
5481 'dragend': this.sortable ? L.bind(this.handleDragEnd, this) : null,
5482 'drop': this.sortable ? L.bind(this.handleDrop, this) : null,
5483 'data-title': (sectionname && (!this.anonymous || this.sectiontitle)) ? sectionname : null,
5484 'data-section-id': cfgsections[i]
5487 if (this.extedit || this.rowcolors)
5488 trEl.classList.add(!(tableEl.childNodes.length % 2)
5489 ? 'cbi-rowstyle-1' : 'cbi-rowstyle-2');
5491 for (var j = 0; j < max_cols && nodes[i].firstChild; j++)
5492 trEl.appendChild(nodes[i].firstChild);
5494 trEl.appendChild(this.renderRowActions(cfgsections[i], has_more ? _('More…') : null));
5495 tableEl.appendChild(trEl);
5498 if (nodes.length == 0)
5499 tableEl.appendChild(E('div', { 'class': 'tr cbi-section-table-row placeholder' },
5500 E('div', { 'class': 'td' },
5501 E('em', {}, _('This section contains no values yet')))));
5503 sectionEl.appendChild(tableEl);
5505 sectionEl.appendChild(this.renderSectionAdd('cbi-tblsection-create'));
5507 dom.bindClassInstance(sectionEl, this);
5513 renderHeaderRows: function(max_cols, has_action) {
5514 var has_titles = false,
5515 has_descriptions = false,
5516 max_cols = isNaN(this.max_cols) ? this.children.length : this.max_cols,
5517 has_more = max_cols < this.children.length,
5518 anon_class = (!this.anonymous || this.sectiontitle) ? 'named' : 'anonymous',
5521 for (var i = 0, opt; i < max_cols && (opt = this.children[i]) != null; i++) {
5525 has_titles = has_titles || !!opt.title;
5526 has_descriptions = has_descriptions || !!opt.description;
5530 var trEl = E('div', {
5531 'class': 'tr cbi-section-table-titles ' + anon_class,
5532 'data-title': (!this.anonymous || this.sectiontitle) ? _('Name') : null
5535 for (var i = 0, opt; i < max_cols && (opt = this.children[i]) != null; i++) {
5539 trEl.appendChild(E('div', {
5540 'class': 'th cbi-section-table-cell',
5541 'data-widget': opt.__name__
5544 if (opt.width != null)
5545 trEl.lastElementChild.style.width =
5546 (typeof(opt.width) == 'number') ? opt.width+'px' : opt.width;
5549 trEl.lastElementChild.appendChild(E('a', {
5550 'href': opt.titleref,
5551 'class': 'cbi-title-ref',
5552 'title': this.titledesc || _('Go to relevant configuration page')
5555 dom.content(trEl.lastElementChild, opt.title);
5558 if (this.sortable || this.extedit || this.addremove || has_more || has_action)
5559 trEl.appendChild(E('div', {
5560 'class': 'th cbi-section-table-cell cbi-section-actions'
5563 trEls.appendChild(trEl);
5566 if (has_descriptions) {
5567 var trEl = E('div', {
5568 'class': 'tr cbi-section-table-descr ' + anon_class
5571 for (var i = 0, opt; i < max_cols && (opt = this.children[i]) != null; i++) {
5575 trEl.appendChild(E('div', {
5576 'class': 'th cbi-section-table-cell',
5577 'data-widget': opt.__name__
5578 }, opt.description));
5580 if (opt.width != null)
5581 trEl.lastElementChild.style.width =
5582 (typeof(opt.width) == 'number') ? opt.width+'px' : opt.width;
5585 if (this.sortable || this.extedit || this.addremove || has_more)
5586 trEl.appendChild(E('div', {
5587 'class': 'th cbi-section-table-cell cbi-section-actions'
5590 trEls.appendChild(trEl);
5597 renderRowActions: function(section_id, more_label) {
5598 var config_name = this.uciconfig || this.map.config;
5600 if (!this.sortable && !this.extedit && !this.addremove && !more_label)
5603 var tdEl = E('div', {
5604 'class': 'td cbi-section-table-cell nowrap cbi-section-actions'
5607 if (this.sortable) {
5608 dom.append(tdEl.lastElementChild, [
5610 'title': _('Drag to reorder'),
5611 'class': 'btn cbi-button drag-handle center',
5612 'style': 'cursor:move'
5620 if (typeof(this.extedit) == 'function')
5621 evFn = L.bind(this.extedit, this);
5622 else if (typeof(this.extedit) == 'string')
5623 evFn = L.bind(function(sid, ev) {
5624 location.href = this.extedit.format(sid);
5625 }, this, section_id);
5627 dom.append(tdEl.lastElementChild,
5630 'class': 'cbi-button cbi-button-edit',
5637 dom.append(tdEl.lastElementChild,
5639 'title': more_label,
5640 'class': 'cbi-button cbi-button-edit',
5641 'click': ui.createHandlerFn(this, 'renderMoreOptionsModal', section_id)
5646 if (this.addremove) {
5647 var btn_title = this.titleFn('removebtntitle', section_id);
5649 dom.append(tdEl.lastElementChild,
5651 'title': btn_title || _('Delete'),
5652 'class': 'cbi-button cbi-button-remove',
5653 'click': ui.createHandlerFn(this, 'handleRemove', section_id)
5654 }, [ btn_title || _('Delete') ])
5662 handleDragInit: function(ev) {
5663 scope.dragState = { node: ev.target };
5667 handleDragStart: function(ev) {
5668 if (!scope.dragState || !scope.dragState.node.classList.contains('drag-handle')) {
5669 scope.dragState = null;
5670 ev.preventDefault();
5674 scope.dragState.node = dom.parent(scope.dragState.node, '.tr');
5675 ev.dataTransfer.setData('text', 'drag');
5676 ev.target.style.opacity = 0.4;
5680 handleDragOver: function(ev) {
5681 var n = scope.dragState.targetNode,
5682 r = scope.dragState.rect,
5683 t = r.top + r.height / 2;
5685 if (ev.clientY <= t) {
5686 n.classList.remove('drag-over-below');
5687 n.classList.add('drag-over-above');
5690 n.classList.remove('drag-over-above');
5691 n.classList.add('drag-over-below');
5694 ev.dataTransfer.dropEffect = 'move';
5695 ev.preventDefault();
5700 handleDragEnter: function(ev) {
5701 scope.dragState.rect = ev.currentTarget.getBoundingClientRect();
5702 scope.dragState.targetNode = ev.currentTarget;
5706 handleDragLeave: function(ev) {
5707 ev.currentTarget.classList.remove('drag-over-above');
5708 ev.currentTarget.classList.remove('drag-over-below');
5712 handleDragEnd: function(ev) {
5715 n.style.opacity = '';
5716 n.classList.add('flash');
5717 n.parentNode.querySelectorAll('.drag-over-above, .drag-over-below')
5718 .forEach(function(tr) {
5719 tr.classList.remove('drag-over-above');
5720 tr.classList.remove('drag-over-below');
5725 handleDrop: function(ev) {
5726 var s = scope.dragState;
5728 if (s.node && s.targetNode) {
5729 var config_name = this.uciconfig || this.map.config,
5730 ref_node = s.targetNode,
5733 if (ref_node.classList.contains('drag-over-below')) {
5734 ref_node = ref_node.nextElementSibling;
5738 var sid1 = s.node.getAttribute('data-sid'),
5739 sid2 = s.targetNode.getAttribute('data-sid');
5741 s.node.parentNode.insertBefore(s.node, ref_node);
5742 this.map.data.move(config_name, sid1, sid2, after);
5745 scope.dragState = null;
5746 ev.target.style.opacity = '';
5747 ev.stopPropagation();
5748 ev.preventDefault();
5753 handleModalCancel: function(modalMap, ev) {
5754 return Promise.resolve(ui.hideModal());
5758 handleModalSave: function(modalMap, ev) {
5759 return modalMap.save()
5760 .then(L.bind(this.map.load, this.map))
5761 .then(L.bind(this.map.reset, this.map))
5763 .catch(function() {});
5767 * Add further options to the per-section instanced modal popup.
5769 * This function may be overwritten by user code to perform additional
5770 * setup steps before displaying the more options modal which is useful to
5771 * e.g. query additional data or to inject further option elements.
5773 * The default implementation of this function does nothing.
5776 * @param {LuCI.form.NamedSection} modalSection
5777 * The `NamedSection` instance about to be rendered in the modal popup.
5779 * @param {string} section_id
5780 * The ID of the underlying UCI section the modal popup belongs to.
5783 * The DOM event emitted by clicking the `More…` button.
5785 * @returns {*|Promise<*>}
5786 * Return values of this function are ignored but if a promise is returned,
5787 * it is run to completion before the rendering is continued, allowing
5788 * custom logic to perform asynchroneous work before the modal dialog
5791 addModalOptions: function(modalSection, section_id, ev) {
5796 renderMoreOptionsModal: function(section_id, ev) {
5797 var parent = this.map,
5798 title = parent.title,
5800 m = new CBIMap(this.map.config, null, null),
5801 s = m.section(CBINamedSection, section_id, this.sectiontype);
5806 s.tab_names = this.tab_names;
5808 if ((name = this.titleFn('modaltitle', section_id)) != null)
5810 else if ((name = this.titleFn('sectiontitle', section_id)) != null)
5811 title = '%s - %s'.format(parent.title, name);
5812 else if (!this.anonymous)
5813 title = '%s - %s'.format(parent.title, section_id);
5815 for (var i = 0; i < this.children.length; i++) {
5816 var o1 = this.children[i];
5818 if (o1.modalonly === false)
5821 var o2 = s.option(o1.constructor, o1.option, o1.title, o1.description);
5824 if (!o1.hasOwnProperty(k))
5841 return Promise.resolve(this.addModalOptions(s, section_id, ev)).then(L.bind(m.render, m)).then(L.bind(function(nodes) {
5842 ui.showModal(title, [
5844 E('div', { 'class': 'right' }, [
5847 'click': ui.createHandlerFn(this, 'handleModalCancel', m)
5848 }, [ _('Dismiss') ]), ' ',
5850 'class': 'cbi-button cbi-button-positive important',
5851 'click': ui.createHandlerFn(this, 'handleModalSave', m)
5855 }, this)).catch(L.error);
5860 * @class GridSection
5861 * @memberof LuCI.form
5862 * @augments LuCI.form.TableSection
5866 * The `GridSection` class maps all or - if `filter()` is overwritten - a
5867 * subset of the underlying UCI configuration sections of a given type.
5869 * A grid section functions similar to a {@link LuCI.form.TableSection} but
5870 * supports tabbing in the modal overlay. Option elements added with
5871 * [option()]{@link LuCI.form.GridSection#option} are shown in the table while
5872 * elements added with [taboption()]{@link LuCI.form.GridSection#taboption}
5873 * are displayed in the modal popup.
5875 * Another important difference is that the table cells show a readonly text
5876 * preview of the corresponding option elements by default, unless the child
5877 * option element is explicitely made writable by setting the `editable`
5878 * property to `true`.
5880 * Additionally, the grid section honours a `modalonly` property of child
5881 * option elements. Refer to the [AbstractValue]{@link LuCI.form.AbstractValue}
5882 * documentation for details.
5884 * Layout wise, a grid section looks mostly identical to table sections.
5886 * @param {LuCI.form.Map|LuCI.form.JSONMap} form
5887 * The configuration form this section is added to. It is automatically passed
5888 * by [section()]{@link LuCI.form.Map#section}.
5890 * @param {string} section_type
5891 * The type of the UCI section to map.
5893 * @param {string} [title]
5894 * The title caption of the form section element.
5896 * @param {string} [description]
5897 * The description text of the form section element.
5899 var CBIGridSection = CBITableSection.extend(/** @lends LuCI.form.GridSection.prototype */ {
5901 * Add an option tab to the section.
5903 * The modal option elements of a grid section may be divided into multiple
5904 * tabs to provide a better overview to the user.
5906 * Before options can be moved into a tab pane, the corresponding tab
5907 * has to be defined first, which is done by calling this function.
5909 * Note that tabs are only effective in modal popups, options added with
5910 * `option()` will not be assigned to a specific tab and are rendered in
5911 * the table view only.
5913 * @param {string} name
5914 * The name of the tab to register. It may be freely chosen and just serves
5915 * as an identifier to differentiate tabs.
5917 * @param {string} title
5918 * The human readable caption of the tab.
5920 * @param {string} [description]
5921 * An additional description text for the corresponding tab pane. It is
5922 * displayed as text paragraph below the tab but before the tab pane
5923 * contents. If omitted, no description will be rendered.
5926 * Throws an exeption if a tab with the same `name` already exists.
5928 tab: function(name, title, description) {
5929 CBIAbstractSection.prototype.tab.call(this, name, title, description);
5933 handleAdd: function(ev, name) {
5934 var config_name = this.uciconfig || this.map.config,
5935 section_id = this.map.data.add(config_name, this.sectiontype, name);
5937 this.addedSection = section_id;
5938 return this.renderMoreOptionsModal(section_id);
5942 handleModalSave: function(/* ... */) {
5943 return this.super('handleModalSave', arguments)
5944 .then(L.bind(function() { this.addedSection = null }, this));
5948 handleModalCancel: function(/* ... */) {
5949 var config_name = this.uciconfig || this.map.config;
5951 if (this.addedSection != null) {
5952 this.map.data.remove(config_name, this.addedSection);
5953 this.addedSection = null;
5956 return this.super('handleModalCancel', arguments);
5960 renderUCISection: function(section_id) {
5961 return this.renderOptions(null, section_id);
5965 renderChildren: function(tab_name, section_id, in_table) {
5966 var tasks = [], index = 0;
5968 for (var i = 0, opt; (opt = this.children[i]) != null; i++) {
5969 if (opt.disable || opt.modalonly)
5973 tasks.push(opt.render(index++, section_id, in_table));
5975 tasks.push(this.renderTextValue(section_id, opt));
5978 return Promise.all(tasks);
5982 renderTextValue: function(section_id, opt) {
5983 var title = this.stripTags(opt.title).trim(),
5984 descr = this.stripTags(opt.description).trim(),
5985 value = opt.textvalue(section_id);
5988 'class': 'td cbi-value-field',
5989 'data-title': (title != '') ? title : null,
5990 'data-description': (descr != '') ? descr : null,
5991 'data-name': opt.option,
5992 'data-widget': opt.typename || opt.__name__
5993 }, (value != null) ? value : E('em', _('none')));
5997 renderHeaderRows: function(section_id) {
5998 return this.super('renderHeaderRows', [ NaN, true ]);
6002 renderRowActions: function(section_id) {
6003 return this.super('renderRowActions', [ section_id, _('Edit') ]);
6008 var section_ids = this.cfgsections(),
6011 if (Array.isArray(this.children)) {
6012 for (var i = 0; i < section_ids.length; i++) {
6013 for (var j = 0; j < this.children.length; j++) {
6014 if (!this.children[j].editable || this.children[j].modalonly)
6017 tasks.push(this.children[j].parse(section_ids[i]));
6022 return Promise.all(tasks);
6027 * @class NamedSection
6028 * @memberof LuCI.form
6029 * @augments LuCI.form.AbstractSection
6033 * The `NamedSection` class maps exactly one UCI section instance which is
6034 * specified when constructing the class instance.
6036 * Layout and functionality wise, a named section is essentially a
6037 * `TypedSection` which allows exactly one section node.
6039 * @param {LuCI.form.Map|LuCI.form.JSONMap} form
6040 * The configuration form this section is added to. It is automatically passed
6041 * by [section()]{@link LuCI.form.Map#section}.
6043 * @param {string} section_id
6044 * The name (ID) of the UCI section to map.
6046 * @param {string} section_type
6047 * The type of the UCI section to map.
6049 * @param {string} [title]
6050 * The title caption of the form section element.
6052 * @param {string} [description]
6053 * The description text of the form section element.
6055 var CBINamedSection = CBIAbstractSection.extend(/** @lends LuCI.form.NamedSection.prototype */ {
6056 __name__: 'CBI.NamedSection',
6057 __init__: function(map, section_id /*, ... */) {
6058 this.super('__init__', this.varargs(arguments, 2, map));
6060 this.section = section_id;
6064 * If set to `true`, the user may remove or recreate the sole mapped
6065 * configuration instance from the form section widget, otherwise only a
6066 * preexisting section may be edited. The default is `false`.
6068 * @name LuCI.form.NamedSection.prototype#addremove
6074 * Override the UCI configuration name to read the section IDs from. By
6075 * default, the configuration name is inherited from the parent `Map`.
6076 * By setting this property, a deviating configuration may be specified.
6077 * The default is `null`, means inheriting from the parent form.
6079 * @name LuCI.form.NamedSection.prototype#uciconfig
6085 * The `NamedSection` class overwrites the generic `cfgsections()`
6086 * implementation to return a one-element array containing the mapped
6087 * section ID as sole element. User code should not normally change this.
6089 * @returns {string[]}
6090 * Returns a one-element array containing the mapped section ID.
6092 cfgsections: function() {
6093 return [ this.section ];
6097 handleAdd: function(ev) {
6098 var section_id = this.section,
6099 config_name = this.uciconfig || this.map.config;
6101 this.map.data.add(config_name, this.sectiontype, section_id);
6102 return this.map.save(null, true);
6106 handleRemove: function(ev) {
6107 var section_id = this.section,
6108 config_name = this.uciconfig || this.map.config;
6110 this.map.data.remove(config_name, section_id);
6111 return this.map.save(null, true);
6115 renderContents: function(data) {
6116 var ucidata = data[0], nodes = data[1],
6117 section_id = this.section,
6118 config_name = this.uciconfig || this.map.config,
6119 sectionEl = E('div', {
6120 'id': ucidata ? null : 'cbi-%s-%s'.format(config_name, section_id),
6121 'class': 'cbi-section',
6122 'data-tab': (this.map.tabbed && !this.parentoption) ? this.sectiontype : null,
6123 'data-tab-title': (this.map.tabbed && !this.parentoption) ? this.title || this.sectiontype : null
6126 if (typeof(this.title) === 'string' && this.title !== '')
6127 sectionEl.appendChild(E('legend', {}, this.title));
6129 if (typeof(this.description) === 'string' && this.description !== '')
6130 sectionEl.appendChild(E('div', { 'class': 'cbi-section-descr' }, this.description));
6133 if (this.addremove) {
6134 sectionEl.appendChild(
6135 E('div', { 'class': 'cbi-section-remove right' },
6137 'class': 'cbi-button',
6138 'click': ui.createHandlerFn(this, 'handleRemove')
6139 }, [ _('Delete') ])));
6142 sectionEl.appendChild(E('div', {
6143 'id': 'cbi-%s-%s'.format(config_name, section_id),
6145 ? 'cbi-section-node cbi-section-node-tabbed' : 'cbi-section-node',
6146 'data-section-id': section_id
6149 else if (this.addremove) {
6150 sectionEl.appendChild(
6152 'class': 'cbi-button cbi-button-add',
6153 'click': ui.createHandlerFn(this, 'handleAdd')
6157 dom.bindClassInstance(sectionEl, this);
6163 render: function() {
6164 var config_name = this.uciconfig || this.map.config,
6165 section_id = this.section;
6167 return Promise.all([
6168 this.map.data.get(config_name, section_id),
6169 this.renderUCISection(section_id)
6170 ]).then(this.renderContents.bind(this));
6176 * @memberof LuCI.form
6177 * @augments LuCI.form.AbstractValue
6181 * The `Value` class represents a simple one-line form input using the
6182 * {@link LuCI.ui.Textfield} or - in case choices are added - the
6183 * {@link LuCI.ui.Combobox} class as underlying widget.
6185 * @param {LuCI.form.Map|LuCI.form.JSONMap} form
6186 * The configuration form this section is added to. It is automatically passed
6187 * by [option()]{@link LuCI.form.AbstractSection#option} or
6188 * [taboption()]{@link LuCI.form.AbstractSection#taboption} when adding the
6189 * option to the section.
6191 * @param {LuCI.form.AbstractSection} section
6192 * The configuration section this option is added to. It is automatically passed
6193 * by [option()]{@link LuCI.form.AbstractSection#option} or
6194 * [taboption()]{@link LuCI.form.AbstractSection#taboption} when adding the
6195 * option to the section.
6197 * @param {string} option
6198 * The name of the UCI option to map.
6200 * @param {string} [title]
6201 * The title caption of the option element.
6203 * @param {string} [description]
6204 * The description text of the option element.
6206 var CBIValue = CBIAbstractValue.extend(/** @lends LuCI.form.Value.prototype */ {
6207 __name__: 'CBI.Value',
6210 * If set to `true`, the field is rendered as password input, otherwise
6211 * as plain text input.
6213 * @name LuCI.form.Value.prototype#password
6219 * Set a placeholder string to use when the input field is empty.
6221 * @name LuCI.form.Value.prototype#placeholder
6227 * Add a predefined choice to the form option. By adding one or more
6228 * choices, the plain text input field is turned into a combobox widget
6229 * which prompts the user to select a predefined choice, or to enter a
6232 * @param {string} key
6233 * The choice value to add.
6235 * @param {Node|string} value
6236 * The caption for the choice value. May be a DOM node, a document fragment
6237 * or a plain text string. If omitted, the `key` value is used as caption.
6239 value: function(key, val) {
6240 this.keylist = this.keylist || [];
6241 this.keylist.push(String(key));
6243 this.vallist = this.vallist || [];
6244 this.vallist.push(dom.elem(val) ? val : String(val != null ? val : key));
6248 render: function(option_index, section_id, in_table) {
6249 return Promise.resolve(this.cfgvalue(section_id))
6250 .then(this.renderWidget.bind(this, section_id, option_index))
6251 .then(this.renderFrame.bind(this, section_id, in_table, option_index));
6255 renderFrame: function(section_id, in_table, option_index, nodes) {
6256 var config_name = this.uciconfig || this.section.uciconfig || this.map.config,
6257 depend_list = this.transformDepList(section_id),
6261 var title = this.stripTags(this.title).trim();
6262 optionEl = E('div', {
6263 'class': 'td cbi-value-field',
6264 'data-title': (title != '') ? title : null,
6265 'data-description': this.stripTags(this.description).trim(),
6266 'data-name': this.option,
6267 'data-widget': this.typename || (this.template ? this.template.replace(/^.+\//, '') : null) || this.__name__
6269 'id': 'cbi-%s-%s-%s'.format(config_name, section_id, this.option),
6270 'data-index': option_index,
6271 'data-depends': depend_list,
6272 'data-field': this.cbid(section_id)
6276 optionEl = E('div', {
6277 'class': 'cbi-value',
6278 'id': 'cbi-%s-%s-%s'.format(config_name, section_id, this.option),
6279 'data-index': option_index,
6280 'data-depends': depend_list,
6281 'data-field': this.cbid(section_id),
6282 'data-name': this.option,
6283 'data-widget': this.typename || (this.template ? this.template.replace(/^.+\//, '') : null) || this.__name__
6286 if (this.last_child)
6287 optionEl.classList.add('cbi-value-last');
6289 if (typeof(this.title) === 'string' && this.title !== '') {
6290 optionEl.appendChild(E('label', {
6291 'class': 'cbi-value-title',
6292 'for': 'widget.cbid.%s.%s.%s'.format(config_name, section_id, this.option),
6293 'click': function(ev) {
6294 var node = ev.currentTarget,
6295 elem = node.nextElementSibling.querySelector('#' + node.getAttribute('for')) || node.nextElementSibling.querySelector('[data-widget-id="' + node.getAttribute('for') + '"]');
6303 this.titleref ? E('a', {
6304 'class': 'cbi-title-ref',
6305 'href': this.titleref,
6306 'title': this.titledesc || _('Go to relevant configuration page')
6307 }, this.title) : this.title));
6309 optionEl.appendChild(E('div', { 'class': 'cbi-value-field' }));
6314 (optionEl.lastChild || optionEl).appendChild(nodes);
6316 if (!in_table && typeof(this.description) === 'string' && this.description !== '')
6317 dom.append(optionEl.lastChild || optionEl,
6318 E('div', { 'class': 'cbi-value-description' }, this.description));
6320 if (depend_list && depend_list.length)
6321 optionEl.classList.add('hidden');
6323 optionEl.addEventListener('widget-change',
6324 L.bind(this.map.checkDepends, this.map));
6326 dom.bindClassInstance(optionEl, this);
6332 renderWidget: function(section_id, option_index, cfgvalue) {
6333 var value = (cfgvalue != null) ? cfgvalue : this.default,
6334 choices = this.transformChoices(),
6338 var placeholder = (this.optional || this.rmempty)
6339 ? E('em', _('unspecified')) : _('-- Please choose --');
6341 widget = new ui.Combobox(Array.isArray(value) ? value.join(' ') : value, choices, {
6342 id: this.cbid(section_id),
6344 optional: this.optional || this.rmempty,
6345 datatype: this.datatype,
6346 select_placeholder: this.placeholder || placeholder,
6347 validate: L.bind(this.validate, this, section_id)
6351 widget = new ui.Textfield(Array.isArray(value) ? value.join(' ') : value, {
6352 id: this.cbid(section_id),
6353 password: this.password,
6354 optional: this.optional || this.rmempty,
6355 datatype: this.datatype,
6356 placeholder: this.placeholder,
6357 validate: L.bind(this.validate, this, section_id)
6361 return widget.render();
6366 * @class DynamicList
6367 * @memberof LuCI.form
6368 * @augments LuCI.form.Value
6372 * The `DynamicList` class represents a multi value widget allowing the user
6373 * to enter multiple unique values, optionally selected from a set of
6374 * predefined choices. It builds upon the {@link LuCI.ui.DynamicList} widget.
6376 * @param {LuCI.form.Map|LuCI.form.JSONMap} form
6377 * The configuration form this section is added to. It is automatically passed
6378 * by [option()]{@link LuCI.form.AbstractSection#option} or
6379 * [taboption()]{@link LuCI.form.AbstractSection#taboption} when adding the
6380 * option to the section.
6382 * @param {LuCI.form.AbstractSection} section
6383 * The configuration section this option is added to. It is automatically passed
6384 * by [option()]{@link LuCI.form.AbstractSection#option} or
6385 * [taboption()]{@link LuCI.form.AbstractSection#taboption} when adding the
6386 * option to the section.
6388 * @param {string} option
6389 * The name of the UCI option to map.
6391 * @param {string} [title]
6392 * The title caption of the option element.
6394 * @param {string} [description]
6395 * The description text of the option element.
6397 var CBIDynamicList = CBIValue.extend(/** @lends LuCI.form.DynamicList.prototype */ {
6398 __name__: 'CBI.DynamicList',
6401 renderWidget: function(section_id, option_index, cfgvalue) {
6402 var value = (cfgvalue != null) ? cfgvalue : this.default,
6403 choices = this.transformChoices(),
6404 items = L.toArray(value);
6406 var widget = new ui.DynamicList(items, choices, {
6407 id: this.cbid(section_id),
6409 optional: this.optional || this.rmempty,
6410 datatype: this.datatype,
6411 placeholder: this.placeholder,
6412 validate: L.bind(this.validate, this, section_id)
6415 return widget.render();
6421 * @memberof LuCI.form
6422 * @augments LuCI.form.Value
6426 * The `ListValue` class implements a simple static HTML select element
6427 * allowing the user to chose a single value from a set of predefined choices.
6428 * It builds upon the {@link LuCI.ui.Select} widget.
6430 * @param {LuCI.form.Map|LuCI.form.JSONMap} form
6431 * The configuration form this section is added to. It is automatically passed
6432 * by [option()]{@link LuCI.form.AbstractSection#option} or
6433 * [taboption()]{@link LuCI.form.AbstractSection#taboption} when adding the
6434 * option to the section.
6436 * @param {LuCI.form.AbstractSection} section
6437 * The configuration section this option is added to. It is automatically passed
6438 * by [option()]{@link LuCI.form.AbstractSection#option} or
6439 * [taboption()]{@link LuCI.form.AbstractSection#taboption} when adding the
6440 * option to the section.
6442 * @param {string} option
6443 * The name of the UCI option to map.
6445 * @param {string} [title]
6446 * The title caption of the option element.
6448 * @param {string} [description]
6449 * The description text of the option element.
6451 var CBIListValue = CBIValue.extend(/** @lends LuCI.form.ListValue.prototype */ {
6452 __name__: 'CBI.ListValue',
6454 __init__: function() {
6455 this.super('__init__', arguments);
6456 this.widget = 'select';
6461 * Set the size attribute of the underlying HTML select element.
6463 * @name LuCI.form.ListValue.prototype#size
6469 renderWidget: function(section_id, option_index, cfgvalue) {
6470 var choices = this.transformChoices();
6471 var widget = new ui.Select((cfgvalue != null) ? cfgvalue : this.default, choices, {
6472 id: this.cbid(section_id),
6475 optional: this.optional,
6476 placeholder: this.placeholder,
6477 validate: L.bind(this.validate, this, section_id)
6480 return widget.render();
6486 * @memberof LuCI.form
6487 * @augments LuCI.form.Value
6491 * The `FlagValue` element builds upon the {@link LuCI.ui.Checkbox} widget to
6492 * implement a simple checkbox element.
6494 * @param {LuCI.form.Map|LuCI.form.JSONMap} form
6495 * The configuration form this section is added to. It is automatically passed
6496 * by [option()]{@link LuCI.form.AbstractSection#option} or
6497 * [taboption()]{@link LuCI.form.AbstractSection#taboption} when adding the
6498 * option to the section.
6500 * @param {LuCI.form.AbstractSection} section
6501 * The configuration section this option is added to. It is automatically passed
6502 * by [option()]{@link LuCI.form.AbstractSection#option} or
6503 * [taboption()]{@link LuCI.form.AbstractSection#taboption} when adding the
6504 * option to the section.
6506 * @param {string} option
6507 * The name of the UCI option to map.
6509 * @param {string} [title]
6510 * The title caption of the option element.
6512 * @param {string} [description]
6513 * The description text of the option element.
6515 var CBIFlagValue = CBIValue.extend(/** @lends LuCI.form.FlagValue.prototype */ {
6516 __name__: 'CBI.FlagValue',
6518 __init__: function() {
6519 this.super('__init__', arguments);
6522 this.disabled = '0';
6523 this.default = this.disabled;
6527 * Sets the input value to use for the checkbox checked state.
6529 * @name LuCI.form.FlagValue.prototype#enabled
6535 * Sets the input value to use for the checkbox unchecked state.
6537 * @name LuCI.form.FlagValue.prototype#disabled
6543 renderWidget: function(section_id, option_index, cfgvalue) {
6544 var widget = new ui.Checkbox((cfgvalue != null) ? cfgvalue : this.default, {
6545 id: this.cbid(section_id),
6546 value_enabled: this.enabled,
6547 value_disabled: this.disabled,
6548 validate: L.bind(this.validate, this, section_id)
6551 return widget.render();
6555 * Query the checked state of the underlying checkbox widget and return
6556 * either the `enabled` or the `disabled` property value, depending on
6557 * the checked state.
6561 formvalue: function(section_id) {
6562 var elem = this.getUIElement(section_id),
6563 checked = elem ? elem.isChecked() : false;
6564 return checked ? this.enabled : this.disabled;
6568 * Query the checked state of the underlying checkbox widget and return
6569 * either a localized `Yes` or `No` string, depending on the checked state.
6573 textvalue: function(section_id) {
6574 var cval = this.cfgvalue(section_id);
6577 cval = this.default;
6579 return (cval == this.enabled) ? _('Yes') : _('No');
6583 parse: function(section_id) {
6584 if (this.isActive(section_id)) {
6585 var fval = this.formvalue(section_id);
6587 if (!this.isValid(section_id))
6588 return Promise.reject();
6590 if (fval == this.default && (this.optional || this.rmempty))
6591 return Promise.resolve(this.remove(section_id));
6593 return Promise.resolve(this.write(section_id, fval));
6596 return Promise.resolve(this.remove(section_id));
6603 * @memberof LuCI.form
6604 * @augments LuCI.form.DynamicList
6608 * The `MultiValue` class is a modified variant of the `DynamicList` element
6609 * which leverages the {@link LuCI.ui.Dropdown} widget to implement a multi
6610 * select dropdown element.
6612 * @param {LuCI.form.Map|LuCI.form.JSONMap} form
6613 * The configuration form this section is added to. It is automatically passed
6614 * by [option()]{@link LuCI.form.AbstractSection#option} or
6615 * [taboption()]{@link LuCI.form.AbstractSection#taboption} when adding the
6616 * option to the section.
6618 * @param {LuCI.form.AbstractSection} section
6619 * The configuration section this option is added to. It is automatically passed
6620 * by [option()]{@link LuCI.form.AbstractSection#option} or
6621 * [taboption()]{@link LuCI.form.AbstractSection#taboption} when adding the
6622 * option to the section.
6624 * @param {string} option
6625 * The name of the UCI option to map.
6627 * @param {string} [title]
6628 * The title caption of the option element.
6630 * @param {string} [description]
6631 * The description text of the option element.
6633 var CBIMultiValue = CBIDynamicList.extend(/** @lends LuCI.form.MultiValue.prototype */ {
6634 __name__: 'CBI.MultiValue',
6636 __init__: function() {
6637 this.super('__init__', arguments);
6638 this.placeholder = _('-- Please choose --');
6642 * Allows to specify the [display_items]{@link LuCI.ui.Dropdown.InitOptions}
6643 * property of the underlying dropdown widget. If omitted, the value of
6644 * the `size` property is used or `3` when `size` is unspecified as well.
6646 * @name LuCI.form.MultiValue.prototype#display_size
6652 * Allows to specify the [dropdown_items]{@link LuCI.ui.Dropdown.InitOptions}
6653 * property of the underlying dropdown widget. If omitted, the value of
6654 * the `size` property is used or `-1` when `size` is unspecified as well.
6656 * @name LuCI.form.MultiValue.prototype#dropdown_size
6662 renderWidget: function(section_id, option_index, cfgvalue) {
6663 var value = (cfgvalue != null) ? cfgvalue : this.default,
6664 choices = this.transformChoices();
6666 var widget = new ui.Dropdown(L.toArray(value), choices, {
6667 id: this.cbid(section_id),
6670 optional: this.optional || this.rmempty,
6671 select_placeholder: this.placeholder,
6672 display_items: this.display_size || this.size || 3,
6673 dropdown_items: this.dropdown_size || this.size || -1,
6674 validate: L.bind(this.validate, this, section_id)
6677 return widget.render();
6683 * @memberof LuCI.form
6684 * @augments LuCI.form.Value
6688 * The `TextValue` class implements a multi-line textarea input using
6689 * {@link LuCI.ui.Textarea}.
6691 * @param {LuCI.form.Map|LuCI.form.JSONMap} form
6692 * The configuration form this section is added to. It is automatically passed
6693 * by [option()]{@link LuCI.form.AbstractSection#option} or
6694 * [taboption()]{@link LuCI.form.AbstractSection#taboption} when adding the
6695 * option to the section.
6697 * @param {LuCI.form.AbstractSection} section
6698 * The configuration section this option is added to. It is automatically passed
6699 * by [option()]{@link LuCI.form.AbstractSection#option} or
6700 * [taboption()]{@link LuCI.form.AbstractSection#taboption} when adding the
6701 * option to the section.
6703 * @param {string} option
6704 * The name of the UCI option to map.
6706 * @param {string} [title]
6707 * The title caption of the option element.
6709 * @param {string} [description]
6710 * The description text of the option element.
6712 var CBITextValue = CBIValue.extend(/** @lends LuCI.form.TextValue.prototype */ {
6713 __name__: 'CBI.TextValue',
6719 * Enforces the use of a monospace font for the textarea contents when set
6722 * @name LuCI.form.TextValue.prototype#monospace
6728 * Allows to specify the [cols]{@link LuCI.ui.Textarea.InitOptions}
6729 * property of the underlying textarea widget.
6731 * @name LuCI.form.TextValue.prototype#cols
6737 * Allows to specify the [rows]{@link LuCI.ui.Textarea.InitOptions}
6738 * property of the underlying textarea widget.
6740 * @name LuCI.form.TextValue.prototype#rows
6746 * Allows to specify the [wrap]{@link LuCI.ui.Textarea.InitOptions}
6747 * property of the underlying textarea widget.
6749 * @name LuCI.form.TextValue.prototype#wrap
6755 renderWidget: function(section_id, option_index, cfgvalue) {
6756 var value = (cfgvalue != null) ? cfgvalue : this.default;
6758 var widget = new ui.Textarea(value, {
6759 id: this.cbid(section_id),
6760 optional: this.optional || this.rmempty,
6761 placeholder: this.placeholder,
6762 monospace: this.monospace,
6766 validate: L.bind(this.validate, this, section_id)
6769 return widget.render();
6775 * @memberof LuCI.form
6776 * @augments LuCI.form.Value
6780 * The `DummyValue` element wraps an {@link LuCI.ui.Hiddenfield} widget and
6781 * renders the underlying UCI option or default value as readonly text.
6783 * @param {LuCI.form.Map|LuCI.form.JSONMap} form
6784 * The configuration form this section is added to. It is automatically passed
6785 * by [option()]{@link LuCI.form.AbstractSection#option} or
6786 * [taboption()]{@link LuCI.form.AbstractSection#taboption} when adding the
6787 * option to the section.
6789 * @param {LuCI.form.AbstractSection} section
6790 * The configuration section this option is added to. It is automatically passed
6791 * by [option()]{@link LuCI.form.AbstractSection#option} or
6792 * [taboption()]{@link LuCI.form.AbstractSection#taboption} when adding the
6793 * option to the section.
6795 * @param {string} option
6796 * The name of the UCI option to map.
6798 * @param {string} [title]
6799 * The title caption of the option element.
6801 * @param {string} [description]
6802 * The description text of the option element.
6804 var CBIDummyValue = CBIValue.extend(/** @lends LuCI.form.DummyValue.prototype */ {
6805 __name__: 'CBI.DummyValue',
6808 * Set an URL which is opened when clicking on the dummy value text.
6810 * By setting this property, the dummy value text is wrapped in an `<a>`
6811 * element with the property value used as `href` attribute.
6813 * @name LuCI.form.DummyValue.prototype#href
6819 * Treat the UCI option value (or the `default` property value) as HTML.
6821 * By default, the value text is HTML escaped before being rendered as
6822 * text. In some cases it may be needed to actually interpret and render
6823 * HTML contents as-is. When set to `true`, HTML escaping is disabled.
6825 * @name LuCI.form.DummyValue.prototype#rawhtml
6831 renderWidget: function(section_id, option_index, cfgvalue) {
6832 var value = (cfgvalue != null) ? cfgvalue : this.default,
6833 hiddenEl = new ui.Hiddenfield(value, { id: this.cbid(section_id) }),
6834 outputEl = E('div');
6837 outputEl.appendChild(E('a', { 'href': this.href }));
6839 dom.append(outputEl.lastChild || outputEl,
6840 this.rawhtml ? value : [ value ]);
6849 remove: function() {},
6852 write: function() {}
6856 * @class ButtonValue
6857 * @memberof LuCI.form
6858 * @augments LuCI.form.Value
6862 * The `DummyValue` element wraps an {@link LuCI.ui.Hiddenfield} widget and
6863 * renders the underlying UCI option or default value as readonly text.
6865 * @param {LuCI.form.Map|LuCI.form.JSONMap} form
6866 * The configuration form this section is added to. It is automatically passed
6867 * by [option()]{@link LuCI.form.AbstractSection#option} or
6868 * [taboption()]{@link LuCI.form.AbstractSection#taboption} when adding the
6869 * option to the section.
6871 * @param {LuCI.form.AbstractSection} section
6872 * The configuration section this option is added to. It is automatically passed
6873 * by [option()]{@link LuCI.form.AbstractSection#option} or
6874 * [taboption()]{@link LuCI.form.AbstractSection#taboption} when adding the
6875 * option to the section.
6877 * @param {string} option
6878 * The name of the UCI option to map.
6880 * @param {string} [title]
6881 * The title caption of the option element.
6883 * @param {string} [description]
6884 * The description text of the option element.
6886 var CBIButtonValue = CBIValue.extend(/** @lends LuCI.form.ButtonValue.prototype */ {
6887 __name__: 'CBI.ButtonValue',
6890 * Override the rendered button caption.
6892 * By default, the option title - which is passed as fourth argument to the
6893 * constructor - is used as caption for the button element. When setting
6894 * this property to a string, it is used as `String.format()` pattern with
6895 * the underlying UCI section name passed as first format argument. When
6896 * set to a function, it is invoked passing the section ID as sole argument
6897 * and the resulting return value is converted to a string before being
6898 * used as button caption.
6900 * The default is `null`, means the option title is used as caption.
6902 * @name LuCI.form.ButtonValue.prototype#inputtitle
6903 * @type string|function
6908 * Override the button style class.
6910 * By setting this property, a specific `cbi-button-*` CSS class can be
6911 * selected to influence the style of the resulting button.
6913 * Suitable values which are implemented by most themes are `positive`,
6914 * `negative` and `primary`.
6916 * The default is `null`, means a neutral button styling is used.
6918 * @name LuCI.form.ButtonValue.prototype#inputstyle
6924 * Override the button click action.
6926 * By default, the underlying UCI option (or default property) value is
6927 * copied into a hidden field tied to the button element and the save
6928 * action is triggered on the parent form element.
6930 * When this property is set to a function, it is invoked instead of
6931 * performing the default actions. The handler function will receive the
6932 * DOM click element as first and the underlying configuration section ID
6933 * as second argument.
6935 * @name LuCI.form.ButtonValue.prototype#onclick
6941 renderWidget: function(section_id, option_index, cfgvalue) {
6942 var value = (cfgvalue != null) ? cfgvalue : this.default,
6943 hiddenEl = new ui.Hiddenfield(value, { id: this.cbid(section_id) }),
6944 outputEl = E('div'),
6945 btn_title = this.titleFn('inputtitle', section_id) || this.titleFn('title', section_id);
6947 if (value !== false)
6948 dom.content(outputEl, [
6950 'class': 'cbi-button cbi-button-%s'.format(this.inputstyle || 'button'),
6951 'click': ui.createHandlerFn(this, function(section_id, ev) {
6953 return this.onclick(ev, section_id);
6955 ev.currentTarget.parentNode.nextElementSibling.value = value;
6956 return this.map.save();
6961 dom.content(outputEl, ' - ');
6971 * @class HiddenValue
6972 * @memberof LuCI.form
6973 * @augments LuCI.form.Value
6977 * The `HiddenValue` element wraps an {@link LuCI.ui.Hiddenfield} widget.
6979 * Hidden value widgets used to be necessary in legacy code which actually
6980 * submitted the underlying HTML form the server. With client side handling of
6981 * forms, there are more efficient ways to store hidden state data.
6983 * Since this widget has no visible content, the title and description values
6984 * of this form element should be set to `null` as well to avoid a broken or
6985 * distorted form layout when rendering the option element.
6987 * @param {LuCI.form.Map|LuCI.form.JSONMap} form
6988 * The configuration form this section is added to. It is automatically passed
6989 * by [option()]{@link LuCI.form.AbstractSection#option} or
6990 * [taboption()]{@link LuCI.form.AbstractSection#taboption} when adding the
6991 * option to the section.
6993 * @param {LuCI.form.AbstractSection} section
6994 * The configuration section this option is added to. It is automatically passed
6995 * by [option()]{@link LuCI.form.AbstractSection#option} or
6996 * [taboption()]{@link LuCI.form.AbstractSection#taboption} when adding the
6997 * option to the section.
6999 * @param {string} option
7000 * The name of the UCI option to map.
7002 * @param {string} [title]
7003 * The title caption of the option element.
7005 * @param {string} [description]
7006 * The description text of the option element.
7008 var CBIHiddenValue = CBIValue.extend(/** @lends LuCI.form.HiddenValue.prototype */ {
7009 __name__: 'CBI.HiddenValue',
7012 renderWidget: function(section_id, option_index, cfgvalue) {
7013 var widget = new ui.Hiddenfield((cfgvalue != null) ? cfgvalue : this.default, {
7014 id: this.cbid(section_id)
7017 return widget.render();
7023 * @memberof LuCI.form
7024 * @augments LuCI.form.Value
7028 * The `FileUpload` element wraps an {@link LuCI.ui.FileUpload} widget and
7029 * offers the ability to browse, upload and select remote files.
7031 * @param {LuCI.form.Map|LuCI.form.JSONMap} form
7032 * The configuration form this section is added to. It is automatically passed
7033 * by [option()]{@link LuCI.form.AbstractSection#option} or
7034 * [taboption()]{@link LuCI.form.AbstractSection#taboption} when adding the
7035 * option to the section.
7037 * @param {LuCI.form.AbstractSection} section
7038 * The configuration section this option is added to. It is automatically passed
7039 * by [option()]{@link LuCI.form.AbstractSection#option} or
7040 * [taboption()]{@link LuCI.form.AbstractSection#taboption} when adding the
7041 * option to the section.
7043 * @param {string} option
7044 * The name of the UCI option to map.
7046 * @param {string} [title]
7047 * The title caption of the option element.
7049 * @param {string} [description]
7050 * The description text of the option element.
7052 var CBIFileUpload = CBIValue.extend(/** @lends LuCI.form.FileUpload.prototype */ {
7053 __name__: 'CBI.FileSelect',
7055 __init__: function(/* ... */) {
7056 this.super('__init__', arguments);
7058 this.show_hidden = false;
7059 this.enable_upload = true;
7060 this.enable_remove = true;
7061 this.root_directory = '/etc/luci-uploads';
7065 * Toggle display of hidden files.
7067 * Display hidden files when rendering the remote directory listing.
7068 * Note that this is merely a cosmetic feature, hidden files are always
7069 * included in received remote file listings.
7071 * The default is `false`, means hidden files are not displayed.
7073 * @name LuCI.form.FileUpload.prototype#show_hidden
7079 * Toggle file upload functionality.
7081 * When set to `true`, the underlying widget provides a button which lets
7082 * the user select and upload local files to the remote system.
7083 * Note that this is merely a cosmetic feature, remote upload access is
7084 * controlled by the session ACL rules.
7086 * The default is `true`, means file upload functionality is displayed.
7088 * @name LuCI.form.FileUpload.prototype#enable_upload
7094 * Toggle remote file delete functionality.
7096 * When set to `true`, the underlying widget provides a buttons which let
7097 * the user delete files from remote directories. Note that this is merely
7098 * a cosmetic feature, remote delete permissions are controlled by the
7099 * session ACL rules.
7101 * The default is `true`, means file removal buttons are displayed.
7103 * @name LuCI.form.FileUpload.prototype#enable_remove
7109 * Specify the root directory for file browsing.
7111 * This property defines the topmost directory the file browser widget may
7112 * navigate to, the UI will not allow browsing directories outside this
7113 * prefix. Note that this is merely a cosmetic feature, remote file access
7114 * and directory listing permissions are controlled by the session ACL
7117 * The default is `/etc/luci-uploads`.
7119 * @name LuCI.form.FileUpload.prototype#root_directory
7121 * @default /etc/luci-uploads
7125 renderWidget: function(section_id, option_index, cfgvalue) {
7126 var browserEl = new ui.FileUpload((cfgvalue != null) ? cfgvalue : this.default, {
7127 id: this.cbid(section_id),
7128 name: this.cbid(section_id),
7129 show_hidden: this.show_hidden,
7130 enable_upload: this.enable_upload,
7131 enable_remove: this.enable_remove,
7132 root_directory: this.root_directory
7135 return browserEl.render();
7140 * @class SectionValue
7141 * @memberof LuCI.form
7142 * @augments LuCI.form.Value
7146 * The `SectionValue` widget embeds a form section element within an option
7147 * element container, allowing to nest form sections into other sections.
7149 * @param {LuCI.form.Map|LuCI.form.JSONMap} form
7150 * The configuration form this section is added to. It is automatically passed
7151 * by [option()]{@link LuCI.form.AbstractSection#option} or
7152 * [taboption()]{@link LuCI.form.AbstractSection#taboption} when adding the
7153 * option to the section.
7155 * @param {LuCI.form.AbstractSection} section
7156 * The configuration section this option is added to. It is automatically passed
7157 * by [option()]{@link LuCI.form.AbstractSection#option} or
7158 * [taboption()]{@link LuCI.form.AbstractSection#taboption} when adding the
7159 * option to the section.
7161 * @param {string} option
7162 * The internal name of the option element holding the section. Since a section
7163 * container element does not read or write any configuration itself, the name
7164 * is only used internally and does not need to relate to any underlying UCI
7167 * @param {LuCI.form.AbstractSection} subsection_class
7168 * The class to use for instantiating the nested section element. Note that
7169 * the class value itself is expected here, not a class instance obtained by
7170 * calling `new`. The given class argument must be a subclass of the
7171 * `AbstractSection` class.
7173 * @param {...*} [class_args]
7174 * All further arguments are passed as-is to the subclass constructor. Refer
7175 * to the corresponding class constructor documentations for details.
7177 var CBISectionValue = CBIValue.extend(/** @lends LuCI.form.SectionValue.prototype */ {
7178 __name__: 'CBI.ContainerValue',
7179 __init__: function(map, section, option, cbiClass /*, ... */) {
7180 this.super('__init__', [map, section, option]);
7182 if (!CBIAbstractSection.isSubclass(cbiClass))
7183 throw 'Sub section must be a descendent of CBIAbstractSection';
7185 this.subsection = cbiClass.instantiate(this.varargs(arguments, 4, this.map));
7186 this.subsection.parentoption = this;
7190 * Access the embedded section instance.
7192 * This property holds a reference to the instantiated nested section.
7194 * @name LuCI.form.SectionValue.prototype#subsection
7195 * @type LuCI.form.AbstractSection
7200 load: function(section_id) {
7201 return this.subsection.load();
7205 parse: function(section_id) {
7206 return this.subsection.parse();
7210 renderWidget: function(section_id, option_index, cfgvalue) {
7211 return this.subsection.render();
7215 checkDepends: function(section_id) {
7216 this.subsection.checkDepends();
7217 return CBIValue.prototype.checkDepends.apply(this, [ section_id ]);
7221 * Since the section container is not rendering an own widget,
7222 * its `value()` implementation is a no-op.
7226 value: function() {},
7229 * Since the section container is not tied to any UCI configuration,
7230 * its `write()` implementation is a no-op.
7234 write: function() {},
7237 * Since the section container is not tied to any UCI configuration,
7238 * its `remove()` implementation is a no-op.
7242 remove: function() {},
7245 * Since the section container is not tied to any UCI configuration,
7246 * its `cfgvalue()` implementation will always return `null`.
7251 cfgvalue: function() { return null },
7254 * Since the section container is not tied to any UCI configuration,
7255 * its `formvalue()` implementation will always return `null`.
7260 formvalue: function() { return null }
7269 * The LuCI form class provides high level abstractions for creating creating
7270 * UCI- or JSON backed configurations forms.
7272 * To import the class in views, use `'require form'`, to import it in
7273 * external JavaScript, use `L.require("form").then(...)`.
7275 * A typical form is created by first constructing a
7276 * {@link LuCI.form.Map} or {@link LuCI.form.JSONMap} instance using `new` and
7277 * by subsequently adding sections and options to it. Finally
7278 * [render()]{@link LuCI.form.Map#render} is invoked on the instance to
7279 * assemble the HTML markup and insert it into the DOM.
7289 * m = new form.Map('example', 'Example form',
7290 * 'This is an example form mapping the contents of /etc/config/example');
7292 * s = m.section(form.NamedSection, 'first_section', 'example', 'The first section',
7293 * 'This sections maps "config example first_section" of /etc/config/example');
7295 * o = s.option(form.Flag, 'some_bool', 'A checkbox option');
7297 * o = s.option(form.ListValue, 'some_choice', 'A select element');
7298 * o.value('choice1', 'The first choice');
7299 * o.value('choice2', 'The second choice');
7301 * m.render().then(function(node) {
7302 * document.body.appendChild(node);
7306 return baseclass.extend(/** @lends LuCI.form.prototype */ {
7308 JSONMap: CBIJSONMap,
7309 AbstractSection: CBIAbstractSection,
7310 AbstractValue: CBIAbstractValue,
7312 TypedSection: CBITypedSection,
7313 TableSection: CBITableSection,
7314 GridSection: CBIGridSection,
7315 NamedSection: CBINamedSection,
7318 DynamicList: CBIDynamicList,
7319 ListValue: CBIListValue,
7321 MultiValue: CBIMultiValue,
7322 TextValue: CBITextValue,
7323 DummyValue: CBIDummyValue,
7324 Button: CBIButtonValue,
7325 HiddenValue: CBIHiddenValue,
7326 FileUpload: CBIFileUpload,
7327 SectionValue: CBISectionValue
7341 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)
7345 <script>prettyPrint();</script>
7346 <script src="scripts/jaguar.js"></script>