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#naturalCompare"><a href=
"LuCI.html#naturalCompare">naturalCompare
</a></li>
54 <li data-name=
"LuCI#Poll"><a href=
"LuCI.html#Poll">Poll
</a></li>
56 <li data-name=
"LuCI#Request"><a href=
"LuCI.html#Request">Request
</a></li>
58 <li data-name=
"LuCI#view"><a href=
"LuCI.html#view">view
</a></li>
61 <ul class=
"typedefs itemMembers">
63 <span class=
"subtitle">Typedefs
</span>
65 <li data-name=
"LuCI.requestCallbackFn"><a href=
"LuCI.html#.requestCallbackFn">requestCallbackFn
</a></li>
68 <ul class=
"typedefs itemMembers">
71 <ul class=
"methods itemMembers">
73 <span class=
"subtitle">Methods
</span>
75 <li data-name=
"LuCI#bind"><a href=
"LuCI.html#bind">bind
</a></li>
77 <li data-name=
"LuCI#error"><a href=
"LuCI.html#error">error
</a></li>
79 <li data-name=
"LuCI#fspath"><a href=
"LuCI.html#fspath">fspath
</a></li>
81 <li data-name=
"LuCI#get"><a href=
"LuCI.html#get">get
</a></li>
83 <li data-name=
"LuCI#halt"><a href=
"LuCI.html#halt">halt
</a></li>
85 <li data-name=
"LuCI#hasSystemFeature"><a href=
"LuCI.html#hasSystemFeature">hasSystemFeature
</a></li>
87 <li data-name=
"LuCI#hasViewPermission"><a href=
"LuCI.html#hasViewPermission">hasViewPermission
</a></li>
89 <li data-name=
"LuCI#isObject"><a href=
"LuCI.html#isObject">isObject
</a></li>
91 <li data-name=
"LuCI#location"><a href=
"LuCI.html#location">location
</a></li>
93 <li data-name=
"LuCI#media"><a href=
"LuCI.html#media">media
</a></li>
95 <li data-name=
"LuCI#path"><a href=
"LuCI.html#path">path
</a></li>
97 <li data-name=
"LuCI#poll"><a href=
"LuCI.html#poll">poll
</a></li>
99 <li data-name=
"LuCI#post"><a href=
"LuCI.html#post">post
</a></li>
101 <li data-name=
"LuCI#raise"><a href=
"LuCI.html#raise">raise
</a></li>
103 <li data-name=
"LuCI#require"><a href=
"LuCI.html#require">require
</a></li>
105 <li data-name=
"LuCI#resolveDefault"><a href=
"LuCI.html#resolveDefault">resolveDefault
</a></li>
107 <li data-name=
"LuCI#resource"><a href=
"LuCI.html#resource">resource
</a></li>
109 <li data-name=
"LuCI#run"><a href=
"LuCI.html#run">run
</a></li>
111 <li data-name=
"LuCI#sortedArray"><a href=
"LuCI.html#sortedArray">sortedArray
</a></li>
113 <li data-name=
"LuCI#sortedKeys"><a href=
"LuCI.html#sortedKeys">sortedKeys
</a></li>
115 <li data-name=
"LuCI#stop"><a href=
"LuCI.html#stop">stop
</a></li>
117 <li data-name=
"LuCI#toArray"><a href=
"LuCI.html#toArray">toArray
</a></li>
119 <li data-name=
"LuCI#url"><a href=
"LuCI.html#url">url
</a></li>
122 <ul class=
"events itemMembers">
127 <li class=
"item" data-name=
"LuCI.baseclass">
129 <a href=
"LuCI.baseclass.html">LuCI.baseclass
</a>
132 <ul class=
"members itemMembers">
135 <ul class=
"typedefs itemMembers">
138 <ul class=
"typedefs itemMembers">
141 <ul class=
"methods itemMembers">
143 <span class=
"subtitle">Methods
</span>
145 <li data-name=
"LuCI.baseclass.extend"><a href=
"LuCI.baseclass.html#.extend">extend
</a></li>
147 <li data-name=
"LuCI.baseclass.instantiate"><a href=
"LuCI.baseclass.html#.instantiate">instantiate
</a></li>
149 <li data-name=
"LuCI.baseclass.isSubclass"><a href=
"LuCI.baseclass.html#.isSubclass">isSubclass
</a></li>
151 <li data-name=
"LuCI.baseclass.singleton"><a href=
"LuCI.baseclass.html#.singleton">singleton
</a></li>
153 <li data-name=
"LuCI.baseclass#super"><a href=
"LuCI.baseclass.html#super">super
</a></li>
155 <li data-name=
"LuCI.baseclass#varargs"><a href=
"LuCI.baseclass.html#varargs">varargs
</a></li>
158 <ul class=
"events itemMembers">
163 <li class=
"item" data-name=
"LuCI.dom">
165 <a href=
"LuCI.dom.html">LuCI.dom
</a>
168 <ul class=
"members itemMembers">
171 <ul class=
"typedefs itemMembers">
173 <span class=
"subtitle">Typedefs
</span>
175 <li data-name=
"LuCI.dom~ignoreCallbackFn"><a href=
"LuCI.dom.html#~ignoreCallbackFn">ignoreCallbackFn
</a></li>
178 <ul class=
"typedefs itemMembers">
181 <ul class=
"methods itemMembers">
183 <span class=
"subtitle">Methods
</span>
185 <li data-name=
"LuCI.dom#append"><a href=
"LuCI.dom.html#append">append
</a></li>
187 <li data-name=
"LuCI.dom#attr"><a href=
"LuCI.dom.html#attr">attr
</a></li>
189 <li data-name=
"LuCI.dom#bindClassInstance"><a href=
"LuCI.dom.html#bindClassInstance">bindClassInstance
</a></li>
191 <li data-name=
"LuCI.dom#callClassMethod"><a href=
"LuCI.dom.html#callClassMethod">callClassMethod
</a></li>
193 <li data-name=
"LuCI.dom#content"><a href=
"LuCI.dom.html#content">content
</a></li>
195 <li data-name=
"LuCI.dom#create"><a href=
"LuCI.dom.html#create">create
</a></li>
197 <li data-name=
"LuCI.dom#data"><a href=
"LuCI.dom.html#data">data
</a></li>
199 <li data-name=
"LuCI.dom#elem"><a href=
"LuCI.dom.html#elem">elem
</a></li>
201 <li data-name=
"LuCI.dom#findClassInstance"><a href=
"LuCI.dom.html#findClassInstance">findClassInstance
</a></li>
203 <li data-name=
"LuCI.dom#isEmpty"><a href=
"LuCI.dom.html#isEmpty">isEmpty
</a></li>
205 <li data-name=
"LuCI.dom#matches"><a href=
"LuCI.dom.html#matches">matches
</a></li>
207 <li data-name=
"LuCI.dom#parent"><a href=
"LuCI.dom.html#parent">parent
</a></li>
209 <li data-name=
"LuCI.dom#parse"><a href=
"LuCI.dom.html#parse">parse
</a></li>
212 <ul class=
"events itemMembers">
217 <li class=
"item" data-name=
"LuCI.form">
219 <a href=
"LuCI.form.html">LuCI.form
</a>
222 <ul class=
"members itemMembers">
225 <ul class=
"typedefs itemMembers">
228 <ul class=
"typedefs itemMembers">
231 <ul class=
"methods itemMembers">
234 <ul class=
"events itemMembers">
239 <li class=
"item" data-name=
"LuCI.form.AbstractElement">
241 <a href=
"LuCI.form.AbstractElement.html">LuCI.form.AbstractElement
</a>
244 <ul class=
"members itemMembers">
247 <ul class=
"typedefs itemMembers">
250 <ul class=
"typedefs itemMembers">
253 <ul class=
"methods itemMembers">
255 <span class=
"subtitle">Methods
</span>
257 <li data-name=
"LuCI.form.AbstractElement#append"><a href=
"LuCI.form.AbstractElement.html#append">append
</a></li>
259 <li data-name=
"LuCI.form.AbstractElement#parse"><a href=
"LuCI.form.AbstractElement.html#parse">parse
</a></li>
261 <li data-name=
"LuCI.form.AbstractElement#render"><a href=
"LuCI.form.AbstractElement.html#render">render
</a></li>
263 <li data-name=
"LuCI.form.AbstractElement#stripTags"><a href=
"LuCI.form.AbstractElement.html#stripTags">stripTags
</a></li>
265 <li data-name=
"LuCI.form.AbstractElement#titleFn"><a href=
"LuCI.form.AbstractElement.html#titleFn">titleFn
</a></li>
268 <ul class=
"events itemMembers">
273 <li class=
"item" data-name=
"LuCI.form.AbstractSection">
275 <a href=
"LuCI.form.AbstractSection.html">LuCI.form.AbstractSection
</a>
278 <ul class=
"members itemMembers">
280 <span class=
"subtitle">Members
</span>
282 <li data-name=
"LuCI.form.AbstractSection##parentoption"><a href=
"LuCI.form.AbstractSection.html#parentoption">parentoption
</a></li>
285 <ul class=
"typedefs itemMembers">
288 <ul class=
"typedefs itemMembers">
291 <ul class=
"methods itemMembers">
293 <span class=
"subtitle">Methods
</span>
295 <li data-name=
"LuCI.form.AbstractSection#append"><a href=
"LuCI.form.AbstractSection.html#append">append
</a></li>
297 <li data-name=
"LuCI.form.AbstractSection#cfgsections"><a href=
"LuCI.form.AbstractSection.html#cfgsections">cfgsections
</a></li>
299 <li data-name=
"LuCI.form.AbstractSection#cfgvalue"><a href=
"LuCI.form.AbstractSection.html#cfgvalue">cfgvalue
</a></li>
301 <li data-name=
"LuCI.form.AbstractSection#filter"><a href=
"LuCI.form.AbstractSection.html#filter">filter
</a></li>
303 <li data-name=
"LuCI.form.AbstractSection#formvalue"><a href=
"LuCI.form.AbstractSection.html#formvalue">formvalue
</a></li>
305 <li data-name=
"LuCI.form.AbstractSection#getOption"><a href=
"LuCI.form.AbstractSection.html#getOption">getOption
</a></li>
307 <li data-name=
"LuCI.form.AbstractSection#getUIElement"><a href=
"LuCI.form.AbstractSection.html#getUIElement">getUIElement
</a></li>
309 <li data-name=
"LuCI.form.AbstractSection#load"><a href=
"LuCI.form.AbstractSection.html#load">load
</a></li>
311 <li data-name=
"LuCI.form.AbstractSection#option"><a href=
"LuCI.form.AbstractSection.html#option">option
</a></li>
313 <li data-name=
"LuCI.form.AbstractSection#parse"><a href=
"LuCI.form.AbstractSection.html#parse">parse
</a></li>
315 <li data-name=
"LuCI.form.AbstractSection#render"><a href=
"LuCI.form.AbstractSection.html#render">render
</a></li>
317 <li data-name=
"LuCI.form.AbstractSection#stripTags"><a href=
"LuCI.form.AbstractSection.html#stripTags">stripTags
</a></li>
319 <li data-name=
"LuCI.form.AbstractSection#tab"><a href=
"LuCI.form.AbstractSection.html#tab">tab
</a></li>
321 <li data-name=
"LuCI.form.AbstractSection#taboption"><a href=
"LuCI.form.AbstractSection.html#taboption">taboption
</a></li>
323 <li data-name=
"LuCI.form.AbstractSection#titleFn"><a href=
"LuCI.form.AbstractSection.html#titleFn">titleFn
</a></li>
326 <ul class=
"events itemMembers">
331 <li class=
"item" data-name=
"LuCI.form.AbstractValue">
333 <a href=
"LuCI.form.AbstractValue.html">LuCI.form.AbstractValue
</a>
336 <ul class=
"members itemMembers">
338 <span class=
"subtitle">Members
</span>
340 <li data-name=
"LuCI.form.AbstractValue##datatype"><a href=
"LuCI.form.AbstractValue.html#datatype">datatype
</a></li>
342 <li data-name=
"LuCI.form.AbstractValue##default"><a href=
"LuCI.form.AbstractValue.html#default">default
</a></li>
344 <li data-name=
"LuCI.form.AbstractValue##editable"><a href=
"LuCI.form.AbstractValue.html#editable">editable
</a></li>
346 <li data-name=
"LuCI.form.AbstractValue##modalonly"><a href=
"LuCI.form.AbstractValue.html#modalonly">modalonly
</a></li>
348 <li data-name=
"LuCI.form.AbstractValue##onchange"><a href=
"LuCI.form.AbstractValue.html#onchange">onchange
</a></li>
350 <li data-name=
"LuCI.form.AbstractValue##optional"><a href=
"LuCI.form.AbstractValue.html#optional">optional
</a></li>
352 <li data-name=
"LuCI.form.AbstractValue##readonly"><a href=
"LuCI.form.AbstractValue.html#readonly">readonly
</a></li>
354 <li data-name=
"LuCI.form.AbstractValue##retain"><a href=
"LuCI.form.AbstractValue.html#retain">retain
</a></li>
356 <li data-name=
"LuCI.form.AbstractValue##rmempty"><a href=
"LuCI.form.AbstractValue.html#rmempty">rmempty
</a></li>
358 <li data-name=
"LuCI.form.AbstractValue##uciconfig"><a href=
"LuCI.form.AbstractValue.html#uciconfig">uciconfig
</a></li>
360 <li data-name=
"LuCI.form.AbstractValue##ucioption"><a href=
"LuCI.form.AbstractValue.html#ucioption">ucioption
</a></li>
362 <li data-name=
"LuCI.form.AbstractValue##ucisection"><a href=
"LuCI.form.AbstractValue.html#ucisection">ucisection
</a></li>
364 <li data-name=
"LuCI.form.AbstractValue##validate"><a href=
"LuCI.form.AbstractValue.html#validate">validate
</a></li>
366 <li data-name=
"LuCI.form.AbstractValue##width"><a href=
"LuCI.form.AbstractValue.html#width">width
</a></li>
369 <ul class=
"typedefs itemMembers">
372 <ul class=
"typedefs itemMembers">
375 <ul class=
"methods itemMembers">
377 <span class=
"subtitle">Methods
</span>
379 <li data-name=
"LuCI.form.AbstractValue#append"><a href=
"LuCI.form.AbstractValue.html#append">append
</a></li>
381 <li data-name=
"LuCI.form.AbstractValue#cbid"><a href=
"LuCI.form.AbstractValue.html#cbid">cbid
</a></li>
383 <li data-name=
"LuCI.form.AbstractValue#cfgvalue"><a href=
"LuCI.form.AbstractValue.html#cfgvalue">cfgvalue
</a></li>
385 <li data-name=
"LuCI.form.AbstractValue#depends"><a href=
"LuCI.form.AbstractValue.html#depends">depends
</a></li>
387 <li data-name=
"LuCI.form.AbstractValue#formvalue"><a href=
"LuCI.form.AbstractValue.html#formvalue">formvalue
</a></li>
389 <li data-name=
"LuCI.form.AbstractValue#getUIElement"><a href=
"LuCI.form.AbstractValue.html#getUIElement">getUIElement
</a></li>
391 <li data-name=
"LuCI.form.AbstractValue#getValidationError"><a href=
"LuCI.form.AbstractValue.html#getValidationError">getValidationError
</a></li>
393 <li data-name=
"LuCI.form.AbstractValue#isActive"><a href=
"LuCI.form.AbstractValue.html#isActive">isActive
</a></li>
395 <li data-name=
"LuCI.form.AbstractValue#isValid"><a href=
"LuCI.form.AbstractValue.html#isValid">isValid
</a></li>
397 <li data-name=
"LuCI.form.AbstractValue#load"><a href=
"LuCI.form.AbstractValue.html#load">load
</a></li>
399 <li data-name=
"LuCI.form.AbstractValue#parse"><a href=
"LuCI.form.AbstractValue.html#parse">parse
</a></li>
401 <li data-name=
"LuCI.form.AbstractValue#remove"><a href=
"LuCI.form.AbstractValue.html#remove">remove
</a></li>
403 <li data-name=
"LuCI.form.AbstractValue#render"><a href=
"LuCI.form.AbstractValue.html#render">render
</a></li>
405 <li data-name=
"LuCI.form.AbstractValue#stripTags"><a href=
"LuCI.form.AbstractValue.html#stripTags">stripTags
</a></li>
407 <li data-name=
"LuCI.form.AbstractValue#textvalue"><a href=
"LuCI.form.AbstractValue.html#textvalue">textvalue
</a></li>
409 <li data-name=
"LuCI.form.AbstractValue#titleFn"><a href=
"LuCI.form.AbstractValue.html#titleFn">titleFn
</a></li>
411 <li data-name=
"LuCI.form.AbstractValue#validate"><a href=
"LuCI.form.AbstractValue.html#validate">validate
</a></li>
413 <li data-name=
"LuCI.form.AbstractValue#write"><a href=
"LuCI.form.AbstractValue.html#write">write
</a></li>
416 <ul class=
"events itemMembers">
421 <li class=
"item" data-name=
"LuCI.form.ButtonValue">
423 <a href=
"LuCI.form.ButtonValue.html">LuCI.form.ButtonValue
</a>
426 <ul class=
"members itemMembers">
428 <span class=
"subtitle">Members
</span>
430 <li data-name=
"LuCI.form.ButtonValue##inputstyle"><a href=
"LuCI.form.ButtonValue.html#inputstyle">inputstyle
</a></li>
432 <li data-name=
"LuCI.form.ButtonValue##inputtitle"><a href=
"LuCI.form.ButtonValue.html#inputtitle">inputtitle
</a></li>
434 <li data-name=
"LuCI.form.ButtonValue##onclick"><a href=
"LuCI.form.ButtonValue.html#onclick">onclick
</a></li>
436 <li data-name=
"LuCI.form.ButtonValue#datatype"><a href=
"LuCI.form.ButtonValue.html#datatype">datatype
</a></li>
438 <li data-name=
"LuCI.form.ButtonValue#default"><a href=
"LuCI.form.ButtonValue.html#default">default
</a></li>
440 <li data-name=
"LuCI.form.ButtonValue#editable"><a href=
"LuCI.form.ButtonValue.html#editable">editable
</a></li>
442 <li data-name=
"LuCI.form.ButtonValue#modalonly"><a href=
"LuCI.form.ButtonValue.html#modalonly">modalonly
</a></li>
444 <li data-name=
"LuCI.form.ButtonValue#onchange"><a href=
"LuCI.form.ButtonValue.html#onchange">onchange
</a></li>
446 <li data-name=
"LuCI.form.ButtonValue#optional"><a href=
"LuCI.form.ButtonValue.html#optional">optional
</a></li>
448 <li data-name=
"LuCI.form.ButtonValue#password"><a href=
"LuCI.form.ButtonValue.html#password">password
</a></li>
450 <li data-name=
"LuCI.form.ButtonValue#placeholder"><a href=
"LuCI.form.ButtonValue.html#placeholder">placeholder
</a></li>
452 <li data-name=
"LuCI.form.ButtonValue#readonly"><a href=
"LuCI.form.ButtonValue.html#readonly">readonly
</a></li>
454 <li data-name=
"LuCI.form.ButtonValue#retain"><a href=
"LuCI.form.ButtonValue.html#retain">retain
</a></li>
456 <li data-name=
"LuCI.form.ButtonValue#rmempty"><a href=
"LuCI.form.ButtonValue.html#rmempty">rmempty
</a></li>
458 <li data-name=
"LuCI.form.ButtonValue#uciconfig"><a href=
"LuCI.form.ButtonValue.html#uciconfig">uciconfig
</a></li>
460 <li data-name=
"LuCI.form.ButtonValue#ucioption"><a href=
"LuCI.form.ButtonValue.html#ucioption">ucioption
</a></li>
462 <li data-name=
"LuCI.form.ButtonValue#ucisection"><a href=
"LuCI.form.ButtonValue.html#ucisection">ucisection
</a></li>
464 <li data-name=
"LuCI.form.ButtonValue#validate"><a href=
"LuCI.form.ButtonValue.html#validate">validate
</a></li>
466 <li data-name=
"LuCI.form.ButtonValue#width"><a href=
"LuCI.form.ButtonValue.html#width">width
</a></li>
469 <ul class=
"typedefs itemMembers">
472 <ul class=
"typedefs itemMembers">
475 <ul class=
"methods itemMembers">
477 <span class=
"subtitle">Methods
</span>
479 <li data-name=
"LuCI.form.ButtonValue#append"><a href=
"LuCI.form.ButtonValue.html#append">append
</a></li>
481 <li data-name=
"LuCI.form.ButtonValue#cbid"><a href=
"LuCI.form.ButtonValue.html#cbid">cbid
</a></li>
483 <li data-name=
"LuCI.form.ButtonValue#cfgvalue"><a href=
"LuCI.form.ButtonValue.html#cfgvalue">cfgvalue
</a></li>
485 <li data-name=
"LuCI.form.ButtonValue#depends"><a href=
"LuCI.form.ButtonValue.html#depends">depends
</a></li>
487 <li data-name=
"LuCI.form.ButtonValue#formvalue"><a href=
"LuCI.form.ButtonValue.html#formvalue">formvalue
</a></li>
489 <li data-name=
"LuCI.form.ButtonValue#getUIElement"><a href=
"LuCI.form.ButtonValue.html#getUIElement">getUIElement
</a></li>
491 <li data-name=
"LuCI.form.ButtonValue#getValidationError"><a href=
"LuCI.form.ButtonValue.html#getValidationError">getValidationError
</a></li>
493 <li data-name=
"LuCI.form.ButtonValue#isActive"><a href=
"LuCI.form.ButtonValue.html#isActive">isActive
</a></li>
495 <li data-name=
"LuCI.form.ButtonValue#isValid"><a href=
"LuCI.form.ButtonValue.html#isValid">isValid
</a></li>
497 <li data-name=
"LuCI.form.ButtonValue#load"><a href=
"LuCI.form.ButtonValue.html#load">load
</a></li>
499 <li data-name=
"LuCI.form.ButtonValue#parse"><a href=
"LuCI.form.ButtonValue.html#parse">parse
</a></li>
501 <li data-name=
"LuCI.form.ButtonValue#remove"><a href=
"LuCI.form.ButtonValue.html#remove">remove
</a></li>
503 <li data-name=
"LuCI.form.ButtonValue#stripTags"><a href=
"LuCI.form.ButtonValue.html#stripTags">stripTags
</a></li>
505 <li data-name=
"LuCI.form.ButtonValue#textvalue"><a href=
"LuCI.form.ButtonValue.html#textvalue">textvalue
</a></li>
507 <li data-name=
"LuCI.form.ButtonValue#titleFn"><a href=
"LuCI.form.ButtonValue.html#titleFn">titleFn
</a></li>
509 <li data-name=
"LuCI.form.ButtonValue#value"><a href=
"LuCI.form.ButtonValue.html#value">value
</a></li>
511 <li data-name=
"LuCI.form.ButtonValue#write"><a href=
"LuCI.form.ButtonValue.html#write">write
</a></li>
514 <ul class=
"events itemMembers">
519 <li class=
"item" data-name=
"LuCI.form.DummyValue">
521 <a href=
"LuCI.form.DummyValue.html">LuCI.form.DummyValue
</a>
524 <ul class=
"members itemMembers">
526 <span class=
"subtitle">Members
</span>
528 <li data-name=
"LuCI.form.DummyValue##hidden"><a href=
"LuCI.form.DummyValue.html#hidden">hidden
</a></li>
530 <li data-name=
"LuCI.form.DummyValue##href"><a href=
"LuCI.form.DummyValue.html#href">href
</a></li>
532 <li data-name=
"LuCI.form.DummyValue##rawhtml"><a href=
"LuCI.form.DummyValue.html#rawhtml">rawhtml
</a></li>
534 <li data-name=
"LuCI.form.DummyValue#datatype"><a href=
"LuCI.form.DummyValue.html#datatype">datatype
</a></li>
536 <li data-name=
"LuCI.form.DummyValue#default"><a href=
"LuCI.form.DummyValue.html#default">default
</a></li>
538 <li data-name=
"LuCI.form.DummyValue#editable"><a href=
"LuCI.form.DummyValue.html#editable">editable
</a></li>
540 <li data-name=
"LuCI.form.DummyValue#modalonly"><a href=
"LuCI.form.DummyValue.html#modalonly">modalonly
</a></li>
542 <li data-name=
"LuCI.form.DummyValue#onchange"><a href=
"LuCI.form.DummyValue.html#onchange">onchange
</a></li>
544 <li data-name=
"LuCI.form.DummyValue#optional"><a href=
"LuCI.form.DummyValue.html#optional">optional
</a></li>
546 <li data-name=
"LuCI.form.DummyValue#password"><a href=
"LuCI.form.DummyValue.html#password">password
</a></li>
548 <li data-name=
"LuCI.form.DummyValue#placeholder"><a href=
"LuCI.form.DummyValue.html#placeholder">placeholder
</a></li>
550 <li data-name=
"LuCI.form.DummyValue#readonly"><a href=
"LuCI.form.DummyValue.html#readonly">readonly
</a></li>
552 <li data-name=
"LuCI.form.DummyValue#retain"><a href=
"LuCI.form.DummyValue.html#retain">retain
</a></li>
554 <li data-name=
"LuCI.form.DummyValue#rmempty"><a href=
"LuCI.form.DummyValue.html#rmempty">rmempty
</a></li>
556 <li data-name=
"LuCI.form.DummyValue#uciconfig"><a href=
"LuCI.form.DummyValue.html#uciconfig">uciconfig
</a></li>
558 <li data-name=
"LuCI.form.DummyValue#ucioption"><a href=
"LuCI.form.DummyValue.html#ucioption">ucioption
</a></li>
560 <li data-name=
"LuCI.form.DummyValue#ucisection"><a href=
"LuCI.form.DummyValue.html#ucisection">ucisection
</a></li>
562 <li data-name=
"LuCI.form.DummyValue#validate"><a href=
"LuCI.form.DummyValue.html#validate">validate
</a></li>
564 <li data-name=
"LuCI.form.DummyValue#width"><a href=
"LuCI.form.DummyValue.html#width">width
</a></li>
567 <ul class=
"typedefs itemMembers">
570 <ul class=
"typedefs itemMembers">
573 <ul class=
"methods itemMembers">
575 <span class=
"subtitle">Methods
</span>
577 <li data-name=
"LuCI.form.DummyValue#append"><a href=
"LuCI.form.DummyValue.html#append">append
</a></li>
579 <li data-name=
"LuCI.form.DummyValue#cbid"><a href=
"LuCI.form.DummyValue.html#cbid">cbid
</a></li>
581 <li data-name=
"LuCI.form.DummyValue#cfgvalue"><a href=
"LuCI.form.DummyValue.html#cfgvalue">cfgvalue
</a></li>
583 <li data-name=
"LuCI.form.DummyValue#depends"><a href=
"LuCI.form.DummyValue.html#depends">depends
</a></li>
585 <li data-name=
"LuCI.form.DummyValue#formvalue"><a href=
"LuCI.form.DummyValue.html#formvalue">formvalue
</a></li>
587 <li data-name=
"LuCI.form.DummyValue#getUIElement"><a href=
"LuCI.form.DummyValue.html#getUIElement">getUIElement
</a></li>
589 <li data-name=
"LuCI.form.DummyValue#getValidationError"><a href=
"LuCI.form.DummyValue.html#getValidationError">getValidationError
</a></li>
591 <li data-name=
"LuCI.form.DummyValue#isActive"><a href=
"LuCI.form.DummyValue.html#isActive">isActive
</a></li>
593 <li data-name=
"LuCI.form.DummyValue#isValid"><a href=
"LuCI.form.DummyValue.html#isValid">isValid
</a></li>
595 <li data-name=
"LuCI.form.DummyValue#load"><a href=
"LuCI.form.DummyValue.html#load">load
</a></li>
597 <li data-name=
"LuCI.form.DummyValue#parse"><a href=
"LuCI.form.DummyValue.html#parse">parse
</a></li>
599 <li data-name=
"LuCI.form.DummyValue#remove"><a href=
"LuCI.form.DummyValue.html#remove">remove
</a></li>
601 <li data-name=
"LuCI.form.DummyValue#stripTags"><a href=
"LuCI.form.DummyValue.html#stripTags">stripTags
</a></li>
603 <li data-name=
"LuCI.form.DummyValue#textvalue"><a href=
"LuCI.form.DummyValue.html#textvalue">textvalue
</a></li>
605 <li data-name=
"LuCI.form.DummyValue#titleFn"><a href=
"LuCI.form.DummyValue.html#titleFn">titleFn
</a></li>
607 <li data-name=
"LuCI.form.DummyValue#value"><a href=
"LuCI.form.DummyValue.html#value">value
</a></li>
609 <li data-name=
"LuCI.form.DummyValue#write"><a href=
"LuCI.form.DummyValue.html#write">write
</a></li>
612 <ul class=
"events itemMembers">
617 <li class=
"item" data-name=
"LuCI.form.DynamicList">
619 <a href=
"LuCI.form.DynamicList.html">LuCI.form.DynamicList
</a>
622 <ul class=
"members itemMembers">
624 <span class=
"subtitle">Members
</span>
626 <li data-name=
"LuCI.form.DynamicList#datatype"><a href=
"LuCI.form.DynamicList.html#datatype">datatype
</a></li>
628 <li data-name=
"LuCI.form.DynamicList#default"><a href=
"LuCI.form.DynamicList.html#default">default
</a></li>
630 <li data-name=
"LuCI.form.DynamicList#editable"><a href=
"LuCI.form.DynamicList.html#editable">editable
</a></li>
632 <li data-name=
"LuCI.form.DynamicList#modalonly"><a href=
"LuCI.form.DynamicList.html#modalonly">modalonly
</a></li>
634 <li data-name=
"LuCI.form.DynamicList#onchange"><a href=
"LuCI.form.DynamicList.html#onchange">onchange
</a></li>
636 <li data-name=
"LuCI.form.DynamicList#optional"><a href=
"LuCI.form.DynamicList.html#optional">optional
</a></li>
638 <li data-name=
"LuCI.form.DynamicList#password"><a href=
"LuCI.form.DynamicList.html#password">password
</a></li>
640 <li data-name=
"LuCI.form.DynamicList#placeholder"><a href=
"LuCI.form.DynamicList.html#placeholder">placeholder
</a></li>
642 <li data-name=
"LuCI.form.DynamicList#readonly"><a href=
"LuCI.form.DynamicList.html#readonly">readonly
</a></li>
644 <li data-name=
"LuCI.form.DynamicList#retain"><a href=
"LuCI.form.DynamicList.html#retain">retain
</a></li>
646 <li data-name=
"LuCI.form.DynamicList#rmempty"><a href=
"LuCI.form.DynamicList.html#rmempty">rmempty
</a></li>
648 <li data-name=
"LuCI.form.DynamicList#uciconfig"><a href=
"LuCI.form.DynamicList.html#uciconfig">uciconfig
</a></li>
650 <li data-name=
"LuCI.form.DynamicList#ucioption"><a href=
"LuCI.form.DynamicList.html#ucioption">ucioption
</a></li>
652 <li data-name=
"LuCI.form.DynamicList#ucisection"><a href=
"LuCI.form.DynamicList.html#ucisection">ucisection
</a></li>
654 <li data-name=
"LuCI.form.DynamicList#validate"><a href=
"LuCI.form.DynamicList.html#validate">validate
</a></li>
656 <li data-name=
"LuCI.form.DynamicList#width"><a href=
"LuCI.form.DynamicList.html#width">width
</a></li>
659 <ul class=
"typedefs itemMembers">
662 <ul class=
"typedefs itemMembers">
665 <ul class=
"methods itemMembers">
667 <span class=
"subtitle">Methods
</span>
669 <li data-name=
"LuCI.form.DynamicList#append"><a href=
"LuCI.form.DynamicList.html#append">append
</a></li>
671 <li data-name=
"LuCI.form.DynamicList#cbid"><a href=
"LuCI.form.DynamicList.html#cbid">cbid
</a></li>
673 <li data-name=
"LuCI.form.DynamicList#cfgvalue"><a href=
"LuCI.form.DynamicList.html#cfgvalue">cfgvalue
</a></li>
675 <li data-name=
"LuCI.form.DynamicList#depends"><a href=
"LuCI.form.DynamicList.html#depends">depends
</a></li>
677 <li data-name=
"LuCI.form.DynamicList#formvalue"><a href=
"LuCI.form.DynamicList.html#formvalue">formvalue
</a></li>
679 <li data-name=
"LuCI.form.DynamicList#getUIElement"><a href=
"LuCI.form.DynamicList.html#getUIElement">getUIElement
</a></li>
681 <li data-name=
"LuCI.form.DynamicList#getValidationError"><a href=
"LuCI.form.DynamicList.html#getValidationError">getValidationError
</a></li>
683 <li data-name=
"LuCI.form.DynamicList#isActive"><a href=
"LuCI.form.DynamicList.html#isActive">isActive
</a></li>
685 <li data-name=
"LuCI.form.DynamicList#isValid"><a href=
"LuCI.form.DynamicList.html#isValid">isValid
</a></li>
687 <li data-name=
"LuCI.form.DynamicList#load"><a href=
"LuCI.form.DynamicList.html#load">load
</a></li>
689 <li data-name=
"LuCI.form.DynamicList#parse"><a href=
"LuCI.form.DynamicList.html#parse">parse
</a></li>
691 <li data-name=
"LuCI.form.DynamicList#remove"><a href=
"LuCI.form.DynamicList.html#remove">remove
</a></li>
693 <li data-name=
"LuCI.form.DynamicList#stripTags"><a href=
"LuCI.form.DynamicList.html#stripTags">stripTags
</a></li>
695 <li data-name=
"LuCI.form.DynamicList#textvalue"><a href=
"LuCI.form.DynamicList.html#textvalue">textvalue
</a></li>
697 <li data-name=
"LuCI.form.DynamicList#titleFn"><a href=
"LuCI.form.DynamicList.html#titleFn">titleFn
</a></li>
699 <li data-name=
"LuCI.form.DynamicList#value"><a href=
"LuCI.form.DynamicList.html#value">value
</a></li>
701 <li data-name=
"LuCI.form.DynamicList#write"><a href=
"LuCI.form.DynamicList.html#write">write
</a></li>
704 <ul class=
"events itemMembers">
709 <li class=
"item" data-name=
"LuCI.form.FileUpload">
711 <a href=
"LuCI.form.FileUpload.html">LuCI.form.FileUpload
</a>
714 <ul class=
"members itemMembers">
716 <span class=
"subtitle">Members
</span>
718 <li data-name=
"LuCI.form.FileUpload##enable_remove"><a href=
"LuCI.form.FileUpload.html#enable_remove">enable_remove
</a></li>
720 <li data-name=
"LuCI.form.FileUpload##enable_upload"><a href=
"LuCI.form.FileUpload.html#enable_upload">enable_upload
</a></li>
722 <li data-name=
"LuCI.form.FileUpload##root_directory"><a href=
"LuCI.form.FileUpload.html#root_directory">root_directory
</a></li>
724 <li data-name=
"LuCI.form.FileUpload##show_hidden"><a href=
"LuCI.form.FileUpload.html#show_hidden">show_hidden
</a></li>
726 <li data-name=
"LuCI.form.FileUpload#datatype"><a href=
"LuCI.form.FileUpload.html#datatype">datatype
</a></li>
728 <li data-name=
"LuCI.form.FileUpload#default"><a href=
"LuCI.form.FileUpload.html#default">default
</a></li>
730 <li data-name=
"LuCI.form.FileUpload#editable"><a href=
"LuCI.form.FileUpload.html#editable">editable
</a></li>
732 <li data-name=
"LuCI.form.FileUpload#modalonly"><a href=
"LuCI.form.FileUpload.html#modalonly">modalonly
</a></li>
734 <li data-name=
"LuCI.form.FileUpload#onchange"><a href=
"LuCI.form.FileUpload.html#onchange">onchange
</a></li>
736 <li data-name=
"LuCI.form.FileUpload#optional"><a href=
"LuCI.form.FileUpload.html#optional">optional
</a></li>
738 <li data-name=
"LuCI.form.FileUpload#password"><a href=
"LuCI.form.FileUpload.html#password">password
</a></li>
740 <li data-name=
"LuCI.form.FileUpload#placeholder"><a href=
"LuCI.form.FileUpload.html#placeholder">placeholder
</a></li>
742 <li data-name=
"LuCI.form.FileUpload#readonly"><a href=
"LuCI.form.FileUpload.html#readonly">readonly
</a></li>
744 <li data-name=
"LuCI.form.FileUpload#retain"><a href=
"LuCI.form.FileUpload.html#retain">retain
</a></li>
746 <li data-name=
"LuCI.form.FileUpload#rmempty"><a href=
"LuCI.form.FileUpload.html#rmempty">rmempty
</a></li>
748 <li data-name=
"LuCI.form.FileUpload#uciconfig"><a href=
"LuCI.form.FileUpload.html#uciconfig">uciconfig
</a></li>
750 <li data-name=
"LuCI.form.FileUpload#ucioption"><a href=
"LuCI.form.FileUpload.html#ucioption">ucioption
</a></li>
752 <li data-name=
"LuCI.form.FileUpload#ucisection"><a href=
"LuCI.form.FileUpload.html#ucisection">ucisection
</a></li>
754 <li data-name=
"LuCI.form.FileUpload#validate"><a href=
"LuCI.form.FileUpload.html#validate">validate
</a></li>
756 <li data-name=
"LuCI.form.FileUpload#width"><a href=
"LuCI.form.FileUpload.html#width">width
</a></li>
759 <ul class=
"typedefs itemMembers">
762 <ul class=
"typedefs itemMembers">
765 <ul class=
"methods itemMembers">
767 <span class=
"subtitle">Methods
</span>
769 <li data-name=
"LuCI.form.FileUpload#append"><a href=
"LuCI.form.FileUpload.html#append">append
</a></li>
771 <li data-name=
"LuCI.form.FileUpload#cbid"><a href=
"LuCI.form.FileUpload.html#cbid">cbid
</a></li>
773 <li data-name=
"LuCI.form.FileUpload#cfgvalue"><a href=
"LuCI.form.FileUpload.html#cfgvalue">cfgvalue
</a></li>
775 <li data-name=
"LuCI.form.FileUpload#depends"><a href=
"LuCI.form.FileUpload.html#depends">depends
</a></li>
777 <li data-name=
"LuCI.form.FileUpload#formvalue"><a href=
"LuCI.form.FileUpload.html#formvalue">formvalue
</a></li>
779 <li data-name=
"LuCI.form.FileUpload#getUIElement"><a href=
"LuCI.form.FileUpload.html#getUIElement">getUIElement
</a></li>
781 <li data-name=
"LuCI.form.FileUpload#getValidationError"><a href=
"LuCI.form.FileUpload.html#getValidationError">getValidationError
</a></li>
783 <li data-name=
"LuCI.form.FileUpload#isActive"><a href=
"LuCI.form.FileUpload.html#isActive">isActive
</a></li>
785 <li data-name=
"LuCI.form.FileUpload#isValid"><a href=
"LuCI.form.FileUpload.html#isValid">isValid
</a></li>
787 <li data-name=
"LuCI.form.FileUpload#load"><a href=
"LuCI.form.FileUpload.html#load">load
</a></li>
789 <li data-name=
"LuCI.form.FileUpload#parse"><a href=
"LuCI.form.FileUpload.html#parse">parse
</a></li>
791 <li data-name=
"LuCI.form.FileUpload#remove"><a href=
"LuCI.form.FileUpload.html#remove">remove
</a></li>
793 <li data-name=
"LuCI.form.FileUpload#stripTags"><a href=
"LuCI.form.FileUpload.html#stripTags">stripTags
</a></li>
795 <li data-name=
"LuCI.form.FileUpload#textvalue"><a href=
"LuCI.form.FileUpload.html#textvalue">textvalue
</a></li>
797 <li data-name=
"LuCI.form.FileUpload#titleFn"><a href=
"LuCI.form.FileUpload.html#titleFn">titleFn
</a></li>
799 <li data-name=
"LuCI.form.FileUpload#value"><a href=
"LuCI.form.FileUpload.html#value">value
</a></li>
801 <li data-name=
"LuCI.form.FileUpload#write"><a href=
"LuCI.form.FileUpload.html#write">write
</a></li>
804 <ul class=
"events itemMembers">
809 <li class=
"item" data-name=
"LuCI.form.FlagValue">
811 <a href=
"LuCI.form.FlagValue.html">LuCI.form.FlagValue
</a>
814 <ul class=
"members itemMembers">
816 <span class=
"subtitle">Members
</span>
818 <li data-name=
"LuCI.form.FlagValue##disabled"><a href=
"LuCI.form.FlagValue.html#disabled">disabled
</a></li>
820 <li data-name=
"LuCI.form.FlagValue##enabled"><a href=
"LuCI.form.FlagValue.html#enabled">enabled
</a></li>
822 <li data-name=
"LuCI.form.FlagValue##tooltip"><a href=
"LuCI.form.FlagValue.html#tooltip">tooltip
</a></li>
824 <li data-name=
"LuCI.form.FlagValue##tooltipicon"><a href=
"LuCI.form.FlagValue.html#tooltipicon">tooltipicon
</a></li>
826 <li data-name=
"LuCI.form.FlagValue#datatype"><a href=
"LuCI.form.FlagValue.html#datatype">datatype
</a></li>
828 <li data-name=
"LuCI.form.FlagValue#default"><a href=
"LuCI.form.FlagValue.html#default">default
</a></li>
830 <li data-name=
"LuCI.form.FlagValue#editable"><a href=
"LuCI.form.FlagValue.html#editable">editable
</a></li>
832 <li data-name=
"LuCI.form.FlagValue#modalonly"><a href=
"LuCI.form.FlagValue.html#modalonly">modalonly
</a></li>
834 <li data-name=
"LuCI.form.FlagValue#onchange"><a href=
"LuCI.form.FlagValue.html#onchange">onchange
</a></li>
836 <li data-name=
"LuCI.form.FlagValue#optional"><a href=
"LuCI.form.FlagValue.html#optional">optional
</a></li>
838 <li data-name=
"LuCI.form.FlagValue#password"><a href=
"LuCI.form.FlagValue.html#password">password
</a></li>
840 <li data-name=
"LuCI.form.FlagValue#placeholder"><a href=
"LuCI.form.FlagValue.html#placeholder">placeholder
</a></li>
842 <li data-name=
"LuCI.form.FlagValue#readonly"><a href=
"LuCI.form.FlagValue.html#readonly">readonly
</a></li>
844 <li data-name=
"LuCI.form.FlagValue#retain"><a href=
"LuCI.form.FlagValue.html#retain">retain
</a></li>
846 <li data-name=
"LuCI.form.FlagValue#rmempty"><a href=
"LuCI.form.FlagValue.html#rmempty">rmempty
</a></li>
848 <li data-name=
"LuCI.form.FlagValue#uciconfig"><a href=
"LuCI.form.FlagValue.html#uciconfig">uciconfig
</a></li>
850 <li data-name=
"LuCI.form.FlagValue#ucioption"><a href=
"LuCI.form.FlagValue.html#ucioption">ucioption
</a></li>
852 <li data-name=
"LuCI.form.FlagValue#ucisection"><a href=
"LuCI.form.FlagValue.html#ucisection">ucisection
</a></li>
854 <li data-name=
"LuCI.form.FlagValue#validate"><a href=
"LuCI.form.FlagValue.html#validate">validate
</a></li>
856 <li data-name=
"LuCI.form.FlagValue#width"><a href=
"LuCI.form.FlagValue.html#width">width
</a></li>
859 <ul class=
"typedefs itemMembers">
862 <ul class=
"typedefs itemMembers">
865 <ul class=
"methods itemMembers">
867 <span class=
"subtitle">Methods
</span>
869 <li data-name=
"LuCI.form.FlagValue#append"><a href=
"LuCI.form.FlagValue.html#append">append
</a></li>
871 <li data-name=
"LuCI.form.FlagValue#cbid"><a href=
"LuCI.form.FlagValue.html#cbid">cbid
</a></li>
873 <li data-name=
"LuCI.form.FlagValue#cfgvalue"><a href=
"LuCI.form.FlagValue.html#cfgvalue">cfgvalue
</a></li>
875 <li data-name=
"LuCI.form.FlagValue#depends"><a href=
"LuCI.form.FlagValue.html#depends">depends
</a></li>
877 <li data-name=
"LuCI.form.FlagValue#formvalue"><a href=
"LuCI.form.FlagValue.html#formvalue">formvalue
</a></li>
879 <li data-name=
"LuCI.form.FlagValue#getUIElement"><a href=
"LuCI.form.FlagValue.html#getUIElement">getUIElement
</a></li>
881 <li data-name=
"LuCI.form.FlagValue#getValidationError"><a href=
"LuCI.form.FlagValue.html#getValidationError">getValidationError
</a></li>
883 <li data-name=
"LuCI.form.FlagValue#isActive"><a href=
"LuCI.form.FlagValue.html#isActive">isActive
</a></li>
885 <li data-name=
"LuCI.form.FlagValue#isValid"><a href=
"LuCI.form.FlagValue.html#isValid">isValid
</a></li>
887 <li data-name=
"LuCI.form.FlagValue#load"><a href=
"LuCI.form.FlagValue.html#load">load
</a></li>
889 <li data-name=
"LuCI.form.FlagValue#parse"><a href=
"LuCI.form.FlagValue.html#parse">parse
</a></li>
891 <li data-name=
"LuCI.form.FlagValue#remove"><a href=
"LuCI.form.FlagValue.html#remove">remove
</a></li>
893 <li data-name=
"LuCI.form.FlagValue#stripTags"><a href=
"LuCI.form.FlagValue.html#stripTags">stripTags
</a></li>
895 <li data-name=
"LuCI.form.FlagValue#textvalue"><a href=
"LuCI.form.FlagValue.html#textvalue">textvalue
</a></li>
897 <li data-name=
"LuCI.form.FlagValue#titleFn"><a href=
"LuCI.form.FlagValue.html#titleFn">titleFn
</a></li>
899 <li data-name=
"LuCI.form.FlagValue#value"><a href=
"LuCI.form.FlagValue.html#value">value
</a></li>
901 <li data-name=
"LuCI.form.FlagValue#write"><a href=
"LuCI.form.FlagValue.html#write">write
</a></li>
904 <ul class=
"events itemMembers">
909 <li class=
"item" data-name=
"LuCI.form.GridSection">
911 <a href=
"LuCI.form.GridSection.html">LuCI.form.GridSection
</a>
914 <ul class=
"members itemMembers">
916 <span class=
"subtitle">Members
</span>
918 <li data-name=
"LuCI.form.GridSection#addbtntitle"><a href=
"LuCI.form.GridSection.html#addbtntitle">addbtntitle
</a></li>
920 <li data-name=
"LuCI.form.GridSection#addremove"><a href=
"LuCI.form.GridSection.html#addremove">addremove
</a></li>
922 <li data-name=
"LuCI.form.GridSection#anonymous"><a href=
"LuCI.form.GridSection.html#anonymous">anonymous
</a></li>
924 <li data-name=
"LuCI.form.GridSection#extedit"><a href=
"LuCI.form.GridSection.html#extedit">extedit
</a></li>
926 <li data-name=
"LuCI.form.GridSection#max_cols"><a href=
"LuCI.form.GridSection.html#max_cols">max_cols
</a></li>
928 <li data-name=
"LuCI.form.GridSection#modaltitle"><a href=
"LuCI.form.GridSection.html#modaltitle">modaltitle
</a></li>
930 <li data-name=
"LuCI.form.GridSection#nodescriptions"><a href=
"LuCI.form.GridSection.html#nodescriptions">nodescriptions
</a></li>
932 <li data-name=
"LuCI.form.GridSection#parentoption"><a href=
"LuCI.form.GridSection.html#parentoption">parentoption
</a></li>
934 <li data-name=
"LuCI.form.GridSection#rowcolors"><a href=
"LuCI.form.GridSection.html#rowcolors">rowcolors
</a></li>
936 <li data-name=
"LuCI.form.GridSection#sectiontitle"><a href=
"LuCI.form.GridSection.html#sectiontitle">sectiontitle
</a></li>
938 <li data-name=
"LuCI.form.GridSection#sortable"><a href=
"LuCI.form.GridSection.html#sortable">sortable
</a></li>
940 <li data-name=
"LuCI.form.GridSection#tabbed"><a href=
"LuCI.form.GridSection.html#tabbed">tabbed
</a></li>
942 <li data-name=
"LuCI.form.GridSection#uciconfig"><a href=
"LuCI.form.GridSection.html#uciconfig">uciconfig
</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.GridSection#addModalOptions"><a href=
"LuCI.form.GridSection.html#addModalOptions">addModalOptions
</a></li>
957 <li data-name=
"LuCI.form.GridSection#append"><a href=
"LuCI.form.GridSection.html#append">append
</a></li>
959 <li data-name=
"LuCI.form.GridSection#cfgvalue"><a href=
"LuCI.form.GridSection.html#cfgvalue">cfgvalue
</a></li>
961 <li data-name=
"LuCI.form.GridSection#filter"><a href=
"LuCI.form.GridSection.html#filter">filter
</a></li>
963 <li data-name=
"LuCI.form.GridSection#formvalue"><a href=
"LuCI.form.GridSection.html#formvalue">formvalue
</a></li>
965 <li data-name=
"LuCI.form.GridSection#getOption"><a href=
"LuCI.form.GridSection.html#getOption">getOption
</a></li>
967 <li data-name=
"LuCI.form.GridSection#getUIElement"><a href=
"LuCI.form.GridSection.html#getUIElement">getUIElement
</a></li>
969 <li data-name=
"LuCI.form.GridSection#load"><a href=
"LuCI.form.GridSection.html#load">load
</a></li>
971 <li data-name=
"LuCI.form.GridSection#option"><a href=
"LuCI.form.GridSection.html#option">option
</a></li>
973 <li data-name=
"LuCI.form.GridSection#parse"><a href=
"LuCI.form.GridSection.html#parse">parse
</a></li>
975 <li data-name=
"LuCI.form.GridSection#stripTags"><a href=
"LuCI.form.GridSection.html#stripTags">stripTags
</a></li>
977 <li data-name=
"LuCI.form.GridSection#tab"><a href=
"LuCI.form.GridSection.html#tab">tab
</a></li>
979 <li data-name=
"LuCI.form.GridSection#taboption"><a href=
"LuCI.form.GridSection.html#taboption">taboption
</a></li>
981 <li data-name=
"LuCI.form.GridSection#titleFn"><a href=
"LuCI.form.GridSection.html#titleFn">titleFn
</a></li>
984 <ul class=
"events itemMembers">
989 <li class=
"item" data-name=
"LuCI.form.HiddenValue">
991 <a href=
"LuCI.form.HiddenValue.html">LuCI.form.HiddenValue
</a>
994 <ul class=
"members itemMembers">
996 <span class=
"subtitle">Members
</span>
998 <li data-name=
"LuCI.form.HiddenValue#datatype"><a href=
"LuCI.form.HiddenValue.html#datatype">datatype
</a></li>
1000 <li data-name=
"LuCI.form.HiddenValue#default"><a href=
"LuCI.form.HiddenValue.html#default">default
</a></li>
1002 <li data-name=
"LuCI.form.HiddenValue#editable"><a href=
"LuCI.form.HiddenValue.html#editable">editable
</a></li>
1004 <li data-name=
"LuCI.form.HiddenValue#modalonly"><a href=
"LuCI.form.HiddenValue.html#modalonly">modalonly
</a></li>
1006 <li data-name=
"LuCI.form.HiddenValue#onchange"><a href=
"LuCI.form.HiddenValue.html#onchange">onchange
</a></li>
1008 <li data-name=
"LuCI.form.HiddenValue#optional"><a href=
"LuCI.form.HiddenValue.html#optional">optional
</a></li>
1010 <li data-name=
"LuCI.form.HiddenValue#password"><a href=
"LuCI.form.HiddenValue.html#password">password
</a></li>
1012 <li data-name=
"LuCI.form.HiddenValue#placeholder"><a href=
"LuCI.form.HiddenValue.html#placeholder">placeholder
</a></li>
1014 <li data-name=
"LuCI.form.HiddenValue#readonly"><a href=
"LuCI.form.HiddenValue.html#readonly">readonly
</a></li>
1016 <li data-name=
"LuCI.form.HiddenValue#retain"><a href=
"LuCI.form.HiddenValue.html#retain">retain
</a></li>
1018 <li data-name=
"LuCI.form.HiddenValue#rmempty"><a href=
"LuCI.form.HiddenValue.html#rmempty">rmempty
</a></li>
1020 <li data-name=
"LuCI.form.HiddenValue#uciconfig"><a href=
"LuCI.form.HiddenValue.html#uciconfig">uciconfig
</a></li>
1022 <li data-name=
"LuCI.form.HiddenValue#ucioption"><a href=
"LuCI.form.HiddenValue.html#ucioption">ucioption
</a></li>
1024 <li data-name=
"LuCI.form.HiddenValue#ucisection"><a href=
"LuCI.form.HiddenValue.html#ucisection">ucisection
</a></li>
1026 <li data-name=
"LuCI.form.HiddenValue#validate"><a href=
"LuCI.form.HiddenValue.html#validate">validate
</a></li>
1028 <li data-name=
"LuCI.form.HiddenValue#width"><a href=
"LuCI.form.HiddenValue.html#width">width
</a></li>
1031 <ul class=
"typedefs itemMembers">
1034 <ul class=
"typedefs itemMembers">
1037 <ul class=
"methods itemMembers">
1039 <span class=
"subtitle">Methods
</span>
1041 <li data-name=
"LuCI.form.HiddenValue#append"><a href=
"LuCI.form.HiddenValue.html#append">append
</a></li>
1043 <li data-name=
"LuCI.form.HiddenValue#cbid"><a href=
"LuCI.form.HiddenValue.html#cbid">cbid
</a></li>
1045 <li data-name=
"LuCI.form.HiddenValue#cfgvalue"><a href=
"LuCI.form.HiddenValue.html#cfgvalue">cfgvalue
</a></li>
1047 <li data-name=
"LuCI.form.HiddenValue#depends"><a href=
"LuCI.form.HiddenValue.html#depends">depends
</a></li>
1049 <li data-name=
"LuCI.form.HiddenValue#formvalue"><a href=
"LuCI.form.HiddenValue.html#formvalue">formvalue
</a></li>
1051 <li data-name=
"LuCI.form.HiddenValue#getUIElement"><a href=
"LuCI.form.HiddenValue.html#getUIElement">getUIElement
</a></li>
1053 <li data-name=
"LuCI.form.HiddenValue#getValidationError"><a href=
"LuCI.form.HiddenValue.html#getValidationError">getValidationError
</a></li>
1055 <li data-name=
"LuCI.form.HiddenValue#isActive"><a href=
"LuCI.form.HiddenValue.html#isActive">isActive
</a></li>
1057 <li data-name=
"LuCI.form.HiddenValue#isValid"><a href=
"LuCI.form.HiddenValue.html#isValid">isValid
</a></li>
1059 <li data-name=
"LuCI.form.HiddenValue#load"><a href=
"LuCI.form.HiddenValue.html#load">load
</a></li>
1061 <li data-name=
"LuCI.form.HiddenValue#parse"><a href=
"LuCI.form.HiddenValue.html#parse">parse
</a></li>
1063 <li data-name=
"LuCI.form.HiddenValue#remove"><a href=
"LuCI.form.HiddenValue.html#remove">remove
</a></li>
1065 <li data-name=
"LuCI.form.HiddenValue#stripTags"><a href=
"LuCI.form.HiddenValue.html#stripTags">stripTags
</a></li>
1067 <li data-name=
"LuCI.form.HiddenValue#textvalue"><a href=
"LuCI.form.HiddenValue.html#textvalue">textvalue
</a></li>
1069 <li data-name=
"LuCI.form.HiddenValue#titleFn"><a href=
"LuCI.form.HiddenValue.html#titleFn">titleFn
</a></li>
1071 <li data-name=
"LuCI.form.HiddenValue#value"><a href=
"LuCI.form.HiddenValue.html#value">value
</a></li>
1073 <li data-name=
"LuCI.form.HiddenValue#write"><a href=
"LuCI.form.HiddenValue.html#write">write
</a></li>
1076 <ul class=
"events itemMembers">
1081 <li class=
"item" data-name=
"LuCI.form.JSONMap">
1082 <span class=
"title">
1083 <a href=
"LuCI.form.JSONMap.html">LuCI.form.JSONMap
</a>
1086 <ul class=
"members itemMembers">
1088 <span class=
"subtitle">Members
</span>
1090 <li data-name=
"LuCI.form.JSONMap#readonly"><a href=
"LuCI.form.JSONMap.html#readonly">readonly
</a></li>
1093 <ul class=
"typedefs itemMembers">
1096 <ul class=
"typedefs itemMembers">
1099 <ul class=
"methods itemMembers">
1101 <span class=
"subtitle">Methods
</span>
1103 <li data-name=
"LuCI.form.JSONMap#append"><a href=
"LuCI.form.JSONMap.html#append">append
</a></li>
1105 <li data-name=
"LuCI.form.JSONMap#chain"><a href=
"LuCI.form.JSONMap.html#chain">chain
</a></li>
1107 <li data-name=
"LuCI.form.JSONMap#findElement"><a href=
"LuCI.form.JSONMap.html#findElement">findElement
</a></li>
1109 <li data-name=
"LuCI.form.JSONMap#findElements"><a href=
"LuCI.form.JSONMap.html#findElements">findElements
</a></li>
1111 <li data-name=
"LuCI.form.JSONMap#load"><a href=
"LuCI.form.JSONMap.html#load">load
</a></li>
1113 <li data-name=
"LuCI.form.JSONMap#lookupOption"><a href=
"LuCI.form.JSONMap.html#lookupOption">lookupOption
</a></li>
1115 <li data-name=
"LuCI.form.JSONMap#parse"><a href=
"LuCI.form.JSONMap.html#parse">parse
</a></li>
1117 <li data-name=
"LuCI.form.JSONMap#render"><a href=
"LuCI.form.JSONMap.html#render">render
</a></li>
1119 <li data-name=
"LuCI.form.JSONMap#reset"><a href=
"LuCI.form.JSONMap.html#reset">reset
</a></li>
1121 <li data-name=
"LuCI.form.JSONMap#save"><a href=
"LuCI.form.JSONMap.html#save">save
</a></li>
1123 <li data-name=
"LuCI.form.JSONMap#section"><a href=
"LuCI.form.JSONMap.html#section">section
</a></li>
1125 <li data-name=
"LuCI.form.JSONMap#stripTags"><a href=
"LuCI.form.JSONMap.html#stripTags">stripTags
</a></li>
1127 <li data-name=
"LuCI.form.JSONMap#titleFn"><a href=
"LuCI.form.JSONMap.html#titleFn">titleFn
</a></li>
1130 <ul class=
"events itemMembers">
1135 <li class=
"item" data-name=
"LuCI.form.ListValue">
1136 <span class=
"title">
1137 <a href=
"LuCI.form.ListValue.html">LuCI.form.ListValue
</a>
1140 <ul class=
"members itemMembers">
1142 <span class=
"subtitle">Members
</span>
1144 <li data-name=
"LuCI.form.ListValue##orientation"><a href=
"LuCI.form.ListValue.html#orientation">orientation
</a></li>
1146 <li data-name=
"LuCI.form.ListValue##size"><a href=
"LuCI.form.ListValue.html#size">size
</a></li>
1148 <li data-name=
"LuCI.form.ListValue##widget"><a href=
"LuCI.form.ListValue.html#widget">widget
</a></li>
1150 <li data-name=
"LuCI.form.ListValue#datatype"><a href=
"LuCI.form.ListValue.html#datatype">datatype
</a></li>
1152 <li data-name=
"LuCI.form.ListValue#default"><a href=
"LuCI.form.ListValue.html#default">default
</a></li>
1154 <li data-name=
"LuCI.form.ListValue#editable"><a href=
"LuCI.form.ListValue.html#editable">editable
</a></li>
1156 <li data-name=
"LuCI.form.ListValue#modalonly"><a href=
"LuCI.form.ListValue.html#modalonly">modalonly
</a></li>
1158 <li data-name=
"LuCI.form.ListValue#onchange"><a href=
"LuCI.form.ListValue.html#onchange">onchange
</a></li>
1160 <li data-name=
"LuCI.form.ListValue#optional"><a href=
"LuCI.form.ListValue.html#optional">optional
</a></li>
1162 <li data-name=
"LuCI.form.ListValue#password"><a href=
"LuCI.form.ListValue.html#password">password
</a></li>
1164 <li data-name=
"LuCI.form.ListValue#placeholder"><a href=
"LuCI.form.ListValue.html#placeholder">placeholder
</a></li>
1166 <li data-name=
"LuCI.form.ListValue#readonly"><a href=
"LuCI.form.ListValue.html#readonly">readonly
</a></li>
1168 <li data-name=
"LuCI.form.ListValue#retain"><a href=
"LuCI.form.ListValue.html#retain">retain
</a></li>
1170 <li data-name=
"LuCI.form.ListValue#rmempty"><a href=
"LuCI.form.ListValue.html#rmempty">rmempty
</a></li>
1172 <li data-name=
"LuCI.form.ListValue#uciconfig"><a href=
"LuCI.form.ListValue.html#uciconfig">uciconfig
</a></li>
1174 <li data-name=
"LuCI.form.ListValue#ucioption"><a href=
"LuCI.form.ListValue.html#ucioption">ucioption
</a></li>
1176 <li data-name=
"LuCI.form.ListValue#ucisection"><a href=
"LuCI.form.ListValue.html#ucisection">ucisection
</a></li>
1178 <li data-name=
"LuCI.form.ListValue#validate"><a href=
"LuCI.form.ListValue.html#validate">validate
</a></li>
1180 <li data-name=
"LuCI.form.ListValue#width"><a href=
"LuCI.form.ListValue.html#width">width
</a></li>
1183 <ul class=
"typedefs itemMembers">
1186 <ul class=
"typedefs itemMembers">
1189 <ul class=
"methods itemMembers">
1191 <span class=
"subtitle">Methods
</span>
1193 <li data-name=
"LuCI.form.ListValue#append"><a href=
"LuCI.form.ListValue.html#append">append
</a></li>
1195 <li data-name=
"LuCI.form.ListValue#cbid"><a href=
"LuCI.form.ListValue.html#cbid">cbid
</a></li>
1197 <li data-name=
"LuCI.form.ListValue#cfgvalue"><a href=
"LuCI.form.ListValue.html#cfgvalue">cfgvalue
</a></li>
1199 <li data-name=
"LuCI.form.ListValue#depends"><a href=
"LuCI.form.ListValue.html#depends">depends
</a></li>
1201 <li data-name=
"LuCI.form.ListValue#formvalue"><a href=
"LuCI.form.ListValue.html#formvalue">formvalue
</a></li>
1203 <li data-name=
"LuCI.form.ListValue#getUIElement"><a href=
"LuCI.form.ListValue.html#getUIElement">getUIElement
</a></li>
1205 <li data-name=
"LuCI.form.ListValue#getValidationError"><a href=
"LuCI.form.ListValue.html#getValidationError">getValidationError
</a></li>
1207 <li data-name=
"LuCI.form.ListValue#isActive"><a href=
"LuCI.form.ListValue.html#isActive">isActive
</a></li>
1209 <li data-name=
"LuCI.form.ListValue#isValid"><a href=
"LuCI.form.ListValue.html#isValid">isValid
</a></li>
1211 <li data-name=
"LuCI.form.ListValue#load"><a href=
"LuCI.form.ListValue.html#load">load
</a></li>
1213 <li data-name=
"LuCI.form.ListValue#parse"><a href=
"LuCI.form.ListValue.html#parse">parse
</a></li>
1215 <li data-name=
"LuCI.form.ListValue#remove"><a href=
"LuCI.form.ListValue.html#remove">remove
</a></li>
1217 <li data-name=
"LuCI.form.ListValue#stripTags"><a href=
"LuCI.form.ListValue.html#stripTags">stripTags
</a></li>
1219 <li data-name=
"LuCI.form.ListValue#textvalue"><a href=
"LuCI.form.ListValue.html#textvalue">textvalue
</a></li>
1221 <li data-name=
"LuCI.form.ListValue#titleFn"><a href=
"LuCI.form.ListValue.html#titleFn">titleFn
</a></li>
1223 <li data-name=
"LuCI.form.ListValue#value"><a href=
"LuCI.form.ListValue.html#value">value
</a></li>
1225 <li data-name=
"LuCI.form.ListValue#write"><a href=
"LuCI.form.ListValue.html#write">write
</a></li>
1228 <ul class=
"events itemMembers">
1233 <li class=
"item" data-name=
"LuCI.form.Map">
1234 <span class=
"title">
1235 <a href=
"LuCI.form.Map.html">LuCI.form.Map
</a>
1238 <ul class=
"members itemMembers">
1240 <span class=
"subtitle">Members
</span>
1242 <li data-name=
"LuCI.form.Map##readonly"><a href=
"LuCI.form.Map.html#readonly">readonly
</a></li>
1245 <ul class=
"typedefs itemMembers">
1248 <ul class=
"typedefs itemMembers">
1251 <ul class=
"methods itemMembers">
1253 <span class=
"subtitle">Methods
</span>
1255 <li data-name=
"LuCI.form.Map#append"><a href=
"LuCI.form.Map.html#append">append
</a></li>
1257 <li data-name=
"LuCI.form.Map#chain"><a href=
"LuCI.form.Map.html#chain">chain
</a></li>
1259 <li data-name=
"LuCI.form.Map#findElement"><a href=
"LuCI.form.Map.html#findElement">findElement
</a></li>
1261 <li data-name=
"LuCI.form.Map#findElements"><a href=
"LuCI.form.Map.html#findElements">findElements
</a></li>
1263 <li data-name=
"LuCI.form.Map#load"><a href=
"LuCI.form.Map.html#load">load
</a></li>
1265 <li data-name=
"LuCI.form.Map#lookupOption"><a href=
"LuCI.form.Map.html#lookupOption">lookupOption
</a></li>
1267 <li data-name=
"LuCI.form.Map#parse"><a href=
"LuCI.form.Map.html#parse">parse
</a></li>
1269 <li data-name=
"LuCI.form.Map#render"><a href=
"LuCI.form.Map.html#render">render
</a></li>
1271 <li data-name=
"LuCI.form.Map#reset"><a href=
"LuCI.form.Map.html#reset">reset
</a></li>
1273 <li data-name=
"LuCI.form.Map#save"><a href=
"LuCI.form.Map.html#save">save
</a></li>
1275 <li data-name=
"LuCI.form.Map#section"><a href=
"LuCI.form.Map.html#section">section
</a></li>
1277 <li data-name=
"LuCI.form.Map#stripTags"><a href=
"LuCI.form.Map.html#stripTags">stripTags
</a></li>
1279 <li data-name=
"LuCI.form.Map#titleFn"><a href=
"LuCI.form.Map.html#titleFn">titleFn
</a></li>
1282 <ul class=
"events itemMembers">
1287 <li class=
"item" data-name=
"LuCI.form.MultiValue">
1288 <span class=
"title">
1289 <a href=
"LuCI.form.MultiValue.html">LuCI.form.MultiValue
</a>
1292 <ul class=
"members itemMembers">
1294 <span class=
"subtitle">Members
</span>
1296 <li data-name=
"LuCI.form.MultiValue##display_size"><a href=
"LuCI.form.MultiValue.html#display_size">display_size
</a></li>
1298 <li data-name=
"LuCI.form.MultiValue##dropdown_size"><a href=
"LuCI.form.MultiValue.html#dropdown_size">dropdown_size
</a></li>
1300 <li data-name=
"LuCI.form.MultiValue#datatype"><a href=
"LuCI.form.MultiValue.html#datatype">datatype
</a></li>
1302 <li data-name=
"LuCI.form.MultiValue#default"><a href=
"LuCI.form.MultiValue.html#default">default
</a></li>
1304 <li data-name=
"LuCI.form.MultiValue#editable"><a href=
"LuCI.form.MultiValue.html#editable">editable
</a></li>
1306 <li data-name=
"LuCI.form.MultiValue#modalonly"><a href=
"LuCI.form.MultiValue.html#modalonly">modalonly
</a></li>
1308 <li data-name=
"LuCI.form.MultiValue#onchange"><a href=
"LuCI.form.MultiValue.html#onchange">onchange
</a></li>
1310 <li data-name=
"LuCI.form.MultiValue#optional"><a href=
"LuCI.form.MultiValue.html#optional">optional
</a></li>
1312 <li data-name=
"LuCI.form.MultiValue#password"><a href=
"LuCI.form.MultiValue.html#password">password
</a></li>
1314 <li data-name=
"LuCI.form.MultiValue#placeholder"><a href=
"LuCI.form.MultiValue.html#placeholder">placeholder
</a></li>
1316 <li data-name=
"LuCI.form.MultiValue#readonly"><a href=
"LuCI.form.MultiValue.html#readonly">readonly
</a></li>
1318 <li data-name=
"LuCI.form.MultiValue#retain"><a href=
"LuCI.form.MultiValue.html#retain">retain
</a></li>
1320 <li data-name=
"LuCI.form.MultiValue#rmempty"><a href=
"LuCI.form.MultiValue.html#rmempty">rmempty
</a></li>
1322 <li data-name=
"LuCI.form.MultiValue#uciconfig"><a href=
"LuCI.form.MultiValue.html#uciconfig">uciconfig
</a></li>
1324 <li data-name=
"LuCI.form.MultiValue#ucioption"><a href=
"LuCI.form.MultiValue.html#ucioption">ucioption
</a></li>
1326 <li data-name=
"LuCI.form.MultiValue#ucisection"><a href=
"LuCI.form.MultiValue.html#ucisection">ucisection
</a></li>
1328 <li data-name=
"LuCI.form.MultiValue#validate"><a href=
"LuCI.form.MultiValue.html#validate">validate
</a></li>
1330 <li data-name=
"LuCI.form.MultiValue#width"><a href=
"LuCI.form.MultiValue.html#width">width
</a></li>
1333 <ul class=
"typedefs itemMembers">
1336 <ul class=
"typedefs itemMembers">
1339 <ul class=
"methods itemMembers">
1341 <span class=
"subtitle">Methods
</span>
1343 <li data-name=
"LuCI.form.MultiValue#append"><a href=
"LuCI.form.MultiValue.html#append">append
</a></li>
1345 <li data-name=
"LuCI.form.MultiValue#cbid"><a href=
"LuCI.form.MultiValue.html#cbid">cbid
</a></li>
1347 <li data-name=
"LuCI.form.MultiValue#cfgvalue"><a href=
"LuCI.form.MultiValue.html#cfgvalue">cfgvalue
</a></li>
1349 <li data-name=
"LuCI.form.MultiValue#depends"><a href=
"LuCI.form.MultiValue.html#depends">depends
</a></li>
1351 <li data-name=
"LuCI.form.MultiValue#formvalue"><a href=
"LuCI.form.MultiValue.html#formvalue">formvalue
</a></li>
1353 <li data-name=
"LuCI.form.MultiValue#getUIElement"><a href=
"LuCI.form.MultiValue.html#getUIElement">getUIElement
</a></li>
1355 <li data-name=
"LuCI.form.MultiValue#getValidationError"><a href=
"LuCI.form.MultiValue.html#getValidationError">getValidationError
</a></li>
1357 <li data-name=
"LuCI.form.MultiValue#isActive"><a href=
"LuCI.form.MultiValue.html#isActive">isActive
</a></li>
1359 <li data-name=
"LuCI.form.MultiValue#isValid"><a href=
"LuCI.form.MultiValue.html#isValid">isValid
</a></li>
1361 <li data-name=
"LuCI.form.MultiValue#load"><a href=
"LuCI.form.MultiValue.html#load">load
</a></li>
1363 <li data-name=
"LuCI.form.MultiValue#parse"><a href=
"LuCI.form.MultiValue.html#parse">parse
</a></li>
1365 <li data-name=
"LuCI.form.MultiValue#remove"><a href=
"LuCI.form.MultiValue.html#remove">remove
</a></li>
1367 <li data-name=
"LuCI.form.MultiValue#stripTags"><a href=
"LuCI.form.MultiValue.html#stripTags">stripTags
</a></li>
1369 <li data-name=
"LuCI.form.MultiValue#textvalue"><a href=
"LuCI.form.MultiValue.html#textvalue">textvalue
</a></li>
1371 <li data-name=
"LuCI.form.MultiValue#titleFn"><a href=
"LuCI.form.MultiValue.html#titleFn">titleFn
</a></li>
1373 <li data-name=
"LuCI.form.MultiValue#value"><a href=
"LuCI.form.MultiValue.html#value">value
</a></li>
1375 <li data-name=
"LuCI.form.MultiValue#write"><a href=
"LuCI.form.MultiValue.html#write">write
</a></li>
1378 <ul class=
"events itemMembers">
1383 <li class=
"item" data-name=
"LuCI.form.NamedSection">
1384 <span class=
"title">
1385 <a href=
"LuCI.form.NamedSection.html">LuCI.form.NamedSection
</a>
1388 <ul class=
"members itemMembers">
1390 <span class=
"subtitle">Members
</span>
1392 <li data-name=
"LuCI.form.NamedSection##addremove"><a href=
"LuCI.form.NamedSection.html#addremove">addremove
</a></li>
1394 <li data-name=
"LuCI.form.NamedSection##uciconfig"><a href=
"LuCI.form.NamedSection.html#uciconfig">uciconfig
</a></li>
1396 <li data-name=
"LuCI.form.NamedSection#parentoption"><a href=
"LuCI.form.NamedSection.html#parentoption">parentoption
</a></li>
1399 <ul class=
"typedefs itemMembers">
1402 <ul class=
"typedefs itemMembers">
1405 <ul class=
"methods itemMembers">
1407 <span class=
"subtitle">Methods
</span>
1409 <li data-name=
"LuCI.form.NamedSection#append"><a href=
"LuCI.form.NamedSection.html#append">append
</a></li>
1411 <li data-name=
"LuCI.form.NamedSection#cfgsections"><a href=
"LuCI.form.NamedSection.html#cfgsections">cfgsections
</a></li>
1413 <li data-name=
"LuCI.form.NamedSection#cfgvalue"><a href=
"LuCI.form.NamedSection.html#cfgvalue">cfgvalue
</a></li>
1415 <li data-name=
"LuCI.form.NamedSection#filter"><a href=
"LuCI.form.NamedSection.html#filter">filter
</a></li>
1417 <li data-name=
"LuCI.form.NamedSection#formvalue"><a href=
"LuCI.form.NamedSection.html#formvalue">formvalue
</a></li>
1419 <li data-name=
"LuCI.form.NamedSection#getOption"><a href=
"LuCI.form.NamedSection.html#getOption">getOption
</a></li>
1421 <li data-name=
"LuCI.form.NamedSection#getUIElement"><a href=
"LuCI.form.NamedSection.html#getUIElement">getUIElement
</a></li>
1423 <li data-name=
"LuCI.form.NamedSection#load"><a href=
"LuCI.form.NamedSection.html#load">load
</a></li>
1425 <li data-name=
"LuCI.form.NamedSection#option"><a href=
"LuCI.form.NamedSection.html#option">option
</a></li>
1427 <li data-name=
"LuCI.form.NamedSection#parse"><a href=
"LuCI.form.NamedSection.html#parse">parse
</a></li>
1429 <li data-name=
"LuCI.form.NamedSection#render"><a href=
"LuCI.form.NamedSection.html#render">render
</a></li>
1431 <li data-name=
"LuCI.form.NamedSection#stripTags"><a href=
"LuCI.form.NamedSection.html#stripTags">stripTags
</a></li>
1433 <li data-name=
"LuCI.form.NamedSection#tab"><a href=
"LuCI.form.NamedSection.html#tab">tab
</a></li>
1435 <li data-name=
"LuCI.form.NamedSection#taboption"><a href=
"LuCI.form.NamedSection.html#taboption">taboption
</a></li>
1437 <li data-name=
"LuCI.form.NamedSection#titleFn"><a href=
"LuCI.form.NamedSection.html#titleFn">titleFn
</a></li>
1440 <ul class=
"events itemMembers">
1445 <li class=
"item" data-name=
"LuCI.form.SectionValue">
1446 <span class=
"title">
1447 <a href=
"LuCI.form.SectionValue.html">LuCI.form.SectionValue
</a>
1450 <ul class=
"members itemMembers">
1452 <span class=
"subtitle">Members
</span>
1454 <li data-name=
"LuCI.form.SectionValue##subsection"><a href=
"LuCI.form.SectionValue.html#subsection">subsection
</a></li>
1456 <li data-name=
"LuCI.form.SectionValue#datatype"><a href=
"LuCI.form.SectionValue.html#datatype">datatype
</a></li>
1458 <li data-name=
"LuCI.form.SectionValue#default"><a href=
"LuCI.form.SectionValue.html#default">default
</a></li>
1460 <li data-name=
"LuCI.form.SectionValue#editable"><a href=
"LuCI.form.SectionValue.html#editable">editable
</a></li>
1462 <li data-name=
"LuCI.form.SectionValue#modalonly"><a href=
"LuCI.form.SectionValue.html#modalonly">modalonly
</a></li>
1464 <li data-name=
"LuCI.form.SectionValue#onchange"><a href=
"LuCI.form.SectionValue.html#onchange">onchange
</a></li>
1466 <li data-name=
"LuCI.form.SectionValue#optional"><a href=
"LuCI.form.SectionValue.html#optional">optional
</a></li>
1468 <li data-name=
"LuCI.form.SectionValue#password"><a href=
"LuCI.form.SectionValue.html#password">password
</a></li>
1470 <li data-name=
"LuCI.form.SectionValue#placeholder"><a href=
"LuCI.form.SectionValue.html#placeholder">placeholder
</a></li>
1472 <li data-name=
"LuCI.form.SectionValue#readonly"><a href=
"LuCI.form.SectionValue.html#readonly">readonly
</a></li>
1474 <li data-name=
"LuCI.form.SectionValue#retain"><a href=
"LuCI.form.SectionValue.html#retain">retain
</a></li>
1476 <li data-name=
"LuCI.form.SectionValue#rmempty"><a href=
"LuCI.form.SectionValue.html#rmempty">rmempty
</a></li>
1478 <li data-name=
"LuCI.form.SectionValue#uciconfig"><a href=
"LuCI.form.SectionValue.html#uciconfig">uciconfig
</a></li>
1480 <li data-name=
"LuCI.form.SectionValue#ucioption"><a href=
"LuCI.form.SectionValue.html#ucioption">ucioption
</a></li>
1482 <li data-name=
"LuCI.form.SectionValue#ucisection"><a href=
"LuCI.form.SectionValue.html#ucisection">ucisection
</a></li>
1484 <li data-name=
"LuCI.form.SectionValue#validate"><a href=
"LuCI.form.SectionValue.html#validate">validate
</a></li>
1486 <li data-name=
"LuCI.form.SectionValue#width"><a href=
"LuCI.form.SectionValue.html#width">width
</a></li>
1489 <ul class=
"typedefs itemMembers">
1492 <ul class=
"typedefs itemMembers">
1495 <ul class=
"methods itemMembers">
1497 <span class=
"subtitle">Methods
</span>
1499 <li data-name=
"LuCI.form.SectionValue#append"><a href=
"LuCI.form.SectionValue.html#append">append
</a></li>
1501 <li data-name=
"LuCI.form.SectionValue#cbid"><a href=
"LuCI.form.SectionValue.html#cbid">cbid
</a></li>
1503 <li data-name=
"LuCI.form.SectionValue#cfgvalue"><a href=
"LuCI.form.SectionValue.html#cfgvalue">cfgvalue
</a></li>
1505 <li data-name=
"LuCI.form.SectionValue#depends"><a href=
"LuCI.form.SectionValue.html#depends">depends
</a></li>
1507 <li data-name=
"LuCI.form.SectionValue#formvalue"><a href=
"LuCI.form.SectionValue.html#formvalue">formvalue
</a></li>
1509 <li data-name=
"LuCI.form.SectionValue#getUIElement"><a href=
"LuCI.form.SectionValue.html#getUIElement">getUIElement
</a></li>
1511 <li data-name=
"LuCI.form.SectionValue#getValidationError"><a href=
"LuCI.form.SectionValue.html#getValidationError">getValidationError
</a></li>
1513 <li data-name=
"LuCI.form.SectionValue#isActive"><a href=
"LuCI.form.SectionValue.html#isActive">isActive
</a></li>
1515 <li data-name=
"LuCI.form.SectionValue#isValid"><a href=
"LuCI.form.SectionValue.html#isValid">isValid
</a></li>
1517 <li data-name=
"LuCI.form.SectionValue#load"><a href=
"LuCI.form.SectionValue.html#load">load
</a></li>
1519 <li data-name=
"LuCI.form.SectionValue#parse"><a href=
"LuCI.form.SectionValue.html#parse">parse
</a></li>
1521 <li data-name=
"LuCI.form.SectionValue#remove"><a href=
"LuCI.form.SectionValue.html#remove">remove
</a></li>
1523 <li data-name=
"LuCI.form.SectionValue#stripTags"><a href=
"LuCI.form.SectionValue.html#stripTags">stripTags
</a></li>
1525 <li data-name=
"LuCI.form.SectionValue#textvalue"><a href=
"LuCI.form.SectionValue.html#textvalue">textvalue
</a></li>
1527 <li data-name=
"LuCI.form.SectionValue#titleFn"><a href=
"LuCI.form.SectionValue.html#titleFn">titleFn
</a></li>
1529 <li data-name=
"LuCI.form.SectionValue#value"><a href=
"LuCI.form.SectionValue.html#value">value
</a></li>
1531 <li data-name=
"LuCI.form.SectionValue#write"><a href=
"LuCI.form.SectionValue.html#write">write
</a></li>
1534 <ul class=
"events itemMembers">
1539 <li class=
"item" data-name=
"LuCI.form.TableSection">
1540 <span class=
"title">
1541 <a href=
"LuCI.form.TableSection.html">LuCI.form.TableSection
</a>
1544 <ul class=
"members itemMembers">
1546 <span class=
"subtitle">Members
</span>
1548 <li data-name=
"LuCI.form.TableSection##extedit"><a href=
"LuCI.form.TableSection.html#extedit">extedit
</a></li>
1550 <li data-name=
"LuCI.form.TableSection##max_cols"><a href=
"LuCI.form.TableSection.html#max_cols">max_cols
</a></li>
1552 <li data-name=
"LuCI.form.TableSection##modaltitle"><a href=
"LuCI.form.TableSection.html#modaltitle">modaltitle
</a></li>
1554 <li data-name=
"LuCI.form.TableSection##nodescriptions"><a href=
"LuCI.form.TableSection.html#nodescriptions">nodescriptions
</a></li>
1556 <li data-name=
"LuCI.form.TableSection##rowcolors"><a href=
"LuCI.form.TableSection.html#rowcolors">rowcolors
</a></li>
1558 <li data-name=
"LuCI.form.TableSection##sectiontitle"><a href=
"LuCI.form.TableSection.html#sectiontitle">sectiontitle
</a></li>
1560 <li data-name=
"LuCI.form.TableSection##sortable"><a href=
"LuCI.form.TableSection.html#sortable">sortable
</a></li>
1562 <li data-name=
"LuCI.form.TableSection#addbtntitle"><a href=
"LuCI.form.TableSection.html#addbtntitle">addbtntitle
</a></li>
1564 <li data-name=
"LuCI.form.TableSection#addremove"><a href=
"LuCI.form.TableSection.html#addremove">addremove
</a></li>
1566 <li data-name=
"LuCI.form.TableSection#anonymous"><a href=
"LuCI.form.TableSection.html#anonymous">anonymous
</a></li>
1568 <li data-name=
"LuCI.form.TableSection#parentoption"><a href=
"LuCI.form.TableSection.html#parentoption">parentoption
</a></li>
1570 <li data-name=
"LuCI.form.TableSection#tabbed"><a href=
"LuCI.form.TableSection.html#tabbed">tabbed
</a></li>
1572 <li data-name=
"LuCI.form.TableSection#uciconfig"><a href=
"LuCI.form.TableSection.html#uciconfig">uciconfig
</a></li>
1575 <ul class=
"typedefs itemMembers">
1578 <ul class=
"typedefs itemMembers">
1581 <ul class=
"methods itemMembers">
1583 <span class=
"subtitle">Methods
</span>
1585 <li data-name=
"LuCI.form.TableSection#addModalOptions"><a href=
"LuCI.form.TableSection.html#addModalOptions">addModalOptions
</a></li>
1587 <li data-name=
"LuCI.form.TableSection#append"><a href=
"LuCI.form.TableSection.html#append">append
</a></li>
1589 <li data-name=
"LuCI.form.TableSection#cfgvalue"><a href=
"LuCI.form.TableSection.html#cfgvalue">cfgvalue
</a></li>
1591 <li data-name=
"LuCI.form.TableSection#filter"><a href=
"LuCI.form.TableSection.html#filter">filter
</a></li>
1593 <li data-name=
"LuCI.form.TableSection#formvalue"><a href=
"LuCI.form.TableSection.html#formvalue">formvalue
</a></li>
1595 <li data-name=
"LuCI.form.TableSection#getOption"><a href=
"LuCI.form.TableSection.html#getOption">getOption
</a></li>
1597 <li data-name=
"LuCI.form.TableSection#getUIElement"><a href=
"LuCI.form.TableSection.html#getUIElement">getUIElement
</a></li>
1599 <li data-name=
"LuCI.form.TableSection#load"><a href=
"LuCI.form.TableSection.html#load">load
</a></li>
1601 <li data-name=
"LuCI.form.TableSection#option"><a href=
"LuCI.form.TableSection.html#option">option
</a></li>
1603 <li data-name=
"LuCI.form.TableSection#parse"><a href=
"LuCI.form.TableSection.html#parse">parse
</a></li>
1605 <li data-name=
"LuCI.form.TableSection#stripTags"><a href=
"LuCI.form.TableSection.html#stripTags">stripTags
</a></li>
1607 <li data-name=
"LuCI.form.TableSection#tab"><a href=
"LuCI.form.TableSection.html#tab">tab
</a></li>
1609 <li data-name=
"LuCI.form.TableSection#taboption"><a href=
"LuCI.form.TableSection.html#taboption">taboption
</a></li>
1611 <li data-name=
"LuCI.form.TableSection#titleFn"><a href=
"LuCI.form.TableSection.html#titleFn">titleFn
</a></li>
1614 <ul class=
"events itemMembers">
1619 <li class=
"item" data-name=
"LuCI.form.TextValue">
1620 <span class=
"title">
1621 <a href=
"LuCI.form.TextValue.html">LuCI.form.TextValue
</a>
1624 <ul class=
"members itemMembers">
1626 <span class=
"subtitle">Members
</span>
1628 <li data-name=
"LuCI.form.TextValue##cols"><a href=
"LuCI.form.TextValue.html#cols">cols
</a></li>
1630 <li data-name=
"LuCI.form.TextValue##monospace"><a href=
"LuCI.form.TextValue.html#monospace">monospace
</a></li>
1632 <li data-name=
"LuCI.form.TextValue##rows"><a href=
"LuCI.form.TextValue.html#rows">rows
</a></li>
1634 <li data-name=
"LuCI.form.TextValue##wrap"><a href=
"LuCI.form.TextValue.html#wrap">wrap
</a></li>
1636 <li data-name=
"LuCI.form.TextValue#datatype"><a href=
"LuCI.form.TextValue.html#datatype">datatype
</a></li>
1638 <li data-name=
"LuCI.form.TextValue#default"><a href=
"LuCI.form.TextValue.html#default">default
</a></li>
1640 <li data-name=
"LuCI.form.TextValue#editable"><a href=
"LuCI.form.TextValue.html#editable">editable
</a></li>
1642 <li data-name=
"LuCI.form.TextValue#modalonly"><a href=
"LuCI.form.TextValue.html#modalonly">modalonly
</a></li>
1644 <li data-name=
"LuCI.form.TextValue#onchange"><a href=
"LuCI.form.TextValue.html#onchange">onchange
</a></li>
1646 <li data-name=
"LuCI.form.TextValue#optional"><a href=
"LuCI.form.TextValue.html#optional">optional
</a></li>
1648 <li data-name=
"LuCI.form.TextValue#password"><a href=
"LuCI.form.TextValue.html#password">password
</a></li>
1650 <li data-name=
"LuCI.form.TextValue#placeholder"><a href=
"LuCI.form.TextValue.html#placeholder">placeholder
</a></li>
1652 <li data-name=
"LuCI.form.TextValue#readonly"><a href=
"LuCI.form.TextValue.html#readonly">readonly
</a></li>
1654 <li data-name=
"LuCI.form.TextValue#retain"><a href=
"LuCI.form.TextValue.html#retain">retain
</a></li>
1656 <li data-name=
"LuCI.form.TextValue#rmempty"><a href=
"LuCI.form.TextValue.html#rmempty">rmempty
</a></li>
1658 <li data-name=
"LuCI.form.TextValue#uciconfig"><a href=
"LuCI.form.TextValue.html#uciconfig">uciconfig
</a></li>
1660 <li data-name=
"LuCI.form.TextValue#ucioption"><a href=
"LuCI.form.TextValue.html#ucioption">ucioption
</a></li>
1662 <li data-name=
"LuCI.form.TextValue#ucisection"><a href=
"LuCI.form.TextValue.html#ucisection">ucisection
</a></li>
1664 <li data-name=
"LuCI.form.TextValue#validate"><a href=
"LuCI.form.TextValue.html#validate">validate
</a></li>
1666 <li data-name=
"LuCI.form.TextValue#width"><a href=
"LuCI.form.TextValue.html#width">width
</a></li>
1669 <ul class=
"typedefs itemMembers">
1672 <ul class=
"typedefs itemMembers">
1675 <ul class=
"methods itemMembers">
1677 <span class=
"subtitle">Methods
</span>
1679 <li data-name=
"LuCI.form.TextValue#append"><a href=
"LuCI.form.TextValue.html#append">append
</a></li>
1681 <li data-name=
"LuCI.form.TextValue#cbid"><a href=
"LuCI.form.TextValue.html#cbid">cbid
</a></li>
1683 <li data-name=
"LuCI.form.TextValue#cfgvalue"><a href=
"LuCI.form.TextValue.html#cfgvalue">cfgvalue
</a></li>
1685 <li data-name=
"LuCI.form.TextValue#depends"><a href=
"LuCI.form.TextValue.html#depends">depends
</a></li>
1687 <li data-name=
"LuCI.form.TextValue#formvalue"><a href=
"LuCI.form.TextValue.html#formvalue">formvalue
</a></li>
1689 <li data-name=
"LuCI.form.TextValue#getUIElement"><a href=
"LuCI.form.TextValue.html#getUIElement">getUIElement
</a></li>
1691 <li data-name=
"LuCI.form.TextValue#getValidationError"><a href=
"LuCI.form.TextValue.html#getValidationError">getValidationError
</a></li>
1693 <li data-name=
"LuCI.form.TextValue#isActive"><a href=
"LuCI.form.TextValue.html#isActive">isActive
</a></li>
1695 <li data-name=
"LuCI.form.TextValue#isValid"><a href=
"LuCI.form.TextValue.html#isValid">isValid
</a></li>
1697 <li data-name=
"LuCI.form.TextValue#load"><a href=
"LuCI.form.TextValue.html#load">load
</a></li>
1699 <li data-name=
"LuCI.form.TextValue#parse"><a href=
"LuCI.form.TextValue.html#parse">parse
</a></li>
1701 <li data-name=
"LuCI.form.TextValue#remove"><a href=
"LuCI.form.TextValue.html#remove">remove
</a></li>
1703 <li data-name=
"LuCI.form.TextValue#stripTags"><a href=
"LuCI.form.TextValue.html#stripTags">stripTags
</a></li>
1705 <li data-name=
"LuCI.form.TextValue#textvalue"><a href=
"LuCI.form.TextValue.html#textvalue">textvalue
</a></li>
1707 <li data-name=
"LuCI.form.TextValue#titleFn"><a href=
"LuCI.form.TextValue.html#titleFn">titleFn
</a></li>
1709 <li data-name=
"LuCI.form.TextValue#write"><a href=
"LuCI.form.TextValue.html#write">write
</a></li>
1712 <ul class=
"events itemMembers">
1717 <li class=
"item" data-name=
"LuCI.form.TypedSection">
1718 <span class=
"title">
1719 <a href=
"LuCI.form.TypedSection.html">LuCI.form.TypedSection
</a>
1722 <ul class=
"members itemMembers">
1724 <span class=
"subtitle">Members
</span>
1726 <li data-name=
"LuCI.form.TypedSection##addbtntitle"><a href=
"LuCI.form.TypedSection.html#addbtntitle">addbtntitle
</a></li>
1728 <li data-name=
"LuCI.form.TypedSection##addremove"><a href=
"LuCI.form.TypedSection.html#addremove">addremove
</a></li>
1730 <li data-name=
"LuCI.form.TypedSection##anonymous"><a href=
"LuCI.form.TypedSection.html#anonymous">anonymous
</a></li>
1732 <li data-name=
"LuCI.form.TypedSection##tabbed"><a href=
"LuCI.form.TypedSection.html#tabbed">tabbed
</a></li>
1734 <li data-name=
"LuCI.form.TypedSection##uciconfig"><a href=
"LuCI.form.TypedSection.html#uciconfig">uciconfig
</a></li>
1736 <li data-name=
"LuCI.form.TypedSection#parentoption"><a href=
"LuCI.form.TypedSection.html#parentoption">parentoption
</a></li>
1739 <ul class=
"typedefs itemMembers">
1742 <ul class=
"typedefs itemMembers">
1745 <ul class=
"methods itemMembers">
1747 <span class=
"subtitle">Methods
</span>
1749 <li data-name=
"LuCI.form.TypedSection#append"><a href=
"LuCI.form.TypedSection.html#append">append
</a></li>
1751 <li data-name=
"LuCI.form.TypedSection#cfgsections"><a href=
"LuCI.form.TypedSection.html#cfgsections">cfgsections
</a></li>
1753 <li data-name=
"LuCI.form.TypedSection#cfgvalue"><a href=
"LuCI.form.TypedSection.html#cfgvalue">cfgvalue
</a></li>
1755 <li data-name=
"LuCI.form.TypedSection#filter"><a href=
"LuCI.form.TypedSection.html#filter">filter
</a></li>
1757 <li data-name=
"LuCI.form.TypedSection#formvalue"><a href=
"LuCI.form.TypedSection.html#formvalue">formvalue
</a></li>
1759 <li data-name=
"LuCI.form.TypedSection#getOption"><a href=
"LuCI.form.TypedSection.html#getOption">getOption
</a></li>
1761 <li data-name=
"LuCI.form.TypedSection#getUIElement"><a href=
"LuCI.form.TypedSection.html#getUIElement">getUIElement
</a></li>
1763 <li data-name=
"LuCI.form.TypedSection#load"><a href=
"LuCI.form.TypedSection.html#load">load
</a></li>
1765 <li data-name=
"LuCI.form.TypedSection#option"><a href=
"LuCI.form.TypedSection.html#option">option
</a></li>
1767 <li data-name=
"LuCI.form.TypedSection#parse"><a href=
"LuCI.form.TypedSection.html#parse">parse
</a></li>
1769 <li data-name=
"LuCI.form.TypedSection#render"><a href=
"LuCI.form.TypedSection.html#render">render
</a></li>
1771 <li data-name=
"LuCI.form.TypedSection#stripTags"><a href=
"LuCI.form.TypedSection.html#stripTags">stripTags
</a></li>
1773 <li data-name=
"LuCI.form.TypedSection#tab"><a href=
"LuCI.form.TypedSection.html#tab">tab
</a></li>
1775 <li data-name=
"LuCI.form.TypedSection#taboption"><a href=
"LuCI.form.TypedSection.html#taboption">taboption
</a></li>
1777 <li data-name=
"LuCI.form.TypedSection#titleFn"><a href=
"LuCI.form.TypedSection.html#titleFn">titleFn
</a></li>
1780 <ul class=
"events itemMembers">
1785 <li class=
"item" data-name=
"LuCI.form.Value">
1786 <span class=
"title">
1787 <a href=
"LuCI.form.Value.html">LuCI.form.Value
</a>
1790 <ul class=
"members itemMembers">
1792 <span class=
"subtitle">Members
</span>
1794 <li data-name=
"LuCI.form.Value##password"><a href=
"LuCI.form.Value.html#password">password
</a></li>
1796 <li data-name=
"LuCI.form.Value##placeholder"><a href=
"LuCI.form.Value.html#placeholder">placeholder
</a></li>
1798 <li data-name=
"LuCI.form.Value#datatype"><a href=
"LuCI.form.Value.html#datatype">datatype
</a></li>
1800 <li data-name=
"LuCI.form.Value#default"><a href=
"LuCI.form.Value.html#default">default
</a></li>
1802 <li data-name=
"LuCI.form.Value#editable"><a href=
"LuCI.form.Value.html#editable">editable
</a></li>
1804 <li data-name=
"LuCI.form.Value#modalonly"><a href=
"LuCI.form.Value.html#modalonly">modalonly
</a></li>
1806 <li data-name=
"LuCI.form.Value#onchange"><a href=
"LuCI.form.Value.html#onchange">onchange
</a></li>
1808 <li data-name=
"LuCI.form.Value#optional"><a href=
"LuCI.form.Value.html#optional">optional
</a></li>
1810 <li data-name=
"LuCI.form.Value#readonly"><a href=
"LuCI.form.Value.html#readonly">readonly
</a></li>
1812 <li data-name=
"LuCI.form.Value#retain"><a href=
"LuCI.form.Value.html#retain">retain
</a></li>
1814 <li data-name=
"LuCI.form.Value#rmempty"><a href=
"LuCI.form.Value.html#rmempty">rmempty
</a></li>
1816 <li data-name=
"LuCI.form.Value#uciconfig"><a href=
"LuCI.form.Value.html#uciconfig">uciconfig
</a></li>
1818 <li data-name=
"LuCI.form.Value#ucioption"><a href=
"LuCI.form.Value.html#ucioption">ucioption
</a></li>
1820 <li data-name=
"LuCI.form.Value#ucisection"><a href=
"LuCI.form.Value.html#ucisection">ucisection
</a></li>
1822 <li data-name=
"LuCI.form.Value#validate"><a href=
"LuCI.form.Value.html#validate">validate
</a></li>
1824 <li data-name=
"LuCI.form.Value#width"><a href=
"LuCI.form.Value.html#width">width
</a></li>
1827 <ul class=
"typedefs itemMembers">
1830 <ul class=
"typedefs itemMembers">
1833 <ul class=
"methods itemMembers">
1835 <span class=
"subtitle">Methods
</span>
1837 <li data-name=
"LuCI.form.Value#append"><a href=
"LuCI.form.Value.html#append">append
</a></li>
1839 <li data-name=
"LuCI.form.Value#cbid"><a href=
"LuCI.form.Value.html#cbid">cbid
</a></li>
1841 <li data-name=
"LuCI.form.Value#cfgvalue"><a href=
"LuCI.form.Value.html#cfgvalue">cfgvalue
</a></li>
1843 <li data-name=
"LuCI.form.Value#depends"><a href=
"LuCI.form.Value.html#depends">depends
</a></li>
1845 <li data-name=
"LuCI.form.Value#formvalue"><a href=
"LuCI.form.Value.html#formvalue">formvalue
</a></li>
1847 <li data-name=
"LuCI.form.Value#getUIElement"><a href=
"LuCI.form.Value.html#getUIElement">getUIElement
</a></li>
1849 <li data-name=
"LuCI.form.Value#getValidationError"><a href=
"LuCI.form.Value.html#getValidationError">getValidationError
</a></li>
1851 <li data-name=
"LuCI.form.Value#isActive"><a href=
"LuCI.form.Value.html#isActive">isActive
</a></li>
1853 <li data-name=
"LuCI.form.Value#isValid"><a href=
"LuCI.form.Value.html#isValid">isValid
</a></li>
1855 <li data-name=
"LuCI.form.Value#load"><a href=
"LuCI.form.Value.html#load">load
</a></li>
1857 <li data-name=
"LuCI.form.Value#parse"><a href=
"LuCI.form.Value.html#parse">parse
</a></li>
1859 <li data-name=
"LuCI.form.Value#remove"><a href=
"LuCI.form.Value.html#remove">remove
</a></li>
1861 <li data-name=
"LuCI.form.Value#render"><a href=
"LuCI.form.Value.html#render">render
</a></li>
1863 <li data-name=
"LuCI.form.Value#stripTags"><a href=
"LuCI.form.Value.html#stripTags">stripTags
</a></li>
1865 <li data-name=
"LuCI.form.Value#textvalue"><a href=
"LuCI.form.Value.html#textvalue">textvalue
</a></li>
1867 <li data-name=
"LuCI.form.Value#titleFn"><a href=
"LuCI.form.Value.html#titleFn">titleFn
</a></li>
1869 <li data-name=
"LuCI.form.Value#value"><a href=
"LuCI.form.Value.html#value">value
</a></li>
1871 <li data-name=
"LuCI.form.Value#write"><a href=
"LuCI.form.Value.html#write">write
</a></li>
1874 <ul class=
"events itemMembers">
1879 <li class=
"item" data-name=
"LuCI.fs">
1880 <span class=
"title">
1881 <a href=
"LuCI.fs.html">LuCI.fs
</a>
1884 <ul class=
"members itemMembers">
1887 <ul class=
"typedefs itemMembers">
1889 <span class=
"subtitle">Typedefs
</span>
1891 <li data-name=
"LuCI.fs.FileExecResult"><a href=
"LuCI.fs.html#.FileExecResult">FileExecResult
</a></li>
1893 <li data-name=
"LuCI.fs.FileStatEntry"><a href=
"LuCI.fs.html#.FileStatEntry">FileStatEntry
</a></li>
1896 <ul class=
"typedefs itemMembers">
1899 <ul class=
"methods itemMembers">
1901 <span class=
"subtitle">Methods
</span>
1903 <li data-name=
"LuCI.fs#exec"><a href=
"LuCI.fs.html#exec">exec
</a></li>
1905 <li data-name=
"LuCI.fs#exec_direct"><a href=
"LuCI.fs.html#exec_direct">exec_direct
</a></li>
1907 <li data-name=
"LuCI.fs#lines"><a href=
"LuCI.fs.html#lines">lines
</a></li>
1909 <li data-name=
"LuCI.fs#list"><a href=
"LuCI.fs.html#list">list
</a></li>
1911 <li data-name=
"LuCI.fs#read"><a href=
"LuCI.fs.html#read">read
</a></li>
1913 <li data-name=
"LuCI.fs#read_direct"><a href=
"LuCI.fs.html#read_direct">read_direct
</a></li>
1915 <li data-name=
"LuCI.fs#remove"><a href=
"LuCI.fs.html#remove">remove
</a></li>
1917 <li data-name=
"LuCI.fs#stat"><a href=
"LuCI.fs.html#stat">stat
</a></li>
1919 <li data-name=
"LuCI.fs#trimmed"><a href=
"LuCI.fs.html#trimmed">trimmed
</a></li>
1921 <li data-name=
"LuCI.fs#write"><a href=
"LuCI.fs.html#write">write
</a></li>
1924 <ul class=
"events itemMembers">
1929 <li class=
"item" data-name=
"LuCI.headers">
1930 <span class=
"title">
1931 <a href=
"LuCI.headers.html">LuCI.headers
</a>
1934 <ul class=
"members itemMembers">
1937 <ul class=
"typedefs itemMembers">
1940 <ul class=
"typedefs itemMembers">
1943 <ul class=
"methods itemMembers">
1945 <span class=
"subtitle">Methods
</span>
1947 <li data-name=
"LuCI.headers#get"><a href=
"LuCI.headers.html#get">get
</a></li>
1949 <li data-name=
"LuCI.headers#has"><a href=
"LuCI.headers.html#has">has
</a></li>
1952 <ul class=
"events itemMembers">
1957 <li class=
"item" data-name=
"LuCI.network">
1958 <span class=
"title">
1959 <a href=
"LuCI.network.html">LuCI.network
</a>
1962 <ul class=
"members itemMembers">
1965 <ul class=
"typedefs itemMembers">
1967 <span class=
"subtitle">Typedefs
</span>
1969 <li data-name=
"LuCI.network.SwitchTopology"><a href=
"LuCI.network.html#.SwitchTopology">SwitchTopology
</a></li>
1971 <li data-name=
"LuCI.network.WifiEncryption"><a href=
"LuCI.network.html#.WifiEncryption">WifiEncryption
</a></li>
1973 <li data-name=
"LuCI.network.WifiPeerEntry"><a href=
"LuCI.network.html#.WifiPeerEntry">WifiPeerEntry
</a></li>
1975 <li data-name=
"LuCI.network.WifiRateEntry"><a href=
"LuCI.network.html#.WifiRateEntry">WifiRateEntry
</a></li>
1977 <li data-name=
"LuCI.network.WifiScanResult"><a href=
"LuCI.network.html#.WifiScanResult">WifiScanResult
</a></li>
1980 <ul class=
"typedefs itemMembers">
1983 <ul class=
"methods itemMembers">
1985 <span class=
"subtitle">Methods
</span>
1987 <li data-name=
"LuCI.network#addNetwork"><a href=
"LuCI.network.html#addNetwork">addNetwork
</a></li>
1989 <li data-name=
"LuCI.network#addWifiNetwork"><a href=
"LuCI.network.html#addWifiNetwork">addWifiNetwork
</a></li>
1991 <li data-name=
"LuCI.network#deleteNetwork"><a href=
"LuCI.network.html#deleteNetwork">deleteNetwork
</a></li>
1993 <li data-name=
"LuCI.network#deleteWifiNetwork"><a href=
"LuCI.network.html#deleteWifiNetwork">deleteWifiNetwork
</a></li>
1995 <li data-name=
"LuCI.network#flushCache"><a href=
"LuCI.network.html#flushCache">flushCache
</a></li>
1997 <li data-name=
"LuCI.network#formatWifiEncryption"><a href=
"LuCI.network.html#formatWifiEncryption">formatWifiEncryption
</a></li>
1999 <li data-name=
"LuCI.network#getDevice"><a href=
"LuCI.network.html#getDevice">getDevice
</a></li>
2001 <li data-name=
"LuCI.network#getDevices"><a href=
"LuCI.network.html#getDevices">getDevices
</a></li>
2003 <li data-name=
"LuCI.network#getDSLModemType"><a href=
"LuCI.network.html#getDSLModemType">getDSLModemType
</a></li>
2005 <li data-name=
"LuCI.network#getHostHints"><a href=
"LuCI.network.html#getHostHints">getHostHints
</a></li>
2007 <li data-name=
"LuCI.network#getIfnameOf"><a href=
"LuCI.network.html#getIfnameOf">getIfnameOf
</a></li>
2009 <li data-name=
"LuCI.network#getNetwork"><a href=
"LuCI.network.html#getNetwork">getNetwork
</a></li>
2011 <li data-name=
"LuCI.network#getNetworks"><a href=
"LuCI.network.html#getNetworks">getNetworks
</a></li>
2013 <li data-name=
"LuCI.network#getProtocol"><a href=
"LuCI.network.html#getProtocol">getProtocol
</a></li>
2015 <li data-name=
"LuCI.network#getProtocols"><a href=
"LuCI.network.html#getProtocols">getProtocols
</a></li>
2017 <li data-name=
"LuCI.network#getSwitchTopologies"><a href=
"LuCI.network.html#getSwitchTopologies">getSwitchTopologies
</a></li>
2019 <li data-name=
"LuCI.network#getWAN6Networks"><a href=
"LuCI.network.html#getWAN6Networks">getWAN6Networks
</a></li>
2021 <li data-name=
"LuCI.network#getWANNetworks"><a href=
"LuCI.network.html#getWANNetworks">getWANNetworks
</a></li>
2023 <li data-name=
"LuCI.network#getWifiDevice"><a href=
"LuCI.network.html#getWifiDevice">getWifiDevice
</a></li>
2025 <li data-name=
"LuCI.network#getWifiDevices"><a href=
"LuCI.network.html#getWifiDevices">getWifiDevices
</a></li>
2027 <li data-name=
"LuCI.network#getWifiNetwork"><a href=
"LuCI.network.html#getWifiNetwork">getWifiNetwork
</a></li>
2029 <li data-name=
"LuCI.network#getWifiNetworks"><a href=
"LuCI.network.html#getWifiNetworks">getWifiNetworks
</a></li>
2031 <li data-name=
"LuCI.network#isIgnoredDevice"><a href=
"LuCI.network.html#isIgnoredDevice">isIgnoredDevice
</a></li>
2033 <li data-name=
"LuCI.network#maskToPrefix"><a href=
"LuCI.network.html#maskToPrefix">maskToPrefix
</a></li>
2035 <li data-name=
"LuCI.network#prefixToMask"><a href=
"LuCI.network.html#prefixToMask">prefixToMask
</a></li>
2037 <li data-name=
"LuCI.network#registerErrorCode"><a href=
"LuCI.network.html#registerErrorCode">registerErrorCode
</a></li>
2039 <li data-name=
"LuCI.network#registerPatternVirtual"><a href=
"LuCI.network.html#registerPatternVirtual">registerPatternVirtual
</a></li>
2041 <li data-name=
"LuCI.network#registerProtocol"><a href=
"LuCI.network.html#registerProtocol">registerProtocol
</a></li>
2043 <li data-name=
"LuCI.network#renameNetwork"><a href=
"LuCI.network.html#renameNetwork">renameNetwork
</a></li>
2046 <ul class=
"events itemMembers">
2051 <li class=
"item" data-name=
"LuCI.network.Device">
2052 <span class=
"title">
2053 <a href=
"LuCI.network.Device.html">LuCI.network.Device
</a>
2056 <ul class=
"members itemMembers">
2059 <ul class=
"typedefs itemMembers">
2062 <ul class=
"typedefs itemMembers">
2065 <ul class=
"methods itemMembers">
2067 <span class=
"subtitle">Methods
</span>
2069 <li data-name=
"LuCI.network.Device#getBridgeID"><a href=
"LuCI.network.Device.html#getBridgeID">getBridgeID
</a></li>
2071 <li data-name=
"LuCI.network.Device#getBridgeSTP"><a href=
"LuCI.network.Device.html#getBridgeSTP">getBridgeSTP
</a></li>
2073 <li data-name=
"LuCI.network.Device#getCarrier"><a href=
"LuCI.network.Device.html#getCarrier">getCarrier
</a></li>
2075 <li data-name=
"LuCI.network.Device#getDuplex"><a href=
"LuCI.network.Device.html#getDuplex">getDuplex
</a></li>
2077 <li data-name=
"LuCI.network.Device#getI18n"><a href=
"LuCI.network.Device.html#getI18n">getI18n
</a></li>
2079 <li data-name=
"LuCI.network.Device#getIP6Addrs"><a href=
"LuCI.network.Device.html#getIP6Addrs">getIP6Addrs
</a></li>
2081 <li data-name=
"LuCI.network.Device#getIPAddrs"><a href=
"LuCI.network.Device.html#getIPAddrs">getIPAddrs
</a></li>
2083 <li data-name=
"LuCI.network.Device#getMAC"><a href=
"LuCI.network.Device.html#getMAC">getMAC
</a></li>
2085 <li data-name=
"LuCI.network.Device#getMTU"><a href=
"LuCI.network.Device.html#getMTU">getMTU
</a></li>
2087 <li data-name=
"LuCI.network.Device#getName"><a href=
"LuCI.network.Device.html#getName">getName
</a></li>
2089 <li data-name=
"LuCI.network.Device#getNetwork"><a href=
"LuCI.network.Device.html#getNetwork">getNetwork
</a></li>
2091 <li data-name=
"LuCI.network.Device#getNetworks"><a href=
"LuCI.network.Device.html#getNetworks">getNetworks
</a></li>
2093 <li data-name=
"LuCI.network.Device#getParent"><a href=
"LuCI.network.Device.html#getParent">getParent
</a></li>
2095 <li data-name=
"LuCI.network.Device#getPorts"><a href=
"LuCI.network.Device.html#getPorts">getPorts
</a></li>
2097 <li data-name=
"LuCI.network.Device#getRXBytes"><a href=
"LuCI.network.Device.html#getRXBytes">getRXBytes
</a></li>
2099 <li data-name=
"LuCI.network.Device#getRXPackets"><a href=
"LuCI.network.Device.html#getRXPackets">getRXPackets
</a></li>
2101 <li data-name=
"LuCI.network.Device#getShortName"><a href=
"LuCI.network.Device.html#getShortName">getShortName
</a></li>
2103 <li data-name=
"LuCI.network.Device#getSpeed"><a href=
"LuCI.network.Device.html#getSpeed">getSpeed
</a></li>
2105 <li data-name=
"LuCI.network.Device#getTXBytes"><a href=
"LuCI.network.Device.html#getTXBytes">getTXBytes
</a></li>
2107 <li data-name=
"LuCI.network.Device#getTXPackets"><a href=
"LuCI.network.Device.html#getTXPackets">getTXPackets
</a></li>
2109 <li data-name=
"LuCI.network.Device#getType"><a href=
"LuCI.network.Device.html#getType">getType
</a></li>
2111 <li data-name=
"LuCI.network.Device#getTypeI18n"><a href=
"LuCI.network.Device.html#getTypeI18n">getTypeI18n
</a></li>
2113 <li data-name=
"LuCI.network.Device#getWifiNetwork"><a href=
"LuCI.network.Device.html#getWifiNetwork">getWifiNetwork
</a></li>
2115 <li data-name=
"LuCI.network.Device#isBridge"><a href=
"LuCI.network.Device.html#isBridge">isBridge
</a></li>
2117 <li data-name=
"LuCI.network.Device#isBridgePort"><a href=
"LuCI.network.Device.html#isBridgePort">isBridgePort
</a></li>
2119 <li data-name=
"LuCI.network.Device#isUp"><a href=
"LuCI.network.Device.html#isUp">isUp
</a></li>
2122 <ul class=
"events itemMembers">
2127 <li class=
"item" data-name=
"LuCI.network.Hosts">
2128 <span class=
"title">
2129 <a href=
"LuCI.network.Hosts.html">LuCI.network.Hosts
</a>
2132 <ul class=
"members itemMembers">
2135 <ul class=
"typedefs itemMembers">
2138 <ul class=
"typedefs itemMembers">
2141 <ul class=
"methods itemMembers">
2143 <span class=
"subtitle">Methods
</span>
2145 <li data-name=
"LuCI.network.Hosts#getHostnameByIP6Addr"><a href=
"LuCI.network.Hosts.html#getHostnameByIP6Addr">getHostnameByIP6Addr
</a></li>
2147 <li data-name=
"LuCI.network.Hosts#getHostnameByIPAddr"><a href=
"LuCI.network.Hosts.html#getHostnameByIPAddr">getHostnameByIPAddr
</a></li>
2149 <li data-name=
"LuCI.network.Hosts#getHostnameByMACAddr"><a href=
"LuCI.network.Hosts.html#getHostnameByMACAddr">getHostnameByMACAddr
</a></li>
2151 <li data-name=
"LuCI.network.Hosts#getIP6AddrByMACAddr"><a href=
"LuCI.network.Hosts.html#getIP6AddrByMACAddr">getIP6AddrByMACAddr
</a></li>
2153 <li data-name=
"LuCI.network.Hosts#getIPAddrByMACAddr"><a href=
"LuCI.network.Hosts.html#getIPAddrByMACAddr">getIPAddrByMACAddr
</a></li>
2155 <li data-name=
"LuCI.network.Hosts#getMACAddrByIP6Addr"><a href=
"LuCI.network.Hosts.html#getMACAddrByIP6Addr">getMACAddrByIP6Addr
</a></li>
2157 <li data-name=
"LuCI.network.Hosts#getMACAddrByIPAddr"><a href=
"LuCI.network.Hosts.html#getMACAddrByIPAddr">getMACAddrByIPAddr
</a></li>
2159 <li data-name=
"LuCI.network.Hosts#getMACHints"><a href=
"LuCI.network.Hosts.html#getMACHints">getMACHints
</a></li>
2162 <ul class=
"events itemMembers">
2167 <li class=
"item" data-name=
"LuCI.network.Protocol">
2168 <span class=
"title">
2169 <a href=
"LuCI.network.Protocol.html">LuCI.network.Protocol
</a>
2172 <ul class=
"members itemMembers">
2175 <ul class=
"typedefs itemMembers">
2178 <ul class=
"typedefs itemMembers">
2181 <ul class=
"methods itemMembers">
2183 <span class=
"subtitle">Methods
</span>
2185 <li data-name=
"LuCI.network.Protocol#addDevice"><a href=
"LuCI.network.Protocol.html#addDevice">addDevice
</a></li>
2187 <li data-name=
"LuCI.network.Protocol#containsDevice"><a href=
"LuCI.network.Protocol.html#containsDevice">containsDevice
</a></li>
2189 <li data-name=
"LuCI.network.Protocol#deleteConfiguration"><a href=
"LuCI.network.Protocol.html#deleteConfiguration">deleteConfiguration
</a></li>
2191 <li data-name=
"LuCI.network.Protocol#deleteDevice"><a href=
"LuCI.network.Protocol.html#deleteDevice">deleteDevice
</a></li>
2193 <li data-name=
"LuCI.network.Protocol#get"><a href=
"LuCI.network.Protocol.html#get">get
</a></li>
2195 <li data-name=
"LuCI.network.Protocol#getDevice"><a href=
"LuCI.network.Protocol.html#getDevice">getDevice
</a></li>
2197 <li data-name=
"LuCI.network.Protocol#getDevices"><a href=
"LuCI.network.Protocol.html#getDevices">getDevices
</a></li>
2199 <li data-name=
"LuCI.network.Protocol#getDNS6Addrs"><a href=
"LuCI.network.Protocol.html#getDNS6Addrs">getDNS6Addrs
</a></li>
2201 <li data-name=
"LuCI.network.Protocol#getDNSAddrs"><a href=
"LuCI.network.Protocol.html#getDNSAddrs">getDNSAddrs
</a></li>
2203 <li data-name=
"LuCI.network.Protocol#getErrors"><a href=
"LuCI.network.Protocol.html#getErrors">getErrors
</a></li>
2205 <li data-name=
"LuCI.network.Protocol#getExpiry"><a href=
"LuCI.network.Protocol.html#getExpiry">getExpiry
</a></li>
2207 <li data-name=
"LuCI.network.Protocol#getGateway6Addr"><a href=
"LuCI.network.Protocol.html#getGateway6Addr">getGateway6Addr
</a></li>
2209 <li data-name=
"LuCI.network.Protocol#getGatewayAddr"><a href=
"LuCI.network.Protocol.html#getGatewayAddr">getGatewayAddr
</a></li>
2211 <li data-name=
"LuCI.network.Protocol#getI18n"><a href=
"LuCI.network.Protocol.html#getI18n">getI18n
</a></li>
2213 <li data-name=
"LuCI.network.Protocol#getIfname"><a href=
"LuCI.network.Protocol.html#getIfname">getIfname
</a></li>
2215 <li data-name=
"LuCI.network.Protocol#getIP6Addr"><a href=
"LuCI.network.Protocol.html#getIP6Addr">getIP6Addr
</a></li>
2217 <li data-name=
"LuCI.network.Protocol#getIP6Addrs"><a href=
"LuCI.network.Protocol.html#getIP6Addrs">getIP6Addrs
</a></li>
2219 <li data-name=
"LuCI.network.Protocol#getIP6Prefix"><a href=
"LuCI.network.Protocol.html#getIP6Prefix">getIP6Prefix
</a></li>
2221 <li data-name=
"LuCI.network.Protocol#getIPAddr"><a href=
"LuCI.network.Protocol.html#getIPAddr">getIPAddr
</a></li>
2223 <li data-name=
"LuCI.network.Protocol#getIPAddrs"><a href=
"LuCI.network.Protocol.html#getIPAddrs">getIPAddrs
</a></li>
2225 <li data-name=
"LuCI.network.Protocol#getL2Device"><a href=
"LuCI.network.Protocol.html#getL2Device">getL2Device
</a></li>
2227 <li data-name=
"LuCI.network.Protocol#getL3Device"><a href=
"LuCI.network.Protocol.html#getL3Device">getL3Device
</a></li>
2229 <li data-name=
"LuCI.network.Protocol#getMetric"><a href=
"LuCI.network.Protocol.html#getMetric">getMetric
</a></li>
2231 <li data-name=
"LuCI.network.Protocol#getName"><a href=
"LuCI.network.Protocol.html#getName">getName
</a></li>
2233 <li data-name=
"LuCI.network.Protocol#getNetmask"><a href=
"LuCI.network.Protocol.html#getNetmask">getNetmask
</a></li>
2235 <li data-name=
"LuCI.network.Protocol#getOpkgPackage"><a href=
"LuCI.network.Protocol.html#getOpkgPackage">getOpkgPackage
</a></li>
2237 <li data-name=
"LuCI.network.Protocol#getProtocol"><a href=
"LuCI.network.Protocol.html#getProtocol">getProtocol
</a></li>
2239 <li data-name=
"LuCI.network.Protocol#getType"><a href=
"LuCI.network.Protocol.html#getType">getType
</a></li>
2241 <li data-name=
"LuCI.network.Protocol#getUptime"><a href=
"LuCI.network.Protocol.html#getUptime">getUptime
</a></li>
2243 <li data-name=
"LuCI.network.Protocol#getZoneName"><a href=
"LuCI.network.Protocol.html#getZoneName">getZoneName
</a></li>
2245 <li data-name=
"LuCI.network.Protocol#isAlias"><a href=
"LuCI.network.Protocol.html#isAlias">isAlias
</a></li>
2247 <li data-name=
"LuCI.network.Protocol#isBridge"><a href=
"LuCI.network.Protocol.html#isBridge">isBridge
</a></li>
2249 <li data-name=
"LuCI.network.Protocol#isCreateable"><a href=
"LuCI.network.Protocol.html#isCreateable">isCreateable
</a></li>
2251 <li data-name=
"LuCI.network.Protocol#isDynamic"><a href=
"LuCI.network.Protocol.html#isDynamic">isDynamic
</a></li>
2253 <li data-name=
"LuCI.network.Protocol#isEmpty"><a href=
"LuCI.network.Protocol.html#isEmpty">isEmpty
</a></li>
2255 <li data-name=
"LuCI.network.Protocol#isFloating"><a href=
"LuCI.network.Protocol.html#isFloating">isFloating
</a></li>
2257 <li data-name=
"LuCI.network.Protocol#isInstalled"><a href=
"LuCI.network.Protocol.html#isInstalled">isInstalled
</a></li>
2259 <li data-name=
"LuCI.network.Protocol#isUp"><a href=
"LuCI.network.Protocol.html#isUp">isUp
</a></li>
2261 <li data-name=
"LuCI.network.Protocol#isVirtual"><a href=
"LuCI.network.Protocol.html#isVirtual">isVirtual
</a></li>
2263 <li data-name=
"LuCI.network.Protocol#set"><a href=
"LuCI.network.Protocol.html#set">set
</a></li>
2266 <ul class=
"events itemMembers">
2271 <li class=
"item" data-name=
"LuCI.network.WifiDevice">
2272 <span class=
"title">
2273 <a href=
"LuCI.network.WifiDevice.html">LuCI.network.WifiDevice
</a>
2276 <ul class=
"members itemMembers">
2279 <ul class=
"typedefs itemMembers">
2282 <ul class=
"typedefs itemMembers">
2285 <ul class=
"methods itemMembers">
2287 <span class=
"subtitle">Methods
</span>
2289 <li data-name=
"LuCI.network.WifiDevice#addWifiNetwork"><a href=
"LuCI.network.WifiDevice.html#addWifiNetwork">addWifiNetwork
</a></li>
2291 <li data-name=
"LuCI.network.WifiDevice#deleteWifiNetwork"><a href=
"LuCI.network.WifiDevice.html#deleteWifiNetwork">deleteWifiNetwork
</a></li>
2293 <li data-name=
"LuCI.network.WifiDevice#get"><a href=
"LuCI.network.WifiDevice.html#get">get
</a></li>
2295 <li data-name=
"LuCI.network.WifiDevice#getHTModes"><a href=
"LuCI.network.WifiDevice.html#getHTModes">getHTModes
</a></li>
2297 <li data-name=
"LuCI.network.WifiDevice#getHWModes"><a href=
"LuCI.network.WifiDevice.html#getHWModes">getHWModes
</a></li>
2299 <li data-name=
"LuCI.network.WifiDevice#getI18n"><a href=
"LuCI.network.WifiDevice.html#getI18n">getI18n
</a></li>
2301 <li data-name=
"LuCI.network.WifiDevice#getName"><a href=
"LuCI.network.WifiDevice.html#getName">getName
</a></li>
2303 <li data-name=
"LuCI.network.WifiDevice#getScanList"><a href=
"LuCI.network.WifiDevice.html#getScanList">getScanList
</a></li>
2305 <li data-name=
"LuCI.network.WifiDevice#getWifiNetwork"><a href=
"LuCI.network.WifiDevice.html#getWifiNetwork">getWifiNetwork
</a></li>
2307 <li data-name=
"LuCI.network.WifiDevice#getWifiNetworks"><a href=
"LuCI.network.WifiDevice.html#getWifiNetworks">getWifiNetworks
</a></li>
2309 <li data-name=
"LuCI.network.WifiDevice#isDisabled"><a href=
"LuCI.network.WifiDevice.html#isDisabled">isDisabled
</a></li>
2311 <li data-name=
"LuCI.network.WifiDevice#isUp"><a href=
"LuCI.network.WifiDevice.html#isUp">isUp
</a></li>
2313 <li data-name=
"LuCI.network.WifiDevice#set"><a href=
"LuCI.network.WifiDevice.html#set">set
</a></li>
2316 <ul class=
"events itemMembers">
2321 <li class=
"item" data-name=
"LuCI.network.WifiNetwork">
2322 <span class=
"title">
2323 <a href=
"LuCI.network.WifiNetwork.html">LuCI.network.WifiNetwork
</a>
2326 <ul class=
"members itemMembers">
2329 <ul class=
"typedefs itemMembers">
2332 <ul class=
"typedefs itemMembers">
2335 <ul class=
"methods itemMembers">
2337 <span class=
"subtitle">Methods
</span>
2339 <li data-name=
"LuCI.network.WifiNetwork#disconnectClient"><a href=
"LuCI.network.WifiNetwork.html#disconnectClient">disconnectClient
</a></li>
2341 <li data-name=
"LuCI.network.WifiNetwork#get"><a href=
"LuCI.network.WifiNetwork.html#get">get
</a></li>
2343 <li data-name=
"LuCI.network.WifiNetwork#getActiveBSSID"><a href=
"LuCI.network.WifiNetwork.html#getActiveBSSID">getActiveBSSID
</a></li>
2345 <li data-name=
"LuCI.network.WifiNetwork#getActiveEncryption"><a href=
"LuCI.network.WifiNetwork.html#getActiveEncryption">getActiveEncryption
</a></li>
2347 <li data-name=
"LuCI.network.WifiNetwork#getActiveMode"><a href=
"LuCI.network.WifiNetwork.html#getActiveMode">getActiveMode
</a></li>
2349 <li data-name=
"LuCI.network.WifiNetwork#getActiveModeI18n"><a href=
"LuCI.network.WifiNetwork.html#getActiveModeI18n">getActiveModeI18n
</a></li>
2351 <li data-name=
"LuCI.network.WifiNetwork#getActiveSSID"><a href=
"LuCI.network.WifiNetwork.html#getActiveSSID">getActiveSSID
</a></li>
2353 <li data-name=
"LuCI.network.WifiNetwork#getAssocList"><a href=
"LuCI.network.WifiNetwork.html#getAssocList">getAssocList
</a></li>
2355 <li data-name=
"LuCI.network.WifiNetwork#getBitRate"><a href=
"LuCI.network.WifiNetwork.html#getBitRate">getBitRate
</a></li>
2357 <li data-name=
"LuCI.network.WifiNetwork#getBSSID"><a href=
"LuCI.network.WifiNetwork.html#getBSSID">getBSSID
</a></li>
2359 <li data-name=
"LuCI.network.WifiNetwork#getChannel"><a href=
"LuCI.network.WifiNetwork.html#getChannel">getChannel
</a></li>
2361 <li data-name=
"LuCI.network.WifiNetwork#getCountryCode"><a href=
"LuCI.network.WifiNetwork.html#getCountryCode">getCountryCode
</a></li>
2363 <li data-name=
"LuCI.network.WifiNetwork#getDevice"><a href=
"LuCI.network.WifiNetwork.html#getDevice">getDevice
</a></li>
2365 <li data-name=
"LuCI.network.WifiNetwork#getFrequency"><a href=
"LuCI.network.WifiNetwork.html#getFrequency">getFrequency
</a></li>
2367 <li data-name=
"LuCI.network.WifiNetwork#getI18n"><a href=
"LuCI.network.WifiNetwork.html#getI18n">getI18n
</a></li>
2369 <li data-name=
"LuCI.network.WifiNetwork#getID"><a href=
"LuCI.network.WifiNetwork.html#getID">getID
</a></li>
2371 <li data-name=
"LuCI.network.WifiNetwork#getIfname"><a href=
"LuCI.network.WifiNetwork.html#getIfname">getIfname
</a></li>
2373 <li data-name=
"LuCI.network.WifiNetwork#getMeshID"><a href=
"LuCI.network.WifiNetwork.html#getMeshID">getMeshID
</a></li>
2375 <li data-name=
"LuCI.network.WifiNetwork#getMode"><a href=
"LuCI.network.WifiNetwork.html#getMode">getMode
</a></li>
2377 <li data-name=
"LuCI.network.WifiNetwork#getName"><a href=
"LuCI.network.WifiNetwork.html#getName">getName
</a></li>
2379 <li data-name=
"LuCI.network.WifiNetwork#getNetwork"><a href=
"LuCI.network.WifiNetwork.html#getNetwork">getNetwork
</a></li>
2381 <li data-name=
"LuCI.network.WifiNetwork#getNetworkNames"><a href=
"LuCI.network.WifiNetwork.html#getNetworkNames">getNetworkNames
</a></li>
2383 <li data-name=
"LuCI.network.WifiNetwork#getNetworks"><a href=
"LuCI.network.WifiNetwork.html#getNetworks">getNetworks
</a></li>
2385 <li data-name=
"LuCI.network.WifiNetwork#getNoise"><a href=
"LuCI.network.WifiNetwork.html#getNoise">getNoise
</a></li>
2387 <li data-name=
"LuCI.network.WifiNetwork#getShortName"><a href=
"LuCI.network.WifiNetwork.html#getShortName">getShortName
</a></li>
2389 <li data-name=
"LuCI.network.WifiNetwork#getSignal"><a href=
"LuCI.network.WifiNetwork.html#getSignal">getSignal
</a></li>
2391 <li data-name=
"LuCI.network.WifiNetwork#getSignalLevel"><a href=
"LuCI.network.WifiNetwork.html#getSignalLevel">getSignalLevel
</a></li>
2393 <li data-name=
"LuCI.network.WifiNetwork#getSignalPercent"><a href=
"LuCI.network.WifiNetwork.html#getSignalPercent">getSignalPercent
</a></li>
2395 <li data-name=
"LuCI.network.WifiNetwork#getSSID"><a href=
"LuCI.network.WifiNetwork.html#getSSID">getSSID
</a></li>
2397 <li data-name=
"LuCI.network.WifiNetwork#getTXPower"><a href=
"LuCI.network.WifiNetwork.html#getTXPower">getTXPower
</a></li>
2399 <li data-name=
"LuCI.network.WifiNetwork#getTXPowerOffset"><a href=
"LuCI.network.WifiNetwork.html#getTXPowerOffset">getTXPowerOffset
</a></li>
2401 <li data-name=
"LuCI.network.WifiNetwork#getVlanIfnames"><a href=
"LuCI.network.WifiNetwork.html#getVlanIfnames">getVlanIfnames
</a></li>
2403 <li data-name=
"LuCI.network.WifiNetwork#getWifiDevice"><a href=
"LuCI.network.WifiNetwork.html#getWifiDevice">getWifiDevice
</a></li>
2405 <li data-name=
"LuCI.network.WifiNetwork#getWifiDeviceName"><a href=
"LuCI.network.WifiNetwork.html#getWifiDeviceName">getWifiDeviceName
</a></li>
2407 <li data-name=
"LuCI.network.WifiNetwork#isClientDisconnectSupported"><a href=
"LuCI.network.WifiNetwork.html#isClientDisconnectSupported">isClientDisconnectSupported
</a></li>
2409 <li data-name=
"LuCI.network.WifiNetwork#isDisabled"><a href=
"LuCI.network.WifiNetwork.html#isDisabled">isDisabled
</a></li>
2411 <li data-name=
"LuCI.network.WifiNetwork#isUp"><a href=
"LuCI.network.WifiNetwork.html#isUp">isUp
</a></li>
2413 <li data-name=
"LuCI.network.WifiNetwork#set"><a href=
"LuCI.network.WifiNetwork.html#set">set
</a></li>
2416 <ul class=
"events itemMembers">
2421 <li class=
"item" data-name=
"LuCI.poll">
2422 <span class=
"title">
2423 <a href=
"LuCI.poll.html">LuCI.poll
</a>
2426 <ul class=
"members itemMembers">
2429 <ul class=
"typedefs itemMembers">
2432 <ul class=
"typedefs itemMembers">
2435 <ul class=
"methods itemMembers">
2437 <span class=
"subtitle">Methods
</span>
2439 <li data-name=
"LuCI.poll#active"><a href=
"LuCI.poll.html#active">active
</a></li>
2441 <li data-name=
"LuCI.poll#add"><a href=
"LuCI.poll.html#add">add
</a></li>
2443 <li data-name=
"LuCI.poll#remove"><a href=
"LuCI.poll.html#remove">remove
</a></li>
2445 <li data-name=
"LuCI.poll#start"><a href=
"LuCI.poll.html#start">start
</a></li>
2447 <li data-name=
"LuCI.poll#stop"><a href=
"LuCI.poll.html#stop">stop
</a></li>
2450 <ul class=
"events itemMembers">
2455 <li class=
"item" data-name=
"LuCI.request">
2456 <span class=
"title">
2457 <a href=
"LuCI.request.html">LuCI.request
</a>
2460 <ul class=
"members itemMembers">
2463 <ul class=
"typedefs itemMembers">
2465 <span class=
"subtitle">Typedefs
</span>
2467 <li data-name=
"LuCI.request.interceptorFn"><a href=
"LuCI.request.html#.interceptorFn">interceptorFn
</a></li>
2469 <li data-name=
"LuCI.request.RequestOptions"><a href=
"LuCI.request.html#.RequestOptions">RequestOptions
</a></li>
2472 <ul class=
"typedefs itemMembers">
2475 <ul class=
"methods itemMembers">
2477 <span class=
"subtitle">Methods
</span>
2479 <li data-name=
"LuCI.request#addInterceptor"><a href=
"LuCI.request.html#addInterceptor">addInterceptor
</a></li>
2481 <li data-name=
"LuCI.request#expandURL"><a href=
"LuCI.request.html#expandURL">expandURL
</a></li>
2483 <li data-name=
"LuCI.request#get"><a href=
"LuCI.request.html#get">get
</a></li>
2485 <li data-name=
"LuCI.request#post"><a href=
"LuCI.request.html#post">post
</a></li>
2487 <li data-name=
"LuCI.request#removeInterceptor"><a href=
"LuCI.request.html#removeInterceptor">removeInterceptor
</a></li>
2489 <li data-name=
"LuCI.request#request"><a href=
"LuCI.request.html#request">request
</a></li>
2492 <ul class=
"events itemMembers">
2497 <li class=
"item" data-name=
"LuCI.request.poll">
2498 <span class=
"title">
2499 <a href=
"LuCI.request.poll.html">LuCI.request.poll
</a>
2502 <ul class=
"members itemMembers">
2505 <ul class=
"typedefs itemMembers">
2507 <span class=
"subtitle">Typedefs
</span>
2509 <li data-name=
"LuCI.request.poll~callbackFn"><a href=
"LuCI.request.poll.html#~callbackFn">callbackFn
</a></li>
2512 <ul class=
"typedefs itemMembers">
2515 <ul class=
"methods itemMembers">
2517 <span class=
"subtitle">Methods
</span>
2519 <li data-name=
"LuCI.request.poll#active"><a href=
"LuCI.request.poll.html#active">active
</a></li>
2521 <li data-name=
"LuCI.request.poll#add"><a href=
"LuCI.request.poll.html#add">add
</a></li>
2523 <li data-name=
"LuCI.request.poll#remove"><a href=
"LuCI.request.poll.html#remove">remove
</a></li>
2525 <li data-name=
"LuCI.request.poll#start"><a href=
"LuCI.request.poll.html#start">start
</a></li>
2527 <li data-name=
"LuCI.request.poll#stop"><a href=
"LuCI.request.poll.html#stop">stop
</a></li>
2530 <ul class=
"events itemMembers">
2535 <li class=
"item" data-name=
"LuCI.response">
2536 <span class=
"title">
2537 <a href=
"LuCI.response.html">LuCI.response
</a>
2540 <ul class=
"members itemMembers">
2542 <span class=
"subtitle">Members
</span>
2544 <li data-name=
"LuCI.response#duration"><a href=
"LuCI.response.html#duration">duration
</a></li>
2546 <li data-name=
"LuCI.response#headers"><a href=
"LuCI.response.html#headers">headers
</a></li>
2548 <li data-name=
"LuCI.response#ok"><a href=
"LuCI.response.html#ok">ok
</a></li>
2550 <li data-name=
"LuCI.response#status"><a href=
"LuCI.response.html#status">status
</a></li>
2552 <li data-name=
"LuCI.response#statusText"><a href=
"LuCI.response.html#statusText">statusText
</a></li>
2554 <li data-name=
"LuCI.response#url"><a href=
"LuCI.response.html#url">url
</a></li>
2557 <ul class=
"typedefs itemMembers">
2560 <ul class=
"typedefs itemMembers">
2563 <ul class=
"methods itemMembers">
2565 <span class=
"subtitle">Methods
</span>
2567 <li data-name=
"LuCI.response#blob"><a href=
"LuCI.response.html#blob">blob
</a></li>
2569 <li data-name=
"LuCI.response#clone"><a href=
"LuCI.response.html#clone">clone
</a></li>
2571 <li data-name=
"LuCI.response#json"><a href=
"LuCI.response.html#json">json
</a></li>
2573 <li data-name=
"LuCI.response#text"><a href=
"LuCI.response.html#text">text
</a></li>
2576 <ul class=
"events itemMembers">
2581 <li class=
"item" data-name=
"LuCI.rpc">
2582 <span class=
"title">
2583 <a href=
"LuCI.rpc.html">LuCI.rpc
</a>
2586 <ul class=
"members itemMembers">
2589 <ul class=
"typedefs itemMembers">
2591 <span class=
"subtitle">Typedefs
</span>
2593 <li data-name=
"LuCI.rpc.DeclareOptions"><a href=
"LuCI.rpc.html#.DeclareOptions">DeclareOptions
</a></li>
2595 <li data-name=
"LuCI.rpc~filterFn"><a href=
"LuCI.rpc.html#~filterFn">filterFn
</a></li>
2597 <li data-name=
"LuCI.rpc~interceptorFn"><a href=
"LuCI.rpc.html#~interceptorFn">interceptorFn
</a></li>
2599 <li data-name=
"LuCI.rpc~invokeFn"><a href=
"LuCI.rpc.html#~invokeFn">invokeFn
</a></li>
2602 <ul class=
"typedefs itemMembers">
2605 <ul class=
"methods itemMembers">
2607 <span class=
"subtitle">Methods
</span>
2609 <li data-name=
"LuCI.rpc#addInterceptor"><a href=
"LuCI.rpc.html#addInterceptor">addInterceptor
</a></li>
2611 <li data-name=
"LuCI.rpc#declare"><a href=
"LuCI.rpc.html#declare">declare
</a></li>
2613 <li data-name=
"LuCI.rpc#getBaseURL"><a href=
"LuCI.rpc.html#getBaseURL">getBaseURL
</a></li>
2615 <li data-name=
"LuCI.rpc#getSessionID"><a href=
"LuCI.rpc.html#getSessionID">getSessionID
</a></li>
2617 <li data-name=
"LuCI.rpc#getStatusText"><a href=
"LuCI.rpc.html#getStatusText">getStatusText
</a></li>
2619 <li data-name=
"LuCI.rpc#list"><a href=
"LuCI.rpc.html#list">list
</a></li>
2621 <li data-name=
"LuCI.rpc#removeInterceptor"><a href=
"LuCI.rpc.html#removeInterceptor">removeInterceptor
</a></li>
2623 <li data-name=
"LuCI.rpc#setBaseURL"><a href=
"LuCI.rpc.html#setBaseURL">setBaseURL
</a></li>
2625 <li data-name=
"LuCI.rpc#setSessionID"><a href=
"LuCI.rpc.html#setSessionID">setSessionID
</a></li>
2628 <ul class=
"events itemMembers">
2633 <li class=
"item" data-name=
"LuCI.session">
2634 <span class=
"title">
2635 <a href=
"LuCI.session.html">LuCI.session
</a>
2638 <ul class=
"members itemMembers">
2641 <ul class=
"typedefs itemMembers">
2644 <ul class=
"typedefs itemMembers">
2647 <ul class=
"methods itemMembers">
2649 <span class=
"subtitle">Methods
</span>
2651 <li data-name=
"LuCI.session#getID"><a href=
"LuCI.session.html#getID">getID
</a></li>
2653 <li data-name=
"LuCI.session#getLocalData"><a href=
"LuCI.session.html#getLocalData">getLocalData
</a></li>
2655 <li data-name=
"LuCI.session#getToken"><a href=
"LuCI.session.html#getToken">getToken
</a></li>
2657 <li data-name=
"LuCI.session#setLocalData"><a href=
"LuCI.session.html#setLocalData">setLocalData
</a></li>
2660 <ul class=
"events itemMembers">
2665 <li class=
"item" data-name=
"LuCI.uci">
2666 <span class=
"title">
2667 <a href=
"LuCI.uci.html">LuCI.uci
</a>
2670 <ul class=
"members itemMembers">
2673 <ul class=
"typedefs itemMembers">
2675 <span class=
"subtitle">Typedefs
</span>
2677 <li data-name=
"LuCI.uci.ChangeRecord"><a href=
"LuCI.uci.html#.ChangeRecord">ChangeRecord
</a></li>
2679 <li data-name=
"LuCI.uci.SectionObject"><a href=
"LuCI.uci.html#.SectionObject">SectionObject
</a></li>
2681 <li data-name=
"LuCI.uci~sectionsFn"><a href=
"LuCI.uci.html#~sectionsFn">sectionsFn
</a></li>
2684 <ul class=
"typedefs itemMembers">
2687 <ul class=
"methods itemMembers">
2689 <span class=
"subtitle">Methods
</span>
2691 <li data-name=
"LuCI.uci#add"><a href=
"LuCI.uci.html#add">add
</a></li>
2693 <li data-name=
"LuCI.uci#apply"><a href=
"LuCI.uci.html#apply">apply
</a></li>
2695 <li data-name=
"LuCI.uci#changes"><a href=
"LuCI.uci.html#changes">changes
</a></li>
2697 <li data-name=
"LuCI.uci#createSID"><a href=
"LuCI.uci.html#createSID">createSID
</a></li>
2699 <li data-name=
"LuCI.uci#get"><a href=
"LuCI.uci.html#get">get
</a></li>
2701 <li data-name=
"LuCI.uci#get_first"><a href=
"LuCI.uci.html#get_first">get_first
</a></li>
2703 <li data-name=
"LuCI.uci#load"><a href=
"LuCI.uci.html#load">load
</a></li>
2705 <li data-name=
"LuCI.uci#move"><a href=
"LuCI.uci.html#move">move
</a></li>
2707 <li data-name=
"LuCI.uci#remove"><a href=
"LuCI.uci.html#remove">remove
</a></li>
2709 <li data-name=
"LuCI.uci#resolveSID"><a href=
"LuCI.uci.html#resolveSID">resolveSID
</a></li>
2711 <li data-name=
"LuCI.uci#save"><a href=
"LuCI.uci.html#save">save
</a></li>
2713 <li data-name=
"LuCI.uci#sections"><a href=
"LuCI.uci.html#sections">sections
</a></li>
2715 <li data-name=
"LuCI.uci#set"><a href=
"LuCI.uci.html#set">set
</a></li>
2717 <li data-name=
"LuCI.uci#set_first"><a href=
"LuCI.uci.html#set_first">set_first
</a></li>
2719 <li data-name=
"LuCI.uci#unload"><a href=
"LuCI.uci.html#unload">unload
</a></li>
2721 <li data-name=
"LuCI.uci#unset"><a href=
"LuCI.uci.html#unset">unset
</a></li>
2723 <li data-name=
"LuCI.uci#unset_first"><a href=
"LuCI.uci.html#unset_first">unset_first
</a></li>
2726 <ul class=
"events itemMembers">
2731 <li class=
"item" data-name=
"LuCI.ui">
2732 <span class=
"title">
2733 <a href=
"LuCI.ui.html">LuCI.ui
</a>
2736 <ul class=
"members itemMembers">
2739 <ul class=
"typedefs itemMembers">
2741 <span class=
"subtitle">Typedefs
</span>
2743 <li data-name=
"LuCI.ui.FileUploadReply"><a href=
"LuCI.ui.html#.FileUploadReply">FileUploadReply
</a></li>
2746 <ul class=
"typedefs itemMembers">
2749 <ul class=
"methods itemMembers">
2751 <span class=
"subtitle">Methods
</span>
2753 <li data-name=
"LuCI.ui#addNotification"><a href=
"LuCI.ui.html#addNotification">addNotification
</a></li>
2755 <li data-name=
"LuCI.ui#addValidator"><a href=
"LuCI.ui.html#addValidator">addValidator
</a></li>
2757 <li data-name=
"LuCI.ui#awaitReconnect"><a href=
"LuCI.ui.html#awaitReconnect">awaitReconnect
</a></li>
2759 <li data-name=
"LuCI.ui#createHandlerFn"><a href=
"LuCI.ui.html#createHandlerFn">createHandlerFn
</a></li>
2761 <li data-name=
"LuCI.ui#hideIndicator"><a href=
"LuCI.ui.html#hideIndicator">hideIndicator
</a></li>
2763 <li data-name=
"LuCI.ui#hideModal"><a href=
"LuCI.ui.html#hideModal">hideModal
</a></li>
2765 <li data-name=
"LuCI.ui#instantiateView"><a href=
"LuCI.ui.html#instantiateView">instantiateView
</a></li>
2767 <li data-name=
"LuCI.ui#itemlist"><a href=
"LuCI.ui.html#itemlist">itemlist
</a></li>
2769 <li data-name=
"LuCI.ui#pingDevice"><a href=
"LuCI.ui.html#pingDevice">pingDevice
</a></li>
2771 <li data-name=
"LuCI.ui#showIndicator"><a href=
"LuCI.ui.html#showIndicator">showIndicator
</a></li>
2773 <li data-name=
"LuCI.ui#showModal"><a href=
"LuCI.ui.html#showModal">showModal
</a></li>
2775 <li data-name=
"LuCI.ui#uploadFile"><a href=
"LuCI.ui.html#uploadFile">uploadFile
</a></li>
2778 <ul class=
"events itemMembers">
2783 <li class=
"item" data-name=
"LuCI.ui.AbstractElement">
2784 <span class=
"title">
2785 <a href=
"LuCI.ui.AbstractElement.html">LuCI.ui.AbstractElement
</a>
2788 <ul class=
"members itemMembers">
2791 <ul class=
"typedefs itemMembers">
2793 <span class=
"subtitle">Typedefs
</span>
2795 <li data-name=
"LuCI.ui.AbstractElement.InitOptions"><a href=
"LuCI.ui.AbstractElement.html#.InitOptions">InitOptions
</a></li>
2798 <ul class=
"typedefs itemMembers">
2801 <ul class=
"methods itemMembers">
2803 <span class=
"subtitle">Methods
</span>
2805 <li data-name=
"LuCI.ui.AbstractElement#getValidationError"><a href=
"LuCI.ui.AbstractElement.html#getValidationError">getValidationError
</a></li>
2807 <li data-name=
"LuCI.ui.AbstractElement#getValue"><a href=
"LuCI.ui.AbstractElement.html#getValue">getValue
</a></li>
2809 <li data-name=
"LuCI.ui.AbstractElement#isChanged"><a href=
"LuCI.ui.AbstractElement.html#isChanged">isChanged
</a></li>
2811 <li data-name=
"LuCI.ui.AbstractElement#isValid"><a href=
"LuCI.ui.AbstractElement.html#isValid">isValid
</a></li>
2813 <li data-name=
"LuCI.ui.AbstractElement#registerEvents"><a href=
"LuCI.ui.AbstractElement.html#registerEvents">registerEvents
</a></li>
2815 <li data-name=
"LuCI.ui.AbstractElement#render"><a href=
"LuCI.ui.AbstractElement.html#render">render
</a></li>
2817 <li data-name=
"LuCI.ui.AbstractElement#setChangeEvents"><a href=
"LuCI.ui.AbstractElement.html#setChangeEvents">setChangeEvents
</a></li>
2819 <li data-name=
"LuCI.ui.AbstractElement#setPlaceholder"><a href=
"LuCI.ui.AbstractElement.html#setPlaceholder">setPlaceholder
</a></li>
2821 <li data-name=
"LuCI.ui.AbstractElement#setUpdateEvents"><a href=
"LuCI.ui.AbstractElement.html#setUpdateEvents">setUpdateEvents
</a></li>
2823 <li data-name=
"LuCI.ui.AbstractElement#setValue"><a href=
"LuCI.ui.AbstractElement.html#setValue">setValue
</a></li>
2825 <li data-name=
"LuCI.ui.AbstractElement#triggerValidation"><a href=
"LuCI.ui.AbstractElement.html#triggerValidation">triggerValidation
</a></li>
2828 <ul class=
"events itemMembers">
2833 <li class=
"item" data-name=
"LuCI.ui.changes">
2834 <span class=
"title">
2835 <a href=
"LuCI.ui.changes.html">LuCI.ui.changes
</a>
2838 <ul class=
"members itemMembers">
2841 <ul class=
"typedefs itemMembers">
2844 <ul class=
"typedefs itemMembers">
2847 <ul class=
"methods itemMembers">
2849 <span class=
"subtitle">Methods
</span>
2851 <li data-name=
"LuCI.ui.changes#apply"><a href=
"LuCI.ui.changes.html#apply">apply
</a></li>
2853 <li data-name=
"LuCI.ui.changes#displayChanges"><a href=
"LuCI.ui.changes.html#displayChanges">displayChanges
</a></li>
2855 <li data-name=
"LuCI.ui.changes#renderChangeIndicator"><a href=
"LuCI.ui.changes.html#renderChangeIndicator">renderChangeIndicator
</a></li>
2857 <li data-name=
"LuCI.ui.changes#revert"><a href=
"LuCI.ui.changes.html#revert">revert
</a></li>
2859 <li data-name=
"LuCI.ui.changes#setIndicator"><a href=
"LuCI.ui.changes.html#setIndicator">setIndicator
</a></li>
2862 <ul class=
"events itemMembers">
2867 <li class=
"item" data-name=
"LuCI.ui.Checkbox">
2868 <span class=
"title">
2869 <a href=
"LuCI.ui.Checkbox.html">LuCI.ui.Checkbox
</a>
2872 <ul class=
"members itemMembers">
2875 <ul class=
"typedefs itemMembers">
2877 <span class=
"subtitle">Typedefs
</span>
2879 <li data-name=
"LuCI.ui.Checkbox.InitOptions"><a href=
"LuCI.ui.Checkbox.html#.InitOptions">InitOptions
</a></li>
2882 <ul class=
"typedefs itemMembers">
2885 <ul class=
"methods itemMembers">
2887 <span class=
"subtitle">Methods
</span>
2889 <li data-name=
"LuCI.ui.Checkbox#getValidationError"><a href=
"LuCI.ui.Checkbox.html#getValidationError">getValidationError
</a></li>
2891 <li data-name=
"LuCI.ui.Checkbox#getValue"><a href=
"LuCI.ui.Checkbox.html#getValue">getValue
</a></li>
2893 <li data-name=
"LuCI.ui.Checkbox#isChanged"><a href=
"LuCI.ui.Checkbox.html#isChanged">isChanged
</a></li>
2895 <li data-name=
"LuCI.ui.Checkbox#isChecked"><a href=
"LuCI.ui.Checkbox.html#isChecked">isChecked
</a></li>
2897 <li data-name=
"LuCI.ui.Checkbox#isValid"><a href=
"LuCI.ui.Checkbox.html#isValid">isValid
</a></li>
2899 <li data-name=
"LuCI.ui.Checkbox#registerEvents"><a href=
"LuCI.ui.Checkbox.html#registerEvents">registerEvents
</a></li>
2901 <li data-name=
"LuCI.ui.Checkbox#render"><a href=
"LuCI.ui.Checkbox.html#render">render
</a></li>
2903 <li data-name=
"LuCI.ui.Checkbox#setChangeEvents"><a href=
"LuCI.ui.Checkbox.html#setChangeEvents">setChangeEvents
</a></li>
2905 <li data-name=
"LuCI.ui.Checkbox#setPlaceholder"><a href=
"LuCI.ui.Checkbox.html#setPlaceholder">setPlaceholder
</a></li>
2907 <li data-name=
"LuCI.ui.Checkbox#setUpdateEvents"><a href=
"LuCI.ui.Checkbox.html#setUpdateEvents">setUpdateEvents
</a></li>
2909 <li data-name=
"LuCI.ui.Checkbox#setValue"><a href=
"LuCI.ui.Checkbox.html#setValue">setValue
</a></li>
2911 <li data-name=
"LuCI.ui.Checkbox#triggerValidation"><a href=
"LuCI.ui.Checkbox.html#triggerValidation">triggerValidation
</a></li>
2914 <ul class=
"events itemMembers">
2919 <li class=
"item" data-name=
"LuCI.ui.Combobox">
2920 <span class=
"title">
2921 <a href=
"LuCI.ui.Combobox.html">LuCI.ui.Combobox
</a>
2924 <ul class=
"members itemMembers">
2927 <ul class=
"typedefs itemMembers">
2929 <span class=
"subtitle">Typedefs
</span>
2931 <li data-name=
"LuCI.ui.Combobox.InitOptions"><a href=
"LuCI.ui.Combobox.html#.InitOptions">InitOptions
</a></li>
2934 <ul class=
"typedefs itemMembers">
2937 <ul class=
"methods itemMembers">
2939 <span class=
"subtitle">Methods
</span>
2941 <li data-name=
"LuCI.ui.Combobox#addChoices"><a href=
"LuCI.ui.Combobox.html#addChoices">addChoices
</a></li>
2943 <li data-name=
"LuCI.ui.Combobox#clearChoices"><a href=
"LuCI.ui.Combobox.html#clearChoices">clearChoices
</a></li>
2945 <li data-name=
"LuCI.ui.Combobox#closeAllDropdowns"><a href=
"LuCI.ui.Combobox.html#closeAllDropdowns">closeAllDropdowns
</a></li>
2947 <li data-name=
"LuCI.ui.Combobox#getValidationError"><a href=
"LuCI.ui.Combobox.html#getValidationError">getValidationError
</a></li>
2949 <li data-name=
"LuCI.ui.Combobox#isChanged"><a href=
"LuCI.ui.Combobox.html#isChanged">isChanged
</a></li>
2951 <li data-name=
"LuCI.ui.Combobox#isValid"><a href=
"LuCI.ui.Combobox.html#isValid">isValid
</a></li>
2953 <li data-name=
"LuCI.ui.Combobox#registerEvents"><a href=
"LuCI.ui.Combobox.html#registerEvents">registerEvents
</a></li>
2955 <li data-name=
"LuCI.ui.Combobox#setChangeEvents"><a href=
"LuCI.ui.Combobox.html#setChangeEvents">setChangeEvents
</a></li>
2957 <li data-name=
"LuCI.ui.Combobox#setPlaceholder"><a href=
"LuCI.ui.Combobox.html#setPlaceholder">setPlaceholder
</a></li>
2959 <li data-name=
"LuCI.ui.Combobox#setUpdateEvents"><a href=
"LuCI.ui.Combobox.html#setUpdateEvents">setUpdateEvents
</a></li>
2961 <li data-name=
"LuCI.ui.Combobox#triggerValidation"><a href=
"LuCI.ui.Combobox.html#triggerValidation">triggerValidation
</a></li>
2964 <ul class=
"events itemMembers">
2969 <li class=
"item" data-name=
"LuCI.ui.ComboButton">
2970 <span class=
"title">
2971 <a href=
"LuCI.ui.ComboButton.html">LuCI.ui.ComboButton
</a>
2974 <ul class=
"members itemMembers">
2977 <ul class=
"typedefs itemMembers">
2979 <span class=
"subtitle">Typedefs
</span>
2981 <li data-name=
"LuCI.ui.ComboButton.InitOptions"><a href=
"LuCI.ui.ComboButton.html#.InitOptions">InitOptions
</a></li>
2984 <ul class=
"typedefs itemMembers">
2987 <ul class=
"methods itemMembers">
2989 <span class=
"subtitle">Methods
</span>
2991 <li data-name=
"LuCI.ui.ComboButton#addChoices"><a href=
"LuCI.ui.ComboButton.html#addChoices">addChoices
</a></li>
2993 <li data-name=
"LuCI.ui.ComboButton#clearChoices"><a href=
"LuCI.ui.ComboButton.html#clearChoices">clearChoices
</a></li>
2995 <li data-name=
"LuCI.ui.ComboButton#closeAllDropdowns"><a href=
"LuCI.ui.ComboButton.html#closeAllDropdowns">closeAllDropdowns
</a></li>
2997 <li data-name=
"LuCI.ui.ComboButton#getValidationError"><a href=
"LuCI.ui.ComboButton.html#getValidationError">getValidationError
</a></li>
2999 <li data-name=
"LuCI.ui.ComboButton#isChanged"><a href=
"LuCI.ui.ComboButton.html#isChanged">isChanged
</a></li>
3001 <li data-name=
"LuCI.ui.ComboButton#isValid"><a href=
"LuCI.ui.ComboButton.html#isValid">isValid
</a></li>
3003 <li data-name=
"LuCI.ui.ComboButton#registerEvents"><a href=
"LuCI.ui.ComboButton.html#registerEvents">registerEvents
</a></li>
3005 <li data-name=
"LuCI.ui.ComboButton#setChangeEvents"><a href=
"LuCI.ui.ComboButton.html#setChangeEvents">setChangeEvents
</a></li>
3007 <li data-name=
"LuCI.ui.ComboButton#setPlaceholder"><a href=
"LuCI.ui.ComboButton.html#setPlaceholder">setPlaceholder
</a></li>
3009 <li data-name=
"LuCI.ui.ComboButton#setUpdateEvents"><a href=
"LuCI.ui.ComboButton.html#setUpdateEvents">setUpdateEvents
</a></li>
3011 <li data-name=
"LuCI.ui.ComboButton#triggerValidation"><a href=
"LuCI.ui.ComboButton.html#triggerValidation">triggerValidation
</a></li>
3014 <ul class=
"events itemMembers">
3019 <li class=
"item" data-name=
"LuCI.ui.Dropdown">
3020 <span class=
"title">
3021 <a href=
"LuCI.ui.Dropdown.html">LuCI.ui.Dropdown
</a>
3024 <ul class=
"members itemMembers">
3027 <ul class=
"typedefs itemMembers">
3029 <span class=
"subtitle">Typedefs
</span>
3031 <li data-name=
"LuCI.ui.Dropdown.InitOptions"><a href=
"LuCI.ui.Dropdown.html#.InitOptions">InitOptions
</a></li>
3034 <ul class=
"typedefs itemMembers">
3037 <ul class=
"methods itemMembers">
3039 <span class=
"subtitle">Methods
</span>
3041 <li data-name=
"LuCI.ui.Dropdown#addChoices"><a href=
"LuCI.ui.Dropdown.html#addChoices">addChoices
</a></li>
3043 <li data-name=
"LuCI.ui.Dropdown#clearChoices"><a href=
"LuCI.ui.Dropdown.html#clearChoices">clearChoices
</a></li>
3045 <li data-name=
"LuCI.ui.Dropdown#closeAllDropdowns"><a href=
"LuCI.ui.Dropdown.html#closeAllDropdowns">closeAllDropdowns
</a></li>
3047 <li data-name=
"LuCI.ui.Dropdown#getValidationError"><a href=
"LuCI.ui.Dropdown.html#getValidationError">getValidationError
</a></li>
3049 <li data-name=
"LuCI.ui.Dropdown#getValue"><a href=
"LuCI.ui.Dropdown.html#getValue">getValue
</a></li>
3051 <li data-name=
"LuCI.ui.Dropdown#isChanged"><a href=
"LuCI.ui.Dropdown.html#isChanged">isChanged
</a></li>
3053 <li data-name=
"LuCI.ui.Dropdown#isValid"><a href=
"LuCI.ui.Dropdown.html#isValid">isValid
</a></li>
3055 <li data-name=
"LuCI.ui.Dropdown#registerEvents"><a href=
"LuCI.ui.Dropdown.html#registerEvents">registerEvents
</a></li>
3057 <li data-name=
"LuCI.ui.Dropdown#render"><a href=
"LuCI.ui.Dropdown.html#render">render
</a></li>
3059 <li data-name=
"LuCI.ui.Dropdown#setChangeEvents"><a href=
"LuCI.ui.Dropdown.html#setChangeEvents">setChangeEvents
</a></li>
3061 <li data-name=
"LuCI.ui.Dropdown#setPlaceholder"><a href=
"LuCI.ui.Dropdown.html#setPlaceholder">setPlaceholder
</a></li>
3063 <li data-name=
"LuCI.ui.Dropdown#setUpdateEvents"><a href=
"LuCI.ui.Dropdown.html#setUpdateEvents">setUpdateEvents
</a></li>
3065 <li data-name=
"LuCI.ui.Dropdown#setValue"><a href=
"LuCI.ui.Dropdown.html#setValue">setValue
</a></li>
3067 <li data-name=
"LuCI.ui.Dropdown#triggerValidation"><a href=
"LuCI.ui.Dropdown.html#triggerValidation">triggerValidation
</a></li>
3070 <ul class=
"events itemMembers">
3075 <li class=
"item" data-name=
"LuCI.ui.DynamicList">
3076 <span class=
"title">
3077 <a href=
"LuCI.ui.DynamicList.html">LuCI.ui.DynamicList
</a>
3080 <ul class=
"members itemMembers">
3083 <ul class=
"typedefs itemMembers">
3085 <span class=
"subtitle">Typedefs
</span>
3087 <li data-name=
"LuCI.ui.DynamicList.InitOptions"><a href=
"LuCI.ui.DynamicList.html#.InitOptions">InitOptions
</a></li>
3090 <ul class=
"typedefs itemMembers">
3093 <ul class=
"methods itemMembers">
3095 <span class=
"subtitle">Methods
</span>
3097 <li data-name=
"LuCI.ui.DynamicList#addChoices"><a href=
"LuCI.ui.DynamicList.html#addChoices">addChoices
</a></li>
3099 <li data-name=
"LuCI.ui.DynamicList#clearChoices"><a href=
"LuCI.ui.DynamicList.html#clearChoices">clearChoices
</a></li>
3101 <li data-name=
"LuCI.ui.DynamicList#getValidationError"><a href=
"LuCI.ui.DynamicList.html#getValidationError">getValidationError
</a></li>
3103 <li data-name=
"LuCI.ui.DynamicList#getValue"><a href=
"LuCI.ui.DynamicList.html#getValue">getValue
</a></li>
3105 <li data-name=
"LuCI.ui.DynamicList#isChanged"><a href=
"LuCI.ui.DynamicList.html#isChanged">isChanged
</a></li>
3107 <li data-name=
"LuCI.ui.DynamicList#isValid"><a href=
"LuCI.ui.DynamicList.html#isValid">isValid
</a></li>
3109 <li data-name=
"LuCI.ui.DynamicList#registerEvents"><a href=
"LuCI.ui.DynamicList.html#registerEvents">registerEvents
</a></li>
3111 <li data-name=
"LuCI.ui.DynamicList#render"><a href=
"LuCI.ui.DynamicList.html#render">render
</a></li>
3113 <li data-name=
"LuCI.ui.DynamicList#setChangeEvents"><a href=
"LuCI.ui.DynamicList.html#setChangeEvents">setChangeEvents
</a></li>
3115 <li data-name=
"LuCI.ui.DynamicList#setPlaceholder"><a href=
"LuCI.ui.DynamicList.html#setPlaceholder">setPlaceholder
</a></li>
3117 <li data-name=
"LuCI.ui.DynamicList#setUpdateEvents"><a href=
"LuCI.ui.DynamicList.html#setUpdateEvents">setUpdateEvents
</a></li>
3119 <li data-name=
"LuCI.ui.DynamicList#setValue"><a href=
"LuCI.ui.DynamicList.html#setValue">setValue
</a></li>
3121 <li data-name=
"LuCI.ui.DynamicList#triggerValidation"><a href=
"LuCI.ui.DynamicList.html#triggerValidation">triggerValidation
</a></li>
3124 <ul class=
"events itemMembers">
3129 <li class=
"item" data-name=
"LuCI.ui.FileUpload">
3130 <span class=
"title">
3131 <a href=
"LuCI.ui.FileUpload.html">LuCI.ui.FileUpload
</a>
3134 <ul class=
"members itemMembers">
3137 <ul class=
"typedefs itemMembers">
3139 <span class=
"subtitle">Typedefs
</span>
3141 <li data-name=
"LuCI.ui.FileUpload.InitOptions"><a href=
"LuCI.ui.FileUpload.html#.InitOptions">InitOptions
</a></li>
3144 <ul class=
"typedefs itemMembers">
3147 <ul class=
"methods itemMembers">
3149 <span class=
"subtitle">Methods
</span>
3151 <li data-name=
"LuCI.ui.FileUpload#getValidationError"><a href=
"LuCI.ui.FileUpload.html#getValidationError">getValidationError
</a></li>
3153 <li data-name=
"LuCI.ui.FileUpload#getValue"><a href=
"LuCI.ui.FileUpload.html#getValue">getValue
</a></li>
3155 <li data-name=
"LuCI.ui.FileUpload#isChanged"><a href=
"LuCI.ui.FileUpload.html#isChanged">isChanged
</a></li>
3157 <li data-name=
"LuCI.ui.FileUpload#isValid"><a href=
"LuCI.ui.FileUpload.html#isValid">isValid
</a></li>
3159 <li data-name=
"LuCI.ui.FileUpload#registerEvents"><a href=
"LuCI.ui.FileUpload.html#registerEvents">registerEvents
</a></li>
3161 <li data-name=
"LuCI.ui.FileUpload#render"><a href=
"LuCI.ui.FileUpload.html#render">render
</a></li>
3163 <li data-name=
"LuCI.ui.FileUpload#setChangeEvents"><a href=
"LuCI.ui.FileUpload.html#setChangeEvents">setChangeEvents
</a></li>
3165 <li data-name=
"LuCI.ui.FileUpload#setPlaceholder"><a href=
"LuCI.ui.FileUpload.html#setPlaceholder">setPlaceholder
</a></li>
3167 <li data-name=
"LuCI.ui.FileUpload#setUpdateEvents"><a href=
"LuCI.ui.FileUpload.html#setUpdateEvents">setUpdateEvents
</a></li>
3169 <li data-name=
"LuCI.ui.FileUpload#setValue"><a href=
"LuCI.ui.FileUpload.html#setValue">setValue
</a></li>
3171 <li data-name=
"LuCI.ui.FileUpload#triggerValidation"><a href=
"LuCI.ui.FileUpload.html#triggerValidation">triggerValidation
</a></li>
3174 <ul class=
"events itemMembers">
3179 <li class=
"item" data-name=
"LuCI.ui.Hiddenfield">
3180 <span class=
"title">
3181 <a href=
"LuCI.ui.Hiddenfield.html">LuCI.ui.Hiddenfield
</a>
3184 <ul class=
"members itemMembers">
3187 <ul class=
"typedefs itemMembers">
3190 <ul class=
"typedefs itemMembers">
3193 <ul class=
"methods itemMembers">
3195 <span class=
"subtitle">Methods
</span>
3197 <li data-name=
"LuCI.ui.Hiddenfield#getValidationError"><a href=
"LuCI.ui.Hiddenfield.html#getValidationError">getValidationError
</a></li>
3199 <li data-name=
"LuCI.ui.Hiddenfield#getValue"><a href=
"LuCI.ui.Hiddenfield.html#getValue">getValue
</a></li>
3201 <li data-name=
"LuCI.ui.Hiddenfield#isChanged"><a href=
"LuCI.ui.Hiddenfield.html#isChanged">isChanged
</a></li>
3203 <li data-name=
"LuCI.ui.Hiddenfield#isValid"><a href=
"LuCI.ui.Hiddenfield.html#isValid">isValid
</a></li>
3205 <li data-name=
"LuCI.ui.Hiddenfield#registerEvents"><a href=
"LuCI.ui.Hiddenfield.html#registerEvents">registerEvents
</a></li>
3207 <li data-name=
"LuCI.ui.Hiddenfield#render"><a href=
"LuCI.ui.Hiddenfield.html#render">render
</a></li>
3209 <li data-name=
"LuCI.ui.Hiddenfield#setChangeEvents"><a href=
"LuCI.ui.Hiddenfield.html#setChangeEvents">setChangeEvents
</a></li>
3211 <li data-name=
"LuCI.ui.Hiddenfield#setPlaceholder"><a href=
"LuCI.ui.Hiddenfield.html#setPlaceholder">setPlaceholder
</a></li>
3213 <li data-name=
"LuCI.ui.Hiddenfield#setUpdateEvents"><a href=
"LuCI.ui.Hiddenfield.html#setUpdateEvents">setUpdateEvents
</a></li>
3215 <li data-name=
"LuCI.ui.Hiddenfield#setValue"><a href=
"LuCI.ui.Hiddenfield.html#setValue">setValue
</a></li>
3217 <li data-name=
"LuCI.ui.Hiddenfield#triggerValidation"><a href=
"LuCI.ui.Hiddenfield.html#triggerValidation">triggerValidation
</a></li>
3220 <ul class=
"events itemMembers">
3225 <li class=
"item" data-name=
"LuCI.ui.menu">
3226 <span class=
"title">
3227 <a href=
"LuCI.ui.menu.html">LuCI.ui.menu
</a>
3230 <ul class=
"members itemMembers">
3233 <ul class=
"typedefs itemMembers">
3235 <span class=
"subtitle">Typedefs
</span>
3237 <li data-name=
"LuCI.ui.menu.MenuNode"><a href=
"LuCI.ui.menu.html#.MenuNode">MenuNode
</a></li>
3240 <ul class=
"typedefs itemMembers">
3243 <ul class=
"methods itemMembers">
3245 <span class=
"subtitle">Methods
</span>
3247 <li data-name=
"LuCI.ui.menu#flushCache"><a href=
"LuCI.ui.menu.html#flushCache">flushCache
</a></li>
3249 <li data-name=
"LuCI.ui.menu#getChildren"><a href=
"LuCI.ui.menu.html#getChildren">getChildren
</a></li>
3251 <li data-name=
"LuCI.ui.menu#load"><a href=
"LuCI.ui.menu.html#load">load
</a></li>
3254 <ul class=
"events itemMembers">
3259 <li class=
"item" data-name=
"LuCI.ui.Select">
3260 <span class=
"title">
3261 <a href=
"LuCI.ui.Select.html">LuCI.ui.Select
</a>
3264 <ul class=
"members itemMembers">
3267 <ul class=
"typedefs itemMembers">
3269 <span class=
"subtitle">Typedefs
</span>
3271 <li data-name=
"LuCI.ui.Select.InitOptions"><a href=
"LuCI.ui.Select.html#.InitOptions">InitOptions
</a></li>
3274 <ul class=
"typedefs itemMembers">
3277 <ul class=
"methods itemMembers">
3279 <span class=
"subtitle">Methods
</span>
3281 <li data-name=
"LuCI.ui.Select#getValidationError"><a href=
"LuCI.ui.Select.html#getValidationError">getValidationError
</a></li>
3283 <li data-name=
"LuCI.ui.Select#getValue"><a href=
"LuCI.ui.Select.html#getValue">getValue
</a></li>
3285 <li data-name=
"LuCI.ui.Select#isChanged"><a href=
"LuCI.ui.Select.html#isChanged">isChanged
</a></li>
3287 <li data-name=
"LuCI.ui.Select#isValid"><a href=
"LuCI.ui.Select.html#isValid">isValid
</a></li>
3289 <li data-name=
"LuCI.ui.Select#registerEvents"><a href=
"LuCI.ui.Select.html#registerEvents">registerEvents
</a></li>
3291 <li data-name=
"LuCI.ui.Select#render"><a href=
"LuCI.ui.Select.html#render">render
</a></li>
3293 <li data-name=
"LuCI.ui.Select#setChangeEvents"><a href=
"LuCI.ui.Select.html#setChangeEvents">setChangeEvents
</a></li>
3295 <li data-name=
"LuCI.ui.Select#setPlaceholder"><a href=
"LuCI.ui.Select.html#setPlaceholder">setPlaceholder
</a></li>
3297 <li data-name=
"LuCI.ui.Select#setUpdateEvents"><a href=
"LuCI.ui.Select.html#setUpdateEvents">setUpdateEvents
</a></li>
3299 <li data-name=
"LuCI.ui.Select#setValue"><a href=
"LuCI.ui.Select.html#setValue">setValue
</a></li>
3301 <li data-name=
"LuCI.ui.Select#triggerValidation"><a href=
"LuCI.ui.Select.html#triggerValidation">triggerValidation
</a></li>
3304 <ul class=
"events itemMembers">
3309 <li class=
"item" data-name=
"LuCI.ui.tabs">
3310 <span class=
"title">
3311 <a href=
"LuCI.ui.tabs.html">LuCI.ui.tabs
</a>
3314 <ul class=
"members itemMembers">
3317 <ul class=
"typedefs itemMembers">
3320 <ul class=
"typedefs itemMembers">
3323 <ul class=
"methods itemMembers">
3325 <span class=
"subtitle">Methods
</span>
3327 <li data-name=
"LuCI.ui.tabs#initTabGroup"><a href=
"LuCI.ui.tabs.html#initTabGroup">initTabGroup
</a></li>
3329 <li data-name=
"LuCI.ui.tabs#isEmptyPane"><a href=
"LuCI.ui.tabs.html#isEmptyPane">isEmptyPane
</a></li>
3332 <ul class=
"events itemMembers">
3337 <li class=
"item" data-name=
"LuCI.ui.Textarea">
3338 <span class=
"title">
3339 <a href=
"LuCI.ui.Textarea.html">LuCI.ui.Textarea
</a>
3342 <ul class=
"members itemMembers">
3345 <ul class=
"typedefs itemMembers">
3347 <span class=
"subtitle">Typedefs
</span>
3349 <li data-name=
"LuCI.ui.Textarea.InitOptions"><a href=
"LuCI.ui.Textarea.html#.InitOptions">InitOptions
</a></li>
3352 <ul class=
"typedefs itemMembers">
3355 <ul class=
"methods itemMembers">
3357 <span class=
"subtitle">Methods
</span>
3359 <li data-name=
"LuCI.ui.Textarea#getValidationError"><a href=
"LuCI.ui.Textarea.html#getValidationError">getValidationError
</a></li>
3361 <li data-name=
"LuCI.ui.Textarea#getValue"><a href=
"LuCI.ui.Textarea.html#getValue">getValue
</a></li>
3363 <li data-name=
"LuCI.ui.Textarea#isChanged"><a href=
"LuCI.ui.Textarea.html#isChanged">isChanged
</a></li>
3365 <li data-name=
"LuCI.ui.Textarea#isValid"><a href=
"LuCI.ui.Textarea.html#isValid">isValid
</a></li>
3367 <li data-name=
"LuCI.ui.Textarea#registerEvents"><a href=
"LuCI.ui.Textarea.html#registerEvents">registerEvents
</a></li>
3369 <li data-name=
"LuCI.ui.Textarea#render"><a href=
"LuCI.ui.Textarea.html#render">render
</a></li>
3371 <li data-name=
"LuCI.ui.Textarea#setChangeEvents"><a href=
"LuCI.ui.Textarea.html#setChangeEvents">setChangeEvents
</a></li>
3373 <li data-name=
"LuCI.ui.Textarea#setPlaceholder"><a href=
"LuCI.ui.Textarea.html#setPlaceholder">setPlaceholder
</a></li>
3375 <li data-name=
"LuCI.ui.Textarea#setUpdateEvents"><a href=
"LuCI.ui.Textarea.html#setUpdateEvents">setUpdateEvents
</a></li>
3377 <li data-name=
"LuCI.ui.Textarea#setValue"><a href=
"LuCI.ui.Textarea.html#setValue">setValue
</a></li>
3379 <li data-name=
"LuCI.ui.Textarea#triggerValidation"><a href=
"LuCI.ui.Textarea.html#triggerValidation">triggerValidation
</a></li>
3382 <ul class=
"events itemMembers">
3387 <li class=
"item" data-name=
"LuCI.ui.Textfield">
3388 <span class=
"title">
3389 <a href=
"LuCI.ui.Textfield.html">LuCI.ui.Textfield
</a>
3392 <ul class=
"members itemMembers">
3395 <ul class=
"typedefs itemMembers">
3397 <span class=
"subtitle">Typedefs
</span>
3399 <li data-name=
"LuCI.ui.Textfield.InitOptions"><a href=
"LuCI.ui.Textfield.html#.InitOptions">InitOptions
</a></li>
3402 <ul class=
"typedefs itemMembers">
3405 <ul class=
"methods itemMembers">
3407 <span class=
"subtitle">Methods
</span>
3409 <li data-name=
"LuCI.ui.Textfield#getValidationError"><a href=
"LuCI.ui.Textfield.html#getValidationError">getValidationError
</a></li>
3411 <li data-name=
"LuCI.ui.Textfield#getValue"><a href=
"LuCI.ui.Textfield.html#getValue">getValue
</a></li>
3413 <li data-name=
"LuCI.ui.Textfield#isChanged"><a href=
"LuCI.ui.Textfield.html#isChanged">isChanged
</a></li>
3415 <li data-name=
"LuCI.ui.Textfield#isValid"><a href=
"LuCI.ui.Textfield.html#isValid">isValid
</a></li>
3417 <li data-name=
"LuCI.ui.Textfield#registerEvents"><a href=
"LuCI.ui.Textfield.html#registerEvents">registerEvents
</a></li>
3419 <li data-name=
"LuCI.ui.Textfield#render"><a href=
"LuCI.ui.Textfield.html#render">render
</a></li>
3421 <li data-name=
"LuCI.ui.Textfield#setChangeEvents"><a href=
"LuCI.ui.Textfield.html#setChangeEvents">setChangeEvents
</a></li>
3423 <li data-name=
"LuCI.ui.Textfield#setPlaceholder"><a href=
"LuCI.ui.Textfield.html#setPlaceholder">setPlaceholder
</a></li>
3425 <li data-name=
"LuCI.ui.Textfield#setUpdateEvents"><a href=
"LuCI.ui.Textfield.html#setUpdateEvents">setUpdateEvents
</a></li>
3427 <li data-name=
"LuCI.ui.Textfield#setValue"><a href=
"LuCI.ui.Textfield.html#setValue">setValue
</a></li>
3429 <li data-name=
"LuCI.ui.Textfield#triggerValidation"><a href=
"LuCI.ui.Textfield.html#triggerValidation">triggerValidation
</a></li>
3432 <ul class=
"events itemMembers">
3437 <li class=
"item" data-name=
"LuCI.view">
3438 <span class=
"title">
3439 <a href=
"LuCI.view.html">LuCI.view
</a>
3442 <ul class=
"members itemMembers">
3445 <ul class=
"typedefs itemMembers">
3448 <ul class=
"typedefs itemMembers">
3451 <ul class=
"methods itemMembers">
3453 <span class=
"subtitle">Methods
</span>
3455 <li data-name=
"LuCI.view#addFooter"><a href=
"LuCI.view.html#addFooter">addFooter
</a></li>
3457 <li data-name=
"LuCI.view#handleReset"><a href=
"LuCI.view.html#handleReset">handleReset
</a></li>
3459 <li data-name=
"LuCI.view#handleSave"><a href=
"LuCI.view.html#handleSave">handleSave
</a></li>
3461 <li data-name=
"LuCI.view#handleSaveApply"><a href=
"LuCI.view.html#handleSaveApply">handleSaveApply
</a></li>
3463 <li data-name=
"LuCI.view#load"><a href=
"LuCI.view.html#load">load
</a></li>
3465 <li data-name=
"LuCI.view#render"><a href=
"LuCI.view.html#render">render
</a></li>
3468 <ul class=
"events itemMembers">
3473 <li class=
"item" data-name=
"LuCI.xhr">
3474 <span class=
"title">
3475 <a href=
"LuCI.xhr.html">LuCI.xhr
</a>
3478 <ul class=
"members itemMembers">
3481 <ul class=
"typedefs itemMembers">
3484 <ul class=
"typedefs itemMembers">
3487 <ul class=
"methods itemMembers">
3489 <span class=
"subtitle">Methods
</span>
3491 <li data-name=
"LuCI.xhr#abort"><a href=
"LuCI.xhr.html#abort">abort
</a></li>
3493 <li data-name=
"LuCI.xhr#busy"><a href=
"LuCI.xhr.html#busy">busy
</a></li>
3495 <li data-name=
"LuCI.xhr#cancel"><a href=
"LuCI.xhr.html#cancel">cancel
</a></li>
3497 <li data-name=
"LuCI.xhr#get"><a href=
"LuCI.xhr.html#get">get
</a></li>
3499 <li data-name=
"LuCI.xhr#post"><a href=
"LuCI.xhr.html#post">post
</a></li>
3501 <li data-name=
"LuCI.xhr#send_form"><a href=
"LuCI.xhr.html#send_form">send_form
</a></li>
3504 <ul class=
"events itemMembers">
3512 <h1 class=
"page-title" data-filename=
"form.js.html">Source: form.js
</h1>
3519 <pre id=
"source-code" class=
"prettyprint source "><code>'use strict';
3524 'require baseclass';
3528 var callSessionAccess = rpc.declare({
3531 params: [ 'scope', 'object', 'function' ],
3532 expect: { 'access': false }
3535 var CBIJSONConfig = baseclass.extend({
3536 __init__: function(data) {
3537 data = Object.assign({}, data);
3541 var num_sections =
0,
3544 for (var sectiontype in data) {
3545 if (!data.hasOwnProperty(sectiontype))
3548 if (Array.isArray(data[sectiontype])) {
3549 for (var i =
0, index =
0; i
< data[sectiontype].length; i++) {
3550 var item = data[sectiontype][i],
3553 if (!L.isObject(item))
3556 if (typeof(item['.name']) == 'string') {
3557 name = item['.name'];
3561 name = sectiontype + num_sections;
3565 if (!this.data.hasOwnProperty(name))
3566 section_ids.push(name);
3568 this.data[name] = Object.assign(item, {
3569 '.index': num_sections++,
3570 '.anonymous': anonymous,
3572 '.type': sectiontype
3576 else if (L.isObject(data[sectiontype])) {
3577 this.data[sectiontype] = Object.assign(data[sectiontype], {
3578 '.anonymous': false,
3579 '.name': sectiontype,
3580 '.type': sectiontype
3583 section_ids.push(sectiontype);
3588 section_ids.sort(L.bind(function(a, b) {
3589 var indexA = (this.data[a]['.index'] != null) ? +this.data[a]['.index'] :
9999,
3590 indexB = (this.data[b]['.index'] != null) ? +this.data[b]['.index'] :
9999;
3592 if (indexA != indexB)
3593 return (indexA - indexB);
3595 return L.naturalCompare(a, b);
3598 for (var i =
0; i
< section_ids.length; i++)
3599 this.data[section_ids[i]]['.index'] = i;
3603 return Promise.resolve(this.data);
3607 return Promise.resolve();
3610 get: function(config, section, option) {
3611 if (section == null)
3615 return this.data[section];
3617 if (!this.data.hasOwnProperty(section))
3620 var value = this.data[section][option];
3622 if (Array.isArray(value))
3626 return String(value);
3631 set: function(config, section, option, value) {
3632 if (section == null || option == null || option.charAt(
0) == '.')
3635 if (!this.data.hasOwnProperty(section))
3639 delete this.data[section][option];
3640 else if (Array.isArray(value))
3641 this.data[section][option] = value;
3643 this.data[section][option] = String(value);
3646 unset: function(config, section, option) {
3647 return this.set(config, section, option, null);
3650 sections: function(config, sectiontype, callback) {
3653 for (var section_id in this.data)
3654 if (sectiontype == null || this.data[section_id]['.type'] == sectiontype)
3655 rv.push(this.data[section_id]);
3657 rv.sort(function(a, b) { return a['.index'] - b['.index'] });
3659 if (typeof(callback) == 'function')
3660 for (var i =
0; i
< rv.length; i++)
3661 callback.call(this, rv[i], rv[i]['.name']);
3666 add: function(config, sectiontype, sectionname) {
3667 var num_sections_type =
0, next_index =
0;
3669 for (var name in this.data) {
3670 num_sections_type += (this.data[name]['.type'] == sectiontype);
3671 next_index = Math.max(next_index, this.data[name]['.index']);
3674 var section_id = sectionname || sectiontype + num_sections_type;
3676 if (!this.data.hasOwnProperty(section_id)) {
3677 this.data[section_id] = {
3678 '.name': section_id,
3679 '.type': sectiontype,
3680 '.anonymous': (sectionname == null),
3681 '.index': next_index +
1
3688 remove: function(config, section) {
3689 if (this.data.hasOwnProperty(section))
3690 delete this.data[section];
3693 resolveSID: function(config, section_id) {
3697 move: function(config, section_id1, section_id2, after) {
3698 return uci.move.apply(this, [config, section_id1, section_id2, after]);
3703 * @class AbstractElement
3704 * @memberof LuCI.form
3708 * The `AbstractElement` class serves as abstract base for the different form
3709 * elements implemented by `LuCI.form`. It provides the common logic for
3710 * loading and rendering values, for nesting elements and for defining common
3713 * This class is private and not directly accessible by user code.
3715 var CBIAbstractElement = baseclass.extend(/** @lends LuCI.form.AbstractElement.prototype */ {
3716 __init__: function(title, description) {
3717 this.title = title || '';
3718 this.description = description || '';
3723 * Add another form element as children to this element.
3725 * @param {AbstractElement} obj
3726 * The form element to add.
3728 append: function(obj) {
3729 this.children.push(obj);
3733 * Parse this elements form input.
3735 * The `parse()` function recursively walks the form element tree and
3736 * triggers input value reading and validation for each encountered element.
3738 * Elements which are hidden due to unsatisfied dependencies are skipped.
3740 * @returns {Promise
<void
>}
3741 * Returns a promise resolving once this element's value and the values of
3742 * all child elements have been parsed. The returned promise is rejected
3743 * if any parsed values are not meeting the validation constraints of their
3744 * respective elements.
3747 var args = arguments;
3748 this.children.forEach(function(child) {
3749 child.parse.apply(child, args);
3754 * Render the form element.
3756 * The `render()` function recursively walks the form element tree and
3757 * renders the markup for each element, returning the assembled DOM tree.
3760 * @returns {Node|Promise
<Node
>}
3761 * May return a DOM Node or a promise resolving to a DOM node containing
3762 * the form element's markup, including the markup of any child elements.
3764 render: function() {
3765 L.error('InternalError', 'Not implemented');
3769 loadChildren: function(/* ... */) {
3772 if (Array.isArray(this.children))
3773 for (var i =
0; i
< this.children.length; i++)
3774 if (!this.children[i].disable)
3775 tasks.push(this.children[i].load.apply(this.children[i], arguments));
3777 return Promise.all(tasks);
3781 renderChildren: function(tab_name /*, ... */) {
3785 if (Array.isArray(this.children))
3786 for (var i =
0; i
< this.children.length; i++)
3787 if (tab_name === null || this.children[i].tab === tab_name)
3788 if (!this.children[i].disable)
3789 tasks.push(this.children[i].render.apply(
3790 this.children[i], this.varargs(arguments,
1, index++)));
3792 return Promise.all(tasks);
3796 * Strip any HTML tags from the given input string.
3799 * The input string to clean.
3802 * The cleaned input string with HTML tags removed.
3804 stripTags: function(s) {
3805 if (typeof(s) == 'string'
&& !s.match(/[
<>]/))
3808 var x = dom.elem(s) ? s : dom.parse('
<div
>' + s + '
</div
>');
3810 x.querySelectorAll('br').forEach(function(br) {
3811 x.replaceChild(document.createTextNode('\n'), br);
3814 return (x.textContent || x.innerText || '').replace(/([ \t]*\n)+/g, '\n');
3818 * Format the given named property as title string.
3820 * This function looks up the given named property and formats its value
3821 * suitable for use as element caption or description string. It also
3822 * strips any HTML tags from the result.
3824 * If the property value is a string, it is passed to `String.format()`
3825 * along with any additional parameters passed to `titleFn()`.
3827 * If the property value is a function, it is invoked with any additional
3828 * `titleFn()` parameters as arguments and the obtained return value is
3829 * converted to a string.
3831 * In all other cases, `null` is returned.
3833 * @param {string} property
3834 * The name of the element property to use.
3836 * @param {...*} fmt_args
3837 * Extra values to format the title string with.
3839 * @returns {string|null}
3840 * The formatted title string or `null` if the property did not exist or
3841 * was neither a string nor a function.
3843 titleFn: function(attr /*, ... */) {
3846 if (typeof(this[attr]) == 'function')
3847 s = this[attr].apply(this, this.varargs(arguments,
1));
3848 else if (typeof(this[attr]) == 'string')
3849 s = (arguments.length
> 1) ? ''.format.apply(this[attr], this.varargs(arguments,
1)) : this[attr];
3852 s = this.stripTags(String(s)).trim();
3854 if (s == null || s == '')
3863 * @memberof LuCI.form
3864 * @augments LuCI.form.AbstractElement
3868 * The `Map` class represents one complete form. A form usually maps one UCI
3869 * configuration file and is divided into multiple sections containing multiple
3872 * It serves as main entry point into the `LuCI.form` for typical view code.
3874 * @param {string} config
3875 * The UCI configuration to map. It is automatically loaded along when the
3876 * resulting map instance.
3878 * @param {string} [title]
3879 * The title caption of the form. A form title is usually rendered as separate
3880 * headline element before the actual form contents. If omitted, the
3881 * corresponding headline element will not be rendered.
3883 * @param {string} [description]
3884 * The description text of the form which is usually rendered as text
3885 * paragraph below the form title and before the actual form contents.
3886 * If omitted, the corresponding paragraph element will not be rendered.
3888 var CBIMap = CBIAbstractElement.extend(/** @lends LuCI.form.Map.prototype */ {
3889 __init__: function(config /*, ... */) {
3890 this.super('__init__', this.varargs(arguments,
1));
3892 this.config = config;
3893 this.parsechain = [ config ];
3898 * Toggle readonly state of the form.
3900 * If set to `true`, the Map instance is marked readonly and any form
3901 * option elements added to it will inherit the readonly state.
3903 * If left unset, the Map will test the access permission of the primary
3904 * uci configuration upon loading and mark the form readonly if no write
3905 * permissions are granted.
3907 * @name LuCI.form.Map.prototype#readonly
3912 * Find all DOM nodes within this Map which match the given search
3913 * parameters. This function is essentially a convenience wrapper around
3914 * `querySelectorAll()`.
3916 * This function is sensitive to the amount of arguments passed to it;
3917 * if only one argument is specified, it is used as selector-expression
3918 * as-is. When two arguments are passed, the first argument is treated
3919 * as attribute name, the second one as attribute value to match.
3921 * As an example, `map.findElements('input')` would find all `
<input
>`
3922 * nodes while `map.findElements('type', 'text')` would find any DOM node
3923 * with a `
type=
"text"` attribute.
3925 * @param {string} selector_or_attrname
3926 * If invoked with only one parameter, this argument is a
3927 * `querySelectorAll()` compatible selector expression. If invoked with
3928 * two parameters, this argument is the attribute name to filter for.
3930 * @param {string} [attrvalue]
3931 * In case the function is invoked with two parameters, this argument
3932 * specifies the attribute value to match.
3934 * @throws {InternalError}
3935 * Throws an `InternalError` if more than two function parameters are
3938 * @returns {NodeList}
3939 * Returns a (possibly empty) DOM `NodeList` containing the found DOM nodes.
3941 findElements: function(/* ... */) {
3944 if (arguments.length ==
1)
3946 else if (arguments.length ==
2)
3947 q = '[%
s=
"%s"]'.format(arguments[
0], arguments[
1]);
3949 L.error('InternalError', 'Expecting one or two arguments to findElements()');
3951 return this.root.querySelectorAll(q);
3955 * Find the first DOM node within this Map which matches the given search
3956 * parameters. This function is essentially a convenience wrapper around
3957 * `findElements()` which only returns the first found node.
3959 * This function is sensitive to the amount of arguments passed to it;
3960 * if only one argument is specified, it is used as selector-expression
3961 * as-is. When two arguments are passed, the first argument is treated
3962 * as attribute name, the second one as attribute value to match.
3964 * As an example, `map.findElement('input')` would find the first `
<input
>`
3965 * node while `map.findElement('type', 'text')` would find the first DOM
3966 * node with a `
type=
"text"` attribute.
3968 * @param {string} selector_or_attrname
3969 * If invoked with only one parameter, this argument is a `querySelector()`
3970 * compatible selector expression. If invoked with two parameters, this
3971 * argument is the attribute name to filter for.
3973 * @param {string} [attrvalue]
3974 * In case the function is invoked with two parameters, this argument
3975 * specifies the attribute value to match.
3977 * @throws {InternalError}
3978 * Throws an `InternalError` if more than two function parameters are
3981 * @returns {Node|null}
3982 * Returns the first found DOM node or `null` if no element matched.
3984 findElement: function(/* ... */) {
3985 var res = this.findElements.apply(this, arguments);
3986 return res.length ? res[
0] : null;
3990 * Tie another UCI configuration to the map.
3992 * By default, a map instance will only load the UCI configuration file
3993 * specified in the constructor but sometimes access to values from
3994 * further configuration files is required. This function allows for such
3995 * use cases by registering further UCI configuration files which are
3996 * needed by the map.
3998 * @param {string} config
3999 * The additional UCI configuration file to tie to the map. If the given
4000 * config already is in the list of required files, it will be ignored.
4002 chain: function(config) {
4003 if (this.parsechain.indexOf(config) == -
1)
4004 this.parsechain.push(config);
4008 * Add a configuration section to the map.
4010 * LuCI forms follow the structure of the underlying UCI configurations,
4011 * means that a map, which represents a single UCI configuration, is
4012 * divided into multiple sections which in turn contain an arbitrary
4013 * number of options.
4015 * While UCI itself only knows two kinds of sections - named and anonymous
4016 * ones - the form class offers various flavors of form section elements
4017 * to present configuration sections in different ways. Refer to the
4018 * documentation of the different section classes for details.
4020 * @param {LuCI.form.AbstractSection} sectionclass
4021 * The section class to use for rendering the configuration section.
4022 * Note that this value must be the class itself, not a class instance
4023 * obtained from calling `new`. It must also be a class derived from
4024 * `LuCI.form.AbstractSection`.
4026 * @param {...string} classargs
4027 * Additional arguments which are passed as-is to the constructor of the
4028 * given section class. Refer to the class specific constructor
4029 * documentation for details.
4031 * @returns {LuCI.form.AbstractSection}
4032 * Returns the instantiated section class instance.
4034 section: function(cbiClass /*, ... */) {
4035 if (!CBIAbstractSection.isSubclass(cbiClass))
4036 L.error('TypeError', 'Class must be a descendent of CBIAbstractSection');
4038 var obj = cbiClass.instantiate(this.varargs(arguments,
1, this));
4044 * Load the configuration covered by this map.
4046 * The `load()` function first loads all referenced UCI configurations,
4047 * then it recursively walks the form element tree and invokes the
4048 * load function of each child element.
4050 * @returns {Promise
<void
>}
4051 * Returns a promise resolving once the entire form completed loading all
4052 * data. The promise may reject with an error if any configuration failed
4053 * to load or if any of the child elements load functions rejected with
4057 var doCheckACL = (!(this instanceof CBIJSONMap)
&& this.readonly == null),
4058 loadTasks = [ doCheckACL ? callSessionAccess('uci', this.config, 'write') : true ],
4059 configs = this.parsechain || [ this.config ];
4061 loadTasks.push.apply(loadTasks, configs.map(L.bind(function(config, i) {
4062 return i ? L.resolveDefault(this.data.load(config)) : this.data.load(config);
4065 return Promise.all(loadTasks).then(L.bind(function(res) {
4066 if (res[
0] === false)
4067 this.readonly = true;
4069 return this.loadChildren();
4074 * Parse the form input values.
4076 * The `parse()` function recursively walks the form element tree and
4077 * triggers input value reading and validation for each child element.
4079 * Elements which are hidden due to unsatisfied dependencies are skipped.
4081 * @returns {Promise
<void
>}
4082 * Returns a promise resolving once the entire form completed parsing all
4083 * input values. The returned promise is rejected if any parsed values are
4084 * not meeting the validation constraints of their respective elements.
4089 if (Array.isArray(this.children))
4090 for (var i =
0; i
< this.children.length; i++)
4091 tasks.push(this.children[i].parse());
4093 return Promise.all(tasks);
4097 * Save the form input values.
4099 * This function parses the current form, saves the resulting UCI changes,
4100 * reloads the UCI configuration data and redraws the form elements.
4102 * @param {function} [cb]
4103 * An optional callback function that is invoked after the form is parsed
4104 * but before the changed UCI data is saved. This is useful to perform
4105 * additional data manipulation steps before saving the changes.
4107 * @param {boolean} [silent=false]
4108 * If set to `true`, trigger an alert message to the user in case saving
4109 * the form data failures. Otherwise fail silently.
4111 * @returns {Promise
<void
>}
4112 * Returns a promise resolving once the entire save operation is complete.
4113 * The returned promise is rejected if any step of the save operation
4116 save: function(cb, silent) {
4117 this.checkDepends();
4121 .then(this.data.save.bind(this.data))
4122 .then(this.load.bind(this))
4123 .catch(function(e) {
4125 ui.showModal(_('Save error'), [
4126 E('p', {}, [ _('An error occurred while saving the form:') ]),
4127 E('p', {}, [ E('em', { 'style': 'white-space:pre-wrap' }, [ e.message ]) ]),
4128 E('div', { 'class': 'right' }, [
4129 E('button', { 'class': 'cbi-button', 'click': ui.hideModal }, [ _('Dismiss') ])
4134 return Promise.reject(e);
4135 }).then(this.renderContents.bind(this));
4139 * Reset the form by re-rendering its contents. This will revert all
4140 * unsaved user inputs to their initial form state.
4142 * @returns {Promise
<Node
>}
4143 * Returns a promise resolving to the toplevel form DOM node once the
4144 * re-rendering is complete.
4147 return this.renderContents();
4151 * Render the form markup.
4153 * @returns {Promise
<Node
>}
4154 * Returns a promise resolving to the toplevel form DOM node once the
4155 * rendering is complete.
4157 render: function() {
4158 return this.load().then(this.renderContents.bind(this));
4162 renderContents: function() {
4163 var mapEl = this.root || (this.root = E('div', {
4164 'id': 'cbi-%s'.format(this.config),
4166 'cbi-dependency-check': L.bind(this.checkDepends, this)
4169 dom.bindClassInstance(mapEl, this);
4171 return this.renderChildren(null).then(L.bind(function(nodes) {
4172 var initialRender = !mapEl.firstChild;
4174 dom.content(mapEl, null);
4176 if (this.title != null
&& this.title != '')
4177 mapEl.appendChild(E('h2', { 'name': 'content' }, this.title));
4179 if (this.description != null
&& this.description != '')
4180 mapEl.appendChild(E('div', { 'class': 'cbi-map-descr' }, this.description));
4183 dom.append(mapEl, E('div', { 'class': 'cbi-map-tabbed' }, nodes));
4185 dom.append(mapEl, nodes);
4187 if (!initialRender) {
4188 mapEl.classList.remove('flash');
4190 window.setTimeout(function() {
4191 mapEl.classList.add('flash');
4195 this.checkDepends();
4197 var tabGroups = mapEl.querySelectorAll('.cbi-map-tabbed, .cbi-section-node-tabbed');
4199 for (var i =
0; i
< tabGroups.length; i++)
4200 ui.tabs.initTabGroup(tabGroups[i].childNodes);
4207 * Find a form option element instance.
4209 * @param {string} name
4210 * The name or the full ID of the option element to look up.
4212 * @param {string} [section_id]
4213 * The ID of the UCI section containing the option to look up. May be
4214 * omitted if a full ID is passed as first argument.
4216 * @param {string} [config_name]
4217 * The name of the UCI configuration the option instance belongs to.
4218 * Defaults to the main UCI configuration of the map if omitted.
4220 * @returns {Array
<LuCI.form.AbstractValue,string
>|null}
4221 * Returns a two-element array containing the form option instance as
4222 * first item and the corresponding UCI section ID as second item.
4223 * Returns `null` if the option could not be found.
4225 lookupOption: function(name, section_id, config_name) {
4226 var id, elem, sid, inst;
4228 if (name.indexOf('.')
> -
1)
4229 id = 'cbid.%s'.format(name);
4231 id = 'cbid.%s.%s.%s'.format(config_name || this.config, section_id, name);
4233 elem = this.findElement('data-field', id);
4234 sid = elem ? id.split(/\./)[
2] : null;
4235 inst = elem ? dom.findClassInstance(elem) : null;
4237 return (inst instanceof CBIAbstractValue) ? [ inst, sid ] : null;
4241 checkDepends: function(ev, n) {
4242 var changed = false;
4244 for (var i =
0, s = this.children[
0]; (s = this.children[i]) != null; i++)
4245 if (s.checkDepends(ev, n))
4248 if (changed
&& (n ||
0)
< 10)
4249 this.checkDepends(ev, (n ||
10) +
1);
4251 ui.tabs.updateTabs(ev, this.root);
4255 isDependencySatisfied: function(depends, config_name, section_id) {
4258 if (!Array.isArray(depends) || !depends.length)
4261 for (var i =
0; i
< depends.length; i++) {
4263 reverse = depends[i]['!reverse'],
4264 contains = depends[i]['!contains'];
4266 for (var dep in depends[i]) {
4267 if (dep == '!reverse' || dep == '!contains') {
4270 else if (dep == '!default') {
4275 var res = this.lookupOption(dep, section_id, config_name),
4276 val = (res
&& res[
0].isActive(res[
1])) ? res[
0].formvalue(res[
1]) : null;
4278 var equal = contains
4279 ? isContained(val, depends[i][dep])
4280 : isEqual(val, depends[i][dep]);
4282 istat = (istat
&& equal);
4286 if (istat ^ reverse)
4295 * @constructor JSONMap
4296 * @memberof LuCI.form
4297 * @augments LuCI.form.Map
4301 * A `JSONMap` class functions similar to [LuCI.form.Map]{@link LuCI.form.Map}
4302 * but uses a multidimensional JavaScript object instead of UCI configuration
4305 * @param {Object
<string, Object
<string, *
>|Array
<Object
<string, *
>>>} data
4306 * The JavaScript object to use as data source. Internally, the object is
4307 * converted into an UCI-like format. Its toplevel keys are treated like UCI
4308 * section types while the object or array-of-object values are treated as
4311 * @param {string} [title]
4312 * The title caption of the form. A form title is usually rendered as separate
4313 * headline element before the actual form contents. If omitted, the
4314 * corresponding headline element will not be rendered.
4316 * @param {string} [description]
4317 * The description text of the form which is usually rendered as text
4318 * paragraph below the form title and before the actual form contents.
4319 * If omitted, the corresponding paragraph element will not be rendered.
4321 var CBIJSONMap = CBIMap.extend(/** @lends LuCI.form.JSONMap.prototype */ {
4322 __init__: function(data /*, ... */) {
4323 this.super('__init__', this.varargs(arguments,
1, 'json'));
4325 this.config = 'json';
4326 this.parsechain = [ 'json' ];
4327 this.data = new CBIJSONConfig(data);
4332 * @class AbstractSection
4333 * @memberof LuCI.form
4334 * @augments LuCI.form.AbstractElement
4338 * The `AbstractSection` class serves as abstract base for the different form
4339 * section styles implemented by `LuCI.form`. It provides the common logic for
4340 * enumerating underlying configuration section instances, for registering
4341 * form options and for handling tabs to segment child options.
4343 * This class is private and not directly accessible by user code.
4345 var CBIAbstractSection = CBIAbstractElement.extend(/** @lends LuCI.form.AbstractSection.prototype */ {
4346 __init__: function(map, sectionType /*, ... */) {
4347 this.super('__init__', this.varargs(arguments,
2));
4349 this.sectiontype = sectionType;
4351 this.config = map.config;
4353 this.optional = true;
4354 this.addremove = false;
4355 this.dynamic = false;
4359 * Access the parent option container instance.
4361 * In case this section is nested within an option element container,
4362 * this property will hold a reference to the parent option instance.
4364 * If this section is not nested, the property is `null`.
4366 * @name LuCI.form.AbstractSection.prototype#parentoption
4367 * @type LuCI.form.AbstractValue
4372 * Enumerate the UCI section IDs covered by this form section element.
4375 * @throws {InternalError}
4376 * Throws an `InternalError` exception if the function is not implemented.
4378 * @returns {string[]}
4379 * Returns an array of UCI section IDs covered by this form element.
4380 * The sections will be rendered in the same order as the returned array.
4382 cfgsections: function() {
4383 L.error('InternalError', 'Not implemented');
4387 * Filter UCI section IDs to render.
4389 * The filter function is invoked for each UCI section ID of a given type
4390 * and controls whether the given UCI section is rendered or ignored by
4391 * the form section element.
4393 * The default implementation always returns `true`. User code or
4394 * classes extending `AbstractSection` may overwrite this function with
4395 * custom implementations.
4398 * @param {string} section_id
4399 * The UCI section ID to test.
4401 * @returns {boolean}
4402 * Returns `true` when the given UCI section ID should be handled and
4403 * `false` when it should be ignored.
4405 filter: function(section_id) {
4410 * Load the configuration covered by this section.
4412 * The `load()` function recursively walks the section element tree and
4413 * invokes the load function of each child option element.
4415 * @returns {Promise
<void
>}
4416 * Returns a promise resolving once the values of all child elements have
4417 * been loaded. The promise may reject with an error if any of the child
4418 * elements load functions rejected with an error.
4421 var section_ids = this.cfgsections(),
4424 if (Array.isArray(this.children))
4425 for (var i =
0; i
< section_ids.length; i++)
4426 tasks.push(this.loadChildren(section_ids[i])
4427 .then(Function.prototype.bind.call(function(section_id, set_values) {
4428 for (var i =
0; i
< set_values.length; i++)
4429 this.children[i].cfgvalue(section_id, set_values[i]);
4430 }, this, section_ids[i])));
4432 return Promise.all(tasks);
4436 * Parse this sections form input.
4438 * The `parse()` function recursively walks the section element tree and
4439 * triggers input value reading and validation for each encountered child
4442 * Options which are hidden due to unsatisfied dependencies are skipped.
4444 * @returns {Promise
<void
>}
4445 * Returns a promise resolving once the values of all child elements have
4446 * been parsed. The returned promise is rejected if any parsed values are
4447 * not meeting the validation constraints of their respective elements.
4450 var section_ids = this.cfgsections(),
4453 if (Array.isArray(this.children))
4454 for (var i =
0; i
< section_ids.length; i++)
4455 for (var j =
0; j
< this.children.length; j++)
4456 tasks.push(this.children[j].parse(section_ids[i]));
4458 return Promise.all(tasks);
4462 * Add an option tab to the section.
4464 * The child option elements of a section may be divided into multiple
4465 * tabs to provide a better overview to the user.
4467 * Before options can be moved into a tab pane, the corresponding tab
4468 * has to be defined first, which is done by calling this function.
4470 * Note that once tabs are defined, user code must use the `taboption()`
4471 * method to add options to specific tabs. Option elements added by
4472 * `option()` will not be assigned to any tab and not be rendered in this
4475 * @param {string} name
4476 * The name of the tab to register. It may be freely chosen and just serves
4477 * as an identifier to differentiate tabs.
4479 * @param {string} title
4480 * The human readable caption of the tab.
4482 * @param {string} [description]
4483 * An additional description text for the corresponding tab pane. It is
4484 * displayed as text paragraph below the tab but before the tab pane
4485 * contents. If omitted, no description will be rendered.
4488 * Throws an exception if a tab with the same `name` already exists.
4490 tab: function(name, title, description) {
4491 if (this.tabs
&& this.tabs[name])
4492 throw 'Tab already declared';
4497 description: description,
4501 this.tabs = this.tabs || [];
4502 this.tabs.push(entry);
4503 this.tabs[name] = entry;
4505 this.tab_names = this.tab_names || [];
4506 this.tab_names.push(name);
4510 * Add a configuration option widget to the section.
4512 * Note that [taboption()]{@link LuCI.form.AbstractSection#taboption}
4513 * should be used instead if this form section element uses tabs.
4515 * @param {LuCI.form.AbstractValue} optionclass
4516 * The option class to use for rendering the configuration option. Note
4517 * that this value must be the class itself, not a class instance obtained
4518 * from calling `new`. It must also be a class derived from
4519 * [LuCI.form.AbstractSection]{@link LuCI.form.AbstractSection}.
4521 * @param {...*} classargs
4522 * Additional arguments which are passed as-is to the constructor of the
4523 * given option class. Refer to the class specific constructor
4524 * documentation for details.
4526 * @throws {TypeError}
4527 * Throws a `TypeError` exception in case the passed class value is not a
4528 * descendent of `AbstractValue`.
4530 * @returns {LuCI.form.AbstractValue}
4531 * Returns the instantiated option class instance.
4533 option: function(cbiClass /*, ... */) {
4534 if (!CBIAbstractValue.isSubclass(cbiClass))
4535 throw L.error('TypeError', 'Class must be a descendent of CBIAbstractValue');
4537 var obj = cbiClass.instantiate(this.varargs(arguments,
1, this.map, this));
4543 * Add a configuration option widget to a tab of the section.
4545 * @param {string} tabName
4546 * The name of the section tab to add the option element to.
4548 * @param {LuCI.form.AbstractValue} optionclass
4549 * The option class to use for rendering the configuration option. Note
4550 * that this value must be the class itself, not a class instance obtained
4551 * from calling `new`. It must also be a class derived from
4552 * [LuCI.form.AbstractSection]{@link LuCI.form.AbstractSection}.
4554 * @param {...*} classargs
4555 * Additional arguments which are passed as-is to the constructor of the
4556 * given option class. Refer to the class specific constructor
4557 * documentation for details.
4559 * @throws {ReferenceError}
4560 * Throws a `ReferenceError` exception when the given tab name does not
4563 * @throws {TypeError}
4564 * Throws a `TypeError` exception in case the passed class value is not a
4565 * descendent of `AbstractValue`.
4567 * @returns {LuCI.form.AbstractValue}
4568 * Returns the instantiated option class instance.
4570 taboption: function(tabName /*, ... */) {
4571 if (!this.tabs || !this.tabs[tabName])
4572 throw L.error('ReferenceError', 'Associated tab not declared');
4574 var obj = this.option.apply(this, this.varargs(arguments,
1));
4576 this.tabs[tabName].children.push(obj);
4581 * Query underlying option configuration values.
4583 * This function is sensitive to the amount of arguments passed to it;
4584 * if only one argument is specified, the configuration values of all
4585 * options within this section are returned as dictionary.
4587 * If both the section ID and an option name are supplied, this function
4588 * returns the configuration value of the specified option only.
4590 * @param {string} section_id
4591 * The configuration section ID
4593 * @param {string} [option]
4594 * The name of the option to query
4596 * @returns {null|string|string[]|Object
<string, null|string|string[]
>}
4597 * Returns either a dictionary of option names and their corresponding
4598 * configuration values or just a single configuration value, depending
4599 * on the amount of passed arguments.
4601 cfgvalue: function(section_id, option) {
4602 var rv = (arguments.length ==
1) ? {} : null;
4604 for (var i =
0, o; (o = this.children[i]) != null; i++)
4606 rv[o.option] = o.cfgvalue(section_id);
4607 else if (o.option == option)
4608 return o.cfgvalue(section_id);
4614 * Query underlying option widget input values.
4616 * This function is sensitive to the amount of arguments passed to it;
4617 * if only one argument is specified, the widget input values of all
4618 * options within this section are returned as dictionary.
4620 * If both the section ID and an option name are supplied, this function
4621 * returns the widget input value of the specified option only.
4623 * @param {string} section_id
4624 * The configuration section ID
4626 * @param {string} [option]
4627 * The name of the option to query
4629 * @returns {null|string|string[]|Object
<string, null|string|string[]
>}
4630 * Returns either a dictionary of option names and their corresponding
4631 * widget input values or just a single widget input value, depending
4632 * on the amount of passed arguments.
4634 formvalue: function(section_id, option) {
4635 var rv = (arguments.length ==
1) ? {} : null;
4637 for (var i =
0, o; (o = this.children[i]) != null; i++) {
4638 var func = this.map.root ? this.children[i].formvalue : this.children[i].cfgvalue;
4641 rv[o.option] = func.call(o, section_id);
4642 else if (o.option == option)
4643 return func.call(o, section_id);
4650 * Obtain underlying option LuCI.ui widget instances.
4652 * This function is sensitive to the amount of arguments passed to it;
4653 * if only one argument is specified, the LuCI.ui widget instances of all
4654 * options within this section are returned as dictionary.
4656 * If both the section ID and an option name are supplied, this function
4657 * returns the LuCI.ui widget instance value of the specified option only.
4659 * @param {string} section_id
4660 * The configuration section ID
4662 * @param {string} [option]
4663 * The name of the option to query
4665 * @returns {null|LuCI.ui.AbstractElement|Object
<string, null|LuCI.ui.AbstractElement
>}
4666 * Returns either a dictionary of option names and their corresponding
4667 * widget input values or just a single widget input value, depending
4668 * on the amount of passed arguments.
4670 getUIElement: function(section_id, option) {
4671 var rv = (arguments.length ==
1) ? {} : null;
4673 for (var i =
0, o; (o = this.children[i]) != null; i++)
4675 rv[o.option] = o.getUIElement(section_id);
4676 else if (o.option == option)
4677 return o.getUIElement(section_id);
4683 * Obtain underlying option objects.
4685 * This function is sensitive to the amount of arguments passed to it;
4686 * if no option name is specified, all options within this section are
4687 * returned as dictionary.
4689 * If an option name is supplied, this function returns the matching
4690 * LuCI.form.AbstractValue instance only.
4692 * @param {string} [option]
4693 * The name of the option object to obtain
4695 * @returns {null|LuCI.form.AbstractValue|Object
<string, LuCI.form.AbstractValue
>}
4696 * Returns either a dictionary of option names and their corresponding
4697 * option instance objects or just a single object instance value,
4698 * depending on the amount of passed arguments.
4700 getOption: function(option) {
4701 var rv = (arguments.length ==
0) ? {} : null;
4703 for (var i =
0, o; (o = this.children[i]) != null; i++)
4706 else if (o.option == option)
4713 renderUCISection: function(section_id) {
4714 var renderTasks = [];
4717 return this.renderOptions(null, section_id);
4719 for (var i =
0; i
< this.tab_names.length; i++)
4720 renderTasks.push(this.renderOptions(this.tab_names[i], section_id));
4722 return Promise.all(renderTasks)
4723 .then(this.renderTabContainers.bind(this, section_id));
4727 renderTabContainers: function(section_id, nodes) {
4728 var config_name = this.uciconfig || this.map.config,
4729 containerEls = E([]);
4731 for (var i =
0; i
< nodes.length; i++) {
4732 var tab_name = this.tab_names[i],
4733 tab_data = this.tabs[tab_name],
4734 containerEl = E('div', {
4735 'id': 'container.%s.%s.%s'.format(config_name, section_id, tab_name),
4736 'data-tab': tab_name,
4737 'data-tab-title': tab_data.title,
4738 'data-tab-active': tab_name === this.selected_tab
4741 if (tab_data.description != null
&& tab_data.description != '')
4742 containerEl.appendChild(
4743 E('div', { 'class': 'cbi-tab-descr' }, tab_data.description));
4745 containerEl.appendChild(nodes[i]);
4746 containerEls.appendChild(containerEl);
4749 return containerEls;
4753 renderOptions: function(tab_name, section_id) {
4754 var in_table = (this instanceof CBITableSection);
4755 return this.renderChildren(tab_name, section_id, in_table).then(function(nodes) {
4756 var optionEls = E([]);
4757 for (var i =
0; i
< nodes.length; i++)
4758 optionEls.appendChild(nodes[i]);
4764 checkDepends: function(ev, n) {
4765 var changed = false,
4766 sids = this.cfgsections();
4768 for (var i =
0, sid = sids[
0]; (sid = sids[i]) != null; i++) {
4769 for (var j =
0, o = this.children[
0]; (o = this.children[j]) != null; j++) {
4770 var isActive = o.isActive(sid),
4771 isSatisified = o.checkDepends(sid);
4773 if (isActive != isSatisified) {
4774 o.setActive(sid, !isActive);
4775 isActive = !isActive;
4779 if (!n
&& isActive)
4780 o.triggerValidation(sid);
4789 var isEqual = function(x, y) {
4790 if (typeof(y) == 'object'
&& y instanceof RegExp)
4791 return (x == null) ? false : y.test(x);
4793 if (x != null
&& y != null
&& typeof(x) != typeof(y))
4796 if ((x == null
&& y != null) || (x != null
&& y == null))
4799 if (Array.isArray(x)) {
4800 if (x.length != y.length)
4803 for (var i =
0; i
< x.length; i++)
4804 if (!isEqual(x[i], y[i]))
4807 else if (typeof(x) == 'object') {
4809 if (x.hasOwnProperty(k)
&& !y.hasOwnProperty(k))
4812 if (!isEqual(x[k], y[k]))
4817 if (y.hasOwnProperty(k)
&& !x.hasOwnProperty(k))
4827 var isContained = function(x, y) {
4828 if (Array.isArray(x)) {
4829 for (var i =
0; i
< x.length; i++)
4833 else if (L.isObject(x)) {
4834 if (x.hasOwnProperty(y)
&& x[y] != null)
4837 else if (typeof(x) == 'string') {
4838 return (x.indexOf(y)
> -
1);
4845 * @class AbstractValue
4846 * @memberof LuCI.form
4847 * @augments LuCI.form.AbstractElement
4851 * The `AbstractValue` class serves as abstract base for the different form
4852 * option styles implemented by `LuCI.form`. It provides the common logic for
4853 * handling option input values, for dependencies among options and for
4854 * validation constraints that should be applied to entered values.
4856 * This class is private and not directly accessible by user code.
4858 var CBIAbstractValue = CBIAbstractElement.extend(/** @lends LuCI.form.AbstractValue.prototype */ {
4859 __init__: function(map, section, option /*, ... */) {
4860 this.super('__init__', this.varargs(arguments,
3));
4862 this.section = section;
4863 this.option = option;
4865 this.config = map.config;
4869 this.rmempty = true;
4870 this.default = null;
4872 this.optional = false;
4873 this.retain = false;
4877 * If set to `false`, the underlying option value is retained upon saving
4878 * the form when the option element is disabled due to unsatisfied
4879 * dependency constraints.
4881 * @name LuCI.form.AbstractValue.prototype#rmempty
4887 * If set to `true`, the underlying ui input widget is allowed to be empty,
4888 * otherwise the option element is marked invalid when no value is entered
4889 * or selected by the user.
4891 * @name LuCI.form.AbstractValue.prototype#optional
4897 * If set to `true`, the underlying ui input widget value is not cleared
4898 * from the configuration on unsatisfied dependencies. The default behavior
4899 * is to remove the values of all options whose dependencies are not
4902 * @name LuCI.form.AbstractValue.prototype#retain
4908 * Sets a default value to use when the underlying UCI option is not set.
4910 * @name LuCI.form.AbstractValue.prototype#default
4916 * Specifies a datatype constraint expression to validate input values
4917 * against. Refer to {@link LuCI.validation} for details on the format.
4919 * If the user entered input does not match the datatype validation, the
4920 * option element is marked as invalid.
4922 * @name LuCI.form.AbstractValue.prototype#datatype
4928 * Specifies a custom validation function to test the user input for
4929 * validity. The validation function must return `true` to accept the
4930 * value. Any other return value type is converted to a string and
4931 * displayed to the user as validation error message.
4933 * If the user entered input does not pass the validation function, the
4934 * option element is marked as invalid.
4936 * @name LuCI.form.AbstractValue.prototype#validate
4942 * Override the UCI configuration name to read the option value from.
4944 * By default, the configuration name is inherited from the parent Map.
4945 * By setting this property, a deviating configuration may be specified.
4947 * The default is null, means inheriting from the parent form.
4949 * @name LuCI.form.AbstractValue.prototype#uciconfig
4955 * Override the UCI section name to read the option value from.
4957 * By default, the section ID is inherited from the parent section element.
4958 * By setting this property, a deviating section may be specified.
4960 * The default is null, means inheriting from the parent section.
4962 * @name LuCI.form.AbstractValue.prototype#ucisection
4968 * Override the UCI option name to read the value from.
4970 * By default, the elements name, which is passed as third argument to
4971 * the constructor, is used as UCI option name. By setting this property,
4972 * a deviating UCI option may be specified.
4974 * The default is null, means using the option element name.
4976 * @name LuCI.form.AbstractValue.prototype#ucioption
4982 * Mark grid section option element as editable.
4984 * Options which are displayed in the table portion of a `GridSection`
4985 * instance are rendered as readonly text by default. By setting the
4986 * `editable` property of a child option element to `true`, that element
4987 * is rendered as full input widget within its cell instead of a text only
4990 * This property has no effect on options that are not children of grid
4993 * @name LuCI.form.AbstractValue.prototype#editable
4999 * Move grid section option element into the table, the modal popup or both.
5001 * If this property is `null` (the default), the option element is
5002 * displayed in both the table preview area and the per-section instance
5003 * modal popup of a grid section. When it is set to `false` the option
5004 * is only shown in the table but not the modal popup. When set to `true`,
5005 * the option is only visible in the modal popup but not the table.
5007 * This property has no effect on options that are not children of grid
5010 * @name LuCI.form.AbstractValue.prototype#modalonly
5016 * Make option element readonly.
5018 * This property defaults to the readonly state of the parent form element.
5019 * When set to `true`, the underlying widget is rendered in disabled state,
5020 * means its contents cannot be changed and the widget cannot be interacted
5023 * @name LuCI.form.AbstractValue.prototype#readonly
5029 * Override the cell width of a table or grid section child option.
5031 * If the property is set to a numeric value, it is treated as pixel width
5032 * which is set on the containing cell element of the option, essentially
5033 * forcing a certain column width. When the property is set to a string
5034 * value, it is applied as-is to the CSS `width` property.
5036 * This property has no effect on options that are not children of grid or
5037 * table section elements.
5039 * @name LuCI.form.AbstractValue.prototype#width
5040 * @type number|string
5045 * Register a custom value change handler.
5047 * If this property is set to a function value, the function is invoked
5048 * whenever the value of the underlying UI input element is changing.
5050 * The invoked handler function will receive the DOM click element as
5051 * first and the underlying configuration section ID as well as the input
5052 * value as second and third argument respectively.
5054 * @name LuCI.form.AbstractValue.prototype#onchange
5060 * Add a dependency constraint to the option.
5062 * Dependency constraints allow making the presence of option elements
5063 * dependent on the current values of certain other options within the
5064 * same form. An option element with unsatisfied dependencies will be
5065 * hidden from the view and its current value is omitted when saving.
5067 * Multiple constraints (that is, multiple calls to `depends()`) are
5068 * treated as alternatives, forming a logical
"or" expression.
5070 * By passing an object of name =
> value pairs as first argument, it is
5071 * possible to depend on multiple options simultaneously, allowing to form
5072 * a logical
"and" expression.
5074 * Option names may be given in
"dot notation" which allows to reference
5075 * option elements outside the current form section. If a name without
5076 * dot is specified, it refers to an option within the same configuration
5077 * section. If specified as
<code
>configname.sectionid.optionname
</code
>,
5078 * options anywhere within the same form may be specified.
5080 * The object notation also allows for a number of special keys which are
5081 * not treated as option names but as modifiers to influence the dependency
5082 * constraint evaluation. The associated value of these special
"tag" keys
5083 * is ignored. The recognized tags are:
5087 *
<code
>!reverse
</code
><br
>
5088 * Invert the dependency, instead of requiring another option to be
5089 * equal to the dependency value, that option should
<em
>not
</em
> be
5093 *
<code
>!contains
</code
><br
>
5094 * Instead of requiring an exact match, the dependency is considered
5095 * satisfied when the dependency value is contained within the option
5099 *
<code
>!default
</code
><br
>
5100 * The dependency is always satisfied
5108 *
<code
>opt.depends(
"foo",
"test")
</code
><br
>
5109 * Require the value of `foo` to be `test`.
5112 *
<code
>opt.depends({ foo:
"test" })
</code
><br
>
5113 * Equivalent to the previous example.
5116 *
<code
>opt.depends({ foo: /test/ })
</code
><br
>
5117 * Require the value of `foo` to match the regular expression `/test/`.
5120 *
<code
>opt.depends({ foo:
"test", bar:
"qrx" })
</code
><br
>
5121 * Require the value of `foo` to be `test` and the value of `bar` to be
5125 *
<code
>opt.depends({ foo:
"test" })
<br
>
5126 * opt.depends({ bar:
"qrx" })
</code
><br
>
5127 * Require either
<code
>foo
</code
> to be set to
<code
>test
</code
>,
5128 *
<em
>or
</em
> the
<code
>bar
</code
> option to be
<code
>qrx
</code
>.
5131 *
<code
>opt.depends(
"test.section1.foo",
"bar")
</code
><br
>
5132 * Require the
"foo" form option within the
"section1" section to be
5136 *
<code
>opt.depends({ foo:
"test",
"!contains": true })
</code
><br
>
5137 * Require the
"foo" option value to contain the substring
"test".
5141 * @param {string|Object
<string, string|RegExp
>} field
5142 * The name of the option to depend on or an object describing multiple
5143 * dependencies which must be satisfied (a logical
"and" expression).
5145 * @param {string|RegExp} value
5146 * When invoked with a plain option name as first argument, this parameter
5147 * specifies the expected value. In case an object is passed as first
5148 * argument, this parameter is ignored.
5150 depends: function(field, value) {
5153 if (typeof(field) === 'string')
5154 deps = {}, deps[field] = value;
5158 this.deps.push(deps);
5162 transformDepList: function(section_id, deplist) {
5163 var list = deplist || this.deps,
5166 if (Array.isArray(list)) {
5167 for (var i =
0; i
< list.length; i++) {
5170 for (var k in list[i]) {
5171 if (list[i].hasOwnProperty(k)) {
5172 if (k.charAt(
0) === '!')
5173 dep[k] = list[i][k];
5174 else if (k.indexOf('.') !== -
1)
5175 dep['cbid.%s'.format(k)] = list[i][k];
5177 dep['cbid.%s.%s.%s'.format(
5178 this.uciconfig || this.section.uciconfig || this.map.config,
5179 this.ucisection || section_id,
5185 for (var k in dep) {
5186 if (dep.hasOwnProperty(k)) {
5198 transformChoices: function() {
5199 if (!Array.isArray(this.keylist) || this.keylist.length ==
0)
5204 for (var i =
0; i
< this.keylist.length; i++)
5205 choices[this.keylist[i]] = this.vallist[i];
5211 checkDepends: function(section_id) {
5212 var config_name = this.uciconfig || this.section.uciconfig || this.map.config,
5213 active = this.map.isDependencySatisfied(this.deps, config_name, section_id);
5216 this.updateDefaultValue(section_id);
5222 updateDefaultValue: function(section_id) {
5223 if (!L.isObject(this.defaults))
5226 var config_name = this.uciconfig || this.section.uciconfig || this.map.config,
5227 cfgvalue = L.toArray(this.cfgvalue(section_id))[
0],
5228 default_defval = null, satisified_defval = null;
5230 for (var value in this.defaults) {
5231 if (!this.defaults[value] || this.defaults[value].length ==
0) {
5232 default_defval = value;
5235 else if (this.map.isDependencySatisfied(this.defaults[value], config_name, section_id)) {
5236 satisified_defval = value;
5241 if (satisified_defval == null)
5242 satisified_defval = default_defval;
5244 var node = this.map.findElement('id', this.cbid(section_id));
5245 if (node
&& node.getAttribute('data-changed') != 'true'
&& satisified_defval != null
&& cfgvalue == null)
5246 dom.callClassMethod(node, 'setValue', satisified_defval);
5248 this.default = satisified_defval;
5252 * Obtain the internal ID (
"cbid") of the element instance.
5254 * Since each form section element may map multiple underlying
5255 * configuration sections, the configuration section ID is required to
5256 * form a fully qualified ID pointing to the specific element instance
5257 * within the given specific section.
5259 * @param {string} section_id
5260 * The configuration section ID
5262 * @throws {TypeError}
5263 * Throws a `TypeError` exception when no `section_id` was specified.
5266 * Returns the element ID.
5268 cbid: function(section_id) {
5269 if (section_id == null)
5270 L.error('TypeError', 'Section ID required');
5272 return 'cbid.%s.%s.%s'.format(
5273 this.uciconfig || this.section.uciconfig || this.map.config,
5274 section_id, this.option);
5278 * Load the underlying configuration value.
5280 * The default implementation of this method reads and returns the
5281 * underlying UCI option value (or the related JavaScript property for
5282 * `JSONMap` instances). It may be overwritten by user code to load data
5283 * from nonstandard sources.
5285 * @param {string} section_id
5286 * The configuration section ID
5288 * @throws {TypeError}
5289 * Throws a `TypeError` exception when no `section_id` was specified.
5291 * @returns {*|Promise
<*
>}
5292 * Returns the configuration value to initialize the option element with.
5293 * The return value of this function is filtered through `Promise.resolve()`
5294 * so it may return promises if overridden by user code.
5296 load: function(section_id) {
5297 if (section_id == null)
5298 L.error('TypeError', 'Section ID required');
5300 return this.map.data.get(
5301 this.uciconfig || this.section.uciconfig || this.map.config,
5302 this.ucisection || section_id,
5303 this.ucioption || this.option);
5307 * Obtain the underlying `LuCI.ui` element instance.
5309 * @param {string} section_id
5310 * The configuration section ID
5312 * @throws {TypeError}
5313 * Throws a `TypeError` exception when no `section_id` was specified.
5315 * @return {LuCI.ui.AbstractElement|null}
5316 * Returns the `LuCI.ui` element instance or `null` in case the form
5317 * option implementation does not use `LuCI.ui` widgets.
5319 getUIElement: function(section_id) {
5320 var node = this.map.findElement('id', this.cbid(section_id)),
5321 inst = node ? dom.findClassInstance(node) : null;
5322 return (inst instanceof ui.AbstractElement) ? inst : null;
5326 * Query the underlying configuration value.
5328 * The default implementation of this method returns the cached return
5329 * value of [load()]{@link LuCI.form.AbstractValue#load}. It may be
5330 * overwritten by user code to obtain the configuration value in a
5333 * @param {string} section_id
5334 * The configuration section ID
5336 * @throws {TypeError}
5337 * Throws a `TypeError` exception when no `section_id` was specified.
5340 * Returns the configuration value.
5342 cfgvalue: function(section_id, set_value) {
5343 if (section_id == null)
5344 L.error('TypeError', 'Section ID required');
5346 if (arguments.length ==
2) {
5347 this.data = this.data || {};
5348 this.data[section_id] = set_value;
5351 return this.data ? this.data[section_id] : null;
5355 * Query the current form input value.
5357 * The default implementation of this method returns the current input
5358 * value of the underlying [LuCI.ui]{@link LuCI.ui.AbstractElement} widget.
5359 * It may be overwritten by user code to handle input values differently.
5361 * @param {string} section_id
5362 * The configuration section ID
5364 * @throws {TypeError}
5365 * Throws a `TypeError` exception when no `section_id` was specified.
5368 * Returns the current input value.
5370 formvalue: function(section_id) {
5371 var elem = this.getUIElement(section_id);
5372 return elem ? elem.getValue() : null;
5376 * Obtain a textual input representation.
5378 * The default implementation of this method returns the HTML escaped
5379 * current input value of the underlying
5380 * [LuCI.ui]{@link LuCI.ui.AbstractElement} widget. User code or specific
5381 * option element implementations may overwrite this function to apply a
5382 * different logic, e.g. to return `Yes` or `No` depending on the checked
5383 * state of checkbox elements.
5385 * @param {string} section_id
5386 * The configuration section ID
5388 * @throws {TypeError}
5389 * Throws a `TypeError` exception when no `section_id` was specified.
5392 * Returns the text representation of the current input value.
5394 textvalue: function(section_id) {
5395 var cval = this.cfgvalue(section_id);
5398 cval = this.default;
5400 if (Array.isArray(cval))
5401 cval = cval.join(' ');
5403 return (cval != null) ? '%h'.format(cval) : null;
5407 * Apply custom validation logic.
5409 * This method is invoked whenever incremental validation is performed on
5410 * the user input, e.g. on keyup or blur events.
5412 * The default implementation of this method does nothing and always
5413 * returns `true`. User code may overwrite this method to provide
5414 * additional validation logic which is not covered by data type
5418 * @param {string} section_id
5419 * The configuration section ID
5422 * The value to validate
5425 * The method shall return `true` to accept the given value. Any other
5426 * return value is treated as failure, converted to a string and displayed
5427 * as error message to the user.
5429 validate: function(section_id, value) {
5434 * Test whether the input value is currently valid.
5436 * @param {string} section_id
5437 * The configuration section ID
5439 * @returns {boolean}
5440 * Returns `true` if the input value currently is valid, otherwise it
5443 isValid: function(section_id) {
5444 var elem = this.getUIElement(section_id);
5445 return elem ? elem.isValid() : true;
5449 * Returns the current validation error for this input.
5451 * @param {string} section_id
5452 * The configuration section ID
5455 * The validation error at this time
5457 getValidationError: function (section_id) {
5458 var elem = this.getUIElement(section_id);
5459 return elem ? elem.getValidationError() : '';
5463 * Test whether the option element is currently active.
5465 * An element is active when it is not hidden due to unsatisfied dependency
5468 * @param {string} section_id
5469 * The configuration section ID
5471 * @returns {boolean}
5472 * Returns `true` if the option element currently is active, otherwise it
5475 isActive: function(section_id) {
5476 var field = this.map.findElement('data-field', this.cbid(section_id));
5477 return (field != null
&& !field.classList.contains('hidden'));
5481 setActive: function(section_id, active) {
5482 var field = this.map.findElement('data-field', this.cbid(section_id));
5484 if (field
&& field.classList.contains('hidden') == active) {
5485 field.classList[active ? 'remove' : 'add']('hidden');
5487 if (dom.matches(field.parentNode, '.td.cbi-value-field'))
5488 field.parentNode.classList[active ? 'remove' : 'add']('inactive');
5497 triggerValidation: function(section_id) {
5498 var elem = this.getUIElement(section_id);
5499 return elem ? elem.triggerValidation() : true;
5503 * Parse the option element input.
5505 * The function is invoked when the `parse()` method has been invoked on
5506 * the parent form and triggers input value reading and validation.
5508 * @param {string} section_id
5509 * The configuration section ID
5511 * @returns {Promise
<void
>}
5512 * Returns a promise resolving once the input value has been read and
5513 * validated or rejecting in case the input value does not meet the
5514 * validation constraints.
5516 parse: function(section_id) {
5517 var active = this.isActive(section_id);
5519 if (active
&& !this.isValid(section_id)) {
5520 var title = this.stripTags(this.title).trim(),
5521 error = this.getValidationError(section_id);
5523 return Promise.reject(new TypeError(
5524 _('Option
"%s" contains an invalid input value.').format(title || this.option) + ' ' + error));
5528 var cval = this.cfgvalue(section_id),
5529 fval = this.formvalue(section_id);
5531 if (fval == null || fval == '') {
5532 if (this.rmempty || this.optional) {
5533 return Promise.resolve(this.remove(section_id));
5536 var title = this.stripTags(this.title).trim();
5538 return Promise.reject(new TypeError(
5539 _('Option
"%s" must not be empty.').format(title || this.option)));
5542 else if (this.forcewrite || !isEqual(cval, fval)) {
5543 return Promise.resolve(this.write(section_id, fval));
5546 else if (!this.retain) {
5547 return Promise.resolve(this.remove(section_id));
5550 return Promise.resolve();
5554 * Write the current input value into the configuration.
5556 * This function is invoked upon saving the parent form when the option
5557 * element is valid and when its input value has been changed compared to
5558 * the initial value returned by
5559 * [cfgvalue()]{@link LuCI.form.AbstractValue#cfgvalue}.
5561 * The default implementation simply sets the given input value in the
5562 * UCI configuration (or the associated JavaScript object property in
5563 * case of `JSONMap` forms). It may be overwritten by user code to
5564 * implement alternative save logic, e.g. to transform the input value
5565 * before it is written.
5567 * @param {string} section_id
5568 * The configuration section ID
5570 * @param {string|string[]} formvalue
5571 * The input value to write.
5573 write: function(section_id, formvalue) {
5574 return this.map.data.set(
5575 this.uciconfig || this.section.uciconfig || this.map.config,
5576 this.ucisection || section_id,
5577 this.ucioption || this.option,
5582 * Remove the corresponding value from the configuration.
5584 * This function is invoked upon saving the parent form when the option
5585 * element has been hidden due to unsatisfied dependencies or when the
5586 * user cleared the input value and the option is marked optional.
5588 * The default implementation simply removes the associated option from the
5589 * UCI configuration (or the associated JavaScript object property in
5590 * case of `JSONMap` forms). It may be overwritten by user code to
5591 * implement alternative removal logic, e.g. to retain the original value.
5593 * @param {string} section_id
5594 * The configuration section ID
5596 remove: function(section_id) {
5597 var this_cfg = this.uciconfig || this.section.uciconfig || this.map.config,
5598 this_sid = this.ucisection || section_id,
5599 this_opt = this.ucioption || this.option;
5601 for (var i =
0; i
< this.section.children.length; i++) {
5602 var sibling = this.section.children[i];
5604 if (sibling === this || sibling.ucioption == null)
5607 var sibling_cfg = sibling.uciconfig || sibling.section.uciconfig || sibling.map.config,
5608 sibling_sid = sibling.ucisection || section_id,
5609 sibling_opt = sibling.ucioption || sibling.option;
5611 if (this_cfg != sibling_cfg || this_sid != sibling_sid || this_opt != sibling_opt)
5614 if (!sibling.isActive(section_id))
5617 /* found another active option aliasing the same uci option name,
5618 * so we can't remove the value */
5622 this.map.data.unset(this_cfg, this_sid, this_opt);
5627 * @class TypedSection
5628 * @memberof LuCI.form
5629 * @augments LuCI.form.AbstractSection
5633 * The `TypedSection` class maps all or - if `filter()` is overwritten - a
5634 * subset of the underlying UCI configuration sections of a given type.
5636 * Layout wise, the configuration section instances mapped by the section
5637 * element (sometimes referred to as
"section nodes") are stacked beneath
5638 * each other in a single column, with an optional section remove button next
5639 * to each section node and a section add button at the end, depending on the
5640 * value of the `addremove` property.
5642 * @param {LuCI.form.Map|LuCI.form.JSONMap} form
5643 * The configuration form this section is added to. It is automatically passed
5644 * by [section()]{@link LuCI.form.Map#section}.
5646 * @param {string} section_type
5647 * The type of the UCI section to map.
5649 * @param {string} [title]
5650 * The title caption of the form section element.
5652 * @param {string} [description]
5653 * The description text of the form section element.
5655 var CBITypedSection = CBIAbstractSection.extend(/** @lends LuCI.form.TypedSection.prototype */ {
5656 __name__: 'CBI.TypedSection',
5659 * If set to `true`, the user may add or remove instances from the form
5660 * section widget, otherwise only preexisting sections may be edited.
5661 * The default is `false`.
5663 * @name LuCI.form.TypedSection.prototype#addremove
5669 * If set to `true`, mapped section instances are treated as anonymous
5670 * UCI sections, which means that section instance elements will be
5671 * rendered without title element and that no name is required when adding
5672 * new sections. The default is `false`.
5674 * @name LuCI.form.TypedSection.prototype#anonymous
5680 * When set to `true`, instead of rendering section instances one below
5681 * another, treat each instance as separate tab pane and render a tab menu
5682 * at the top of the form section element, allowing the user to switch
5683 * among instances. The default is `false`.
5685 * @name LuCI.form.TypedSection.prototype#tabbed
5691 * Override the caption used for the section add button at the bottom of
5692 * the section form element. If set to a string, it will be used as-is,
5693 * if set to a function, the function will be invoked and its return value
5694 * is used as caption, after converting it to a string. If this property
5695 * is not set, the default is `Add`.
5697 * @name LuCI.form.TypedSection.prototype#addbtntitle
5698 * @type string|function
5703 * Override the UCI configuration name to read the section IDs from. By
5704 * default, the configuration name is inherited from the parent `Map`.
5705 * By setting this property, a deviating configuration may be specified.
5706 * The default is `null`, means inheriting from the parent form.
5708 * @name LuCI.form.TypedSection.prototype#uciconfig
5714 cfgsections: function() {
5715 return this.map.data.sections(this.uciconfig || this.map.config, this.sectiontype)
5716 .map(function(s) { return s['.name'] })
5717 .filter(L.bind(this.filter, this));
5721 handleAdd: function(ev, name) {
5722 var config_name = this.uciconfig || this.map.config;
5724 this.map.data.add(config_name, this.sectiontype, name);
5725 return this.map.save(null, true);
5729 handleRemove: function(section_id, ev) {
5730 var config_name = this.uciconfig || this.map.config;
5732 this.map.data.remove(config_name, section_id);
5733 return this.map.save(null, true);
5737 renderSectionAdd: function(extra_class) {
5738 if (!this.addremove)
5741 var createEl = E('div', { 'class': 'cbi-section-create' }),
5742 config_name = this.uciconfig || this.map.config,
5743 btn_title = this.titleFn('addbtntitle');
5745 if (extra_class != null)
5746 createEl.classList.add(extra_class);
5748 if (this.anonymous) {
5749 createEl.appendChild(E('button', {
5750 'class': 'cbi-button cbi-button-add',
5751 'title': btn_title || _('Add'),
5752 'click': ui.createHandlerFn(this, 'handleAdd'),
5753 'disabled': this.map.readonly || null
5754 }, [ btn_title || _('Add') ]));
5757 var nameEl = E('input', {
5759 'class': 'cbi-section-create-name',
5760 'disabled': this.map.readonly || null
5763 dom.append(createEl, [
5764 E('div', {}, nameEl),
5766 'class': 'cbi-button cbi-button-add',
5767 'title': btn_title || _('Add'),
5768 'click': ui.createHandlerFn(this, function(ev) {
5769 if (nameEl.classList.contains('cbi-input-invalid'))
5772 return this.handleAdd(ev, nameEl.value);
5774 'disabled': this.map.readonly || true
5775 }, [ btn_title || _('Add') ])
5778 if (this.map.readonly !== true) {
5779 ui.addValidator(nameEl, 'uciname', true, function(v) {
5780 var button = createEl.querySelector('.cbi-section-create
> .cbi-button-add');
5782 button.disabled = null;
5786 button.disabled = true;
5787 return _('Expecting: %s').format(_('non-empty value'));
5789 }, 'blur', 'keyup');
5797 renderSectionPlaceholder: function() {
5798 return E('em', _('This section contains no values yet'));
5802 renderContents: function(cfgsections, nodes) {
5803 var section_id = null,
5804 config_name = this.uciconfig || this.map.config,
5805 sectionEl = E('div', {
5806 'id': 'cbi-%s-%s'.format(config_name, this.sectiontype),
5807 'class': 'cbi-section',
5808 'data-tab': (this.map.tabbed
&& !this.parentoption) ? this.sectiontype : null,
5809 'data-tab-title': (this.map.tabbed
&& !this.parentoption) ? this.title || this.sectiontype : null
5812 if (this.title != null
&& this.title != '')
5813 sectionEl.appendChild(E('h3', {}, this.title));
5815 if (this.description != null
&& this.description != '')
5816 sectionEl.appendChild(E('div', { 'class': 'cbi-section-descr' }, this.description));
5818 for (var i =
0; i
< nodes.length; i++) {
5819 if (this.addremove) {
5820 sectionEl.appendChild(
5821 E('div', { 'class': 'cbi-section-remove right' },
5823 'class': 'cbi-button',
5824 'name': 'cbi.rts.%s.%s'.format(config_name, cfgsections[i]),
5825 'data-section-id': cfgsections[i],
5826 'click': ui.createHandlerFn(this, 'handleRemove', cfgsections[i]),
5827 'disabled': this.map.readonly || null
5828 }, [ _('Delete') ])));
5831 if (!this.anonymous)
5832 sectionEl.appendChild(E('h3', cfgsections[i].toUpperCase()));
5834 sectionEl.appendChild(E('div', {
5835 'id': 'cbi-%s-%s'.format(config_name, cfgsections[i]),
5837 ? 'cbi-section-node cbi-section-node-tabbed' : 'cbi-section-node',
5838 'data-section-id': cfgsections[i]
5842 if (nodes.length ==
0)
5843 sectionEl.appendChild(this.renderSectionPlaceholder());
5845 sectionEl.appendChild(this.renderSectionAdd());
5847 dom.bindClassInstance(sectionEl, this);
5853 render: function() {
5854 var cfgsections = this.cfgsections(),
5857 for (var i =
0; i
< cfgsections.length; i++)
5858 renderTasks.push(this.renderUCISection(cfgsections[i]));
5860 return Promise.all(renderTasks).then(this.renderContents.bind(this, cfgsections));
5865 * @class TableSection
5866 * @memberof LuCI.form
5867 * @augments LuCI.form.TypedSection
5871 * The `TableSection` class maps all or - if `filter()` is overwritten - a
5872 * subset of the underlying UCI configuration sections of a given type.
5874 * Layout wise, the configuration section instances mapped by the section
5875 * element (sometimes referred to as
"section nodes") are rendered as rows
5876 * within an HTML table element, with an optional section remove button in the
5877 * last column and a section add button below the table, depending on the
5878 * value of the `addremove` property.
5880 * @param {LuCI.form.Map|LuCI.form.JSONMap} form
5881 * The configuration form this section is added to. It is automatically passed
5882 * by [section()]{@link LuCI.form.Map#section}.
5884 * @param {string} section_type
5885 * The type of the UCI section to map.
5887 * @param {string} [title]
5888 * The title caption of the form section element.
5890 * @param {string} [description]
5891 * The description text of the form section element.
5893 var CBITableSection = CBITypedSection.extend(/** @lends LuCI.form.TableSection.prototype */ {
5894 __name__: 'CBI.TableSection',
5897 * Override the per-section instance title caption shown in the first
5898 * column of the table unless `anonymous` is set to true. If set to a
5899 * string, it will be used as `String.format()` pattern with the name of
5900 * the underlying UCI section as first argument, if set to a function, the
5901 * function will be invoked with the section name as first argument and
5902 * its return value is used as caption, after converting it to a string.
5903 * If this property is not set, the default is the name of the underlying
5904 * UCI configuration section.
5906 * @name LuCI.form.TableSection.prototype#sectiontitle
5907 * @type string|function
5912 * Override the per-section instance modal popup title caption shown when
5913 * clicking the `More…` button in a section specifying `max_cols`. If set
5914 * to a string, it will be used as `String.format()` pattern with the name
5915 * of the underlying UCI section as first argument, if set to a function,
5916 * the function will be invoked with the section name as first argument and
5917 * its return value is used as caption, after converting it to a string.
5918 * If this property is not set, the default is the name of the underlying
5919 * UCI configuration section.
5921 * @name LuCI.form.TableSection.prototype#modaltitle
5922 * @type string|function
5927 * Specify a maximum amount of columns to display. By default, one table
5928 * column is rendered for each child option of the form section element.
5929 * When this option is set to a positive number, then no more columns than
5930 * the given amount are rendered. When the number of child options exceeds
5931 * the specified amount, a `More…` button is rendered in the last column,
5932 * opening a modal dialog presenting all options elements in `NamedSection`
5933 * style when clicked.
5935 * @name LuCI.form.TableSection.prototype#max_cols
5941 * If set to `true`, alternating `cbi-rowstyle-
1` and `cbi-rowstyle-
2` CSS
5942 * classes are added to the table row elements. Not all LuCI themes
5943 * implement these row style classes. The default is `false`.
5945 * @name LuCI.form.TableSection.prototype#rowcolors
5951 * Enables a per-section instance row `Edit` button which triggers a certain
5952 * action when clicked. If set to a string, the string value is used
5953 * as `String.format()` pattern with the name of the underlying UCI section
5954 * as first format argument. The result is then interpreted as URL which
5955 * LuCI will navigate to when the user clicks the edit button.
5957 * If set to a function, this function will be registered as click event
5958 * handler on the rendered edit button, receiving the section instance
5959 * name as first and the DOM click event as second argument.
5961 * @name LuCI.form.TableSection.prototype#extedit
5962 * @type string|function
5967 * If set to `true`, a sort button is added to the last column, allowing
5968 * the user to reorder the section instances mapped by the section form
5971 * @name LuCI.form.TableSection.prototype#sortable
5977 * If set to `true`, the header row with the options descriptions will
5978 * not be displayed. By default, descriptions row is automatically displayed
5979 * when at least one option has a description.
5981 * @name LuCI.form.TableSection.prototype#nodescriptions
5987 * The `TableSection` implementation does not support option tabbing, so
5988 * its implementation of `tab()` will always throw an exception when
5992 * @throws Throws an exception when invoked.
5995 throw 'Tabs are not supported by TableSection';
5999 renderContents: function(cfgsections, nodes) {
6000 var section_id = null,
6001 config_name = this.uciconfig || this.map.config,
6002 max_cols = isNaN(this.max_cols) ? this.children.length : this.max_cols,
6003 has_more = max_cols
< this.children.length,
6004 drag_sort = this.sortable
&& !('ontouchstart' in window),
6005 touch_sort = this.sortable
&& ('ontouchstart' in window),
6006 sectionEl = E('div', {
6007 'id': 'cbi-%s-%s'.format(config_name, this.sectiontype),
6008 'class': 'cbi-section cbi-tblsection',
6009 'data-tab': (this.map.tabbed
&& !this.parentoption) ? this.sectiontype : null,
6010 'data-tab-title': (this.map.tabbed
&& !this.parentoption) ? this.title || this.sectiontype : null
6012 tableEl = E('table', {
6013 'class': 'table cbi-section-table'
6016 if (this.title != null
&& this.title != '')
6017 sectionEl.appendChild(E('h3', {}, this.title));
6019 if (this.description != null
&& this.description != '')
6020 sectionEl.appendChild(E('div', { 'class': 'cbi-section-descr' }, this.description));
6022 tableEl.appendChild(this.renderHeaderRows(max_cols));
6024 for (var i =
0; i
< nodes.length; i++) {
6025 var sectionname = this.titleFn('sectiontitle', cfgsections[i]);
6027 if (sectionname == null)
6028 sectionname = cfgsections[i];
6030 var trEl = E('tr', {
6031 'id': 'cbi-%s-%s'.format(config_name, cfgsections[i]),
6032 'class': 'tr cbi-section-table-row',
6033 'data-sid': cfgsections[i],
6034 'draggable': (drag_sort || touch_sort) ? true : null,
6035 'mousedown': drag_sort ? L.bind(this.handleDragInit, this) : null,
6036 'dragstart': drag_sort ? L.bind(this.handleDragStart, this) : null,
6037 'dragover': drag_sort ? L.bind(this.handleDragOver, this) : null,
6038 'dragenter': drag_sort ? L.bind(this.handleDragEnter, this) : null,
6039 'dragleave': drag_sort ? L.bind(this.handleDragLeave, this) : null,
6040 'dragend': drag_sort ? L.bind(this.handleDragEnd, this) : null,
6041 'drop': drag_sort ? L.bind(this.handleDrop, this) : null,
6042 'touchmove': touch_sort ? L.bind(this.handleTouchMove, this) : null,
6043 'touchend': touch_sort ? L.bind(this.handleTouchEnd, this) : null,
6044 'data-title': (sectionname
&& (!this.anonymous || this.sectiontitle)) ? sectionname : null,
6045 'data-section-id': cfgsections[i]
6048 if (this.extedit || this.rowcolors)
6049 trEl.classList.add(!(tableEl.childNodes.length %
2)
6050 ? 'cbi-rowstyle-
1' : 'cbi-rowstyle-
2');
6052 for (var j =
0; j
< max_cols
&& nodes[i].firstChild; j++)
6053 trEl.appendChild(nodes[i].firstChild);
6055 trEl.appendChild(this.renderRowActions(cfgsections[i], has_more ? _('More…') : null));
6056 tableEl.appendChild(trEl);
6059 if (nodes.length ==
0)
6060 tableEl.appendChild(E('tr', { 'class': 'tr cbi-section-table-row placeholder' },
6061 E('td', { 'class': 'td' }, this.renderSectionPlaceholder())));
6063 sectionEl.appendChild(tableEl);
6065 sectionEl.appendChild(this.renderSectionAdd('cbi-tblsection-create'));
6067 dom.bindClassInstance(sectionEl, this);
6073 renderHeaderRows: function(max_cols, has_action) {
6074 var has_titles = false,
6075 has_descriptions = false,
6076 max_cols = isNaN(this.max_cols) ? this.children.length : this.max_cols,
6077 has_more = max_cols
< this.children.length,
6078 anon_class = (!this.anonymous || this.sectiontitle) ? 'named' : 'anonymous',
6081 for (var i =
0, opt; i
< max_cols
&& (opt = this.children[i]) != null; i++) {
6085 has_titles = has_titles || !!opt.title;
6086 has_descriptions = has_descriptions || !!opt.description;
6090 var trEl = E('tr', {
6091 'class': 'tr cbi-section-table-titles ' + anon_class,
6092 'data-title': (!this.anonymous || this.sectiontitle) ? _('Name') : null,
6093 'click': this.sortable ? ui.createHandlerFn(this, 'handleSort') : null
6096 for (var i =
0, opt; i
< max_cols
&& (opt = this.children[i]) != null; i++) {
6100 trEl.appendChild(E('th', {
6101 'class': 'th cbi-section-table-cell',
6102 'data-widget': opt.__name__,
6103 'data-sortable-row': this.sortable ? '' : null
6106 if (opt.width != null)
6107 trEl.lastElementChild.style.width =
6108 (typeof(opt.width) == 'number') ? opt.width+'px' : opt.width;
6111 trEl.lastElementChild.appendChild(E('a', {
6112 'href': opt.titleref,
6113 'class': 'cbi-title-ref',
6114 'title': this.titledesc || _('Go to relevant configuration page')
6117 dom.content(trEl.lastElementChild, opt.title);
6120 if (this.sortable || this.extedit || this.addremove || has_more || has_action)
6121 trEl.appendChild(E('th', {
6122 'class': 'th cbi-section-table-cell cbi-section-actions'
6125 trEls.appendChild(trEl);
6128 if (has_descriptions
&& !this.nodescriptions) {
6129 var trEl = E('tr', {
6130 'class': 'tr cbi-section-table-descr ' + anon_class
6133 for (var i =
0, opt; i
< max_cols
&& (opt = this.children[i]) != null; i++) {
6137 trEl.appendChild(E('th', {
6138 'class': 'th cbi-section-table-cell',
6139 'data-widget': opt.__name__
6140 }, opt.description));
6142 if (opt.width != null)
6143 trEl.lastElementChild.style.width =
6144 (typeof(opt.width) == 'number') ? opt.width+'px' : opt.width;
6147 if (this.sortable || this.extedit || this.addremove || has_more || has_action)
6148 trEl.appendChild(E('th', {
6149 'class': 'th cbi-section-table-cell cbi-section-actions'
6152 trEls.appendChild(trEl);
6159 renderRowActions: function(section_id, more_label) {
6160 var config_name = this.uciconfig || this.map.config;
6162 if (!this.sortable
&& !this.extedit
&& !this.addremove
&& !more_label)
6165 var tdEl = E('td', {
6166 'class': 'td cbi-section-table-cell nowrap cbi-section-actions'
6169 if (this.sortable) {
6170 dom.append(tdEl.lastElementChild, [
6172 'title': _('Drag to reorder'),
6173 'class': 'cbi-button drag-handle center',
6174 'style': 'cursor:move',
6175 'disabled': this.map.readonly || null
6183 if (typeof(this.extedit) == 'function')
6184 evFn = L.bind(this.extedit, this);
6185 else if (typeof(this.extedit) == 'string')
6186 evFn = L.bind(function(sid, ev) {
6187 location.href = this.extedit.format(sid);
6188 }, this, section_id);
6190 dom.append(tdEl.lastElementChild,
6193 'class': 'cbi-button cbi-button-edit',
6200 dom.append(tdEl.lastElementChild,
6202 'title': more_label,
6203 'class': 'cbi-button cbi-button-edit',
6204 'click': ui.createHandlerFn(this, 'renderMoreOptionsModal', section_id)
6209 if (this.addremove) {
6210 var btn_title = this.titleFn('removebtntitle', section_id);
6212 dom.append(tdEl.lastElementChild,
6214 'title': btn_title || _('Delete'),
6215 'class': 'cbi-button cbi-button-remove',
6216 'click': ui.createHandlerFn(this, 'handleRemove', section_id),
6217 'disabled': this.map.readonly || null
6218 }, [ btn_title || _('Delete') ])
6226 handleDragInit: function(ev) {
6227 scope.dragState = { node: ev.target };
6231 handleDragStart: function(ev) {
6232 if (!scope.dragState || !scope.dragState.node.classList.contains('drag-handle')) {
6233 scope.dragState = null;
6234 ev.preventDefault();
6238 scope.dragState.node = dom.parent(scope.dragState.node, '.tr');
6239 ev.dataTransfer.setData('text', 'drag');
6240 ev.target.style.opacity =
0.4;
6244 handleDragOver: function(ev) {
6245 var n = scope.dragState.targetNode,
6246 r = scope.dragState.rect,
6247 t = r.top + r.height /
2;
6249 if (ev.clientY
<= t) {
6250 n.classList.remove('drag-over-below');
6251 n.classList.add('drag-over-above');
6254 n.classList.remove('drag-over-above');
6255 n.classList.add('drag-over-below');
6258 ev.dataTransfer.dropEffect = 'move';
6259 ev.preventDefault();
6264 handleDragEnter: function(ev) {
6265 scope.dragState.rect = ev.currentTarget.getBoundingClientRect();
6266 scope.dragState.targetNode = ev.currentTarget;
6270 handleDragLeave: function(ev) {
6271 ev.currentTarget.classList.remove('drag-over-above');
6272 ev.currentTarget.classList.remove('drag-over-below');
6276 handleDragEnd: function(ev) {
6279 n.style.opacity = '';
6280 n.classList.add('flash');
6281 n.parentNode.querySelectorAll('.drag-over-above, .drag-over-below')
6282 .forEach(function(tr) {
6283 tr.classList.remove('drag-over-above');
6284 tr.classList.remove('drag-over-below');
6289 handleDrop: function(ev) {
6290 var s = scope.dragState;
6292 if (s.node
&& s.targetNode) {
6293 var config_name = this.uciconfig || this.map.config,
6294 ref_node = s.targetNode,
6297 if (ref_node.classList.contains('drag-over-below')) {
6298 ref_node = ref_node.nextElementSibling;
6302 var sid1 = s.node.getAttribute('data-sid'),
6303 sid2 = s.targetNode.getAttribute('data-sid');
6305 s.node.parentNode.insertBefore(s.node, ref_node);
6306 this.map.data.move(config_name, sid1, sid2, after);
6309 scope.dragState = null;
6310 ev.target.style.opacity = '';
6311 ev.stopPropagation();
6312 ev.preventDefault();
6317 determineBackgroundColor: function(node) {
6318 var r =
255, g =
255, b =
255;
6321 var s = window.getComputedStyle(node),
6322 c = (s.getPropertyValue('background-color') || '').replace(/ /g, '');
6324 if (c != ''
&& c != 'transparent'
&& c != 'rgba(
0,
0,
0,
0)') {
6325 if (/^#([a-f0-
9]{
2})([a-f0-
9]{
2})([a-f0-
9]{
2})$/i.test(c)) {
6326 r = parseInt(RegExp.$
1,
16);
6327 g = parseInt(RegExp.$
2,
16);
6328 b = parseInt(RegExp.$
3,
16);
6330 else if (/^rgba?\(([
0-
9]+),([
0-
9]+),([
0-
9]+)[,)]$/.test(c)) {
6339 node = node.parentNode;
6346 handleTouchMove: function(ev) {
6347 if (!ev.target.classList.contains('drag-handle'))
6350 var touchLoc = ev.targetTouches[
0],
6352 rowElem = dom.parent(rowBtn, '.tr'),
6353 htmlElem = document.querySelector('html'),
6354 dragHandle = document.querySelector('.touchsort-element'),
6355 viewportHeight = Math.max(document.documentElement.clientHeight, window.innerHeight ||
0);
6358 var rowRect = rowElem.getBoundingClientRect(),
6359 btnRect = rowBtn.getBoundingClientRect(),
6360 paddingLeft = btnRect.left - rowRect.left,
6361 paddingRight = rowRect.right - btnRect.right,
6362 colorBg = this.determineBackgroundColor(rowElem),
6363 colorFg = (colorBg[
0] *
0.299 + colorBg[
1] *
0.587 + colorBg[
2] *
0.114)
> 186 ? [
0,
0,
0 ] : [
255,
255,
255 ];
6365 dragHandle = E('div', { 'class': 'touchsort-element' }, [
6366 E('strong', [ rowElem.getAttribute('data-title') ]),
6367 rowBtn.cloneNode(true)
6370 Object.assign(dragHandle.style, {
6371 position: 'absolute',
6372 boxShadow: '
0 0 3px rgba(%d, %d, %d,
1)'.format(colorFg[
0], colorFg[
1], colorFg[
2]),
6373 background: 'rgba(%d, %d, %d,
0.8)'.format(colorBg[
0], colorBg[
1], colorBg[
2]),
6374 top: rowRect.top + 'px',
6375 left: rowRect.left + 'px',
6376 width: rowRect.width + 'px',
6377 height: (rowBtn.offsetHeight +
4) + 'px'
6380 Object.assign(dragHandle.firstElementChild.style, {
6381 position: 'absolute',
6382 lineHeight: dragHandle.style.height,
6383 whiteSpace: 'nowrap',
6385 textOverflow: 'ellipsis',
6386 left: (paddingRight
> paddingLeft) ? '' : '
5px',
6387 right: (paddingRight
> paddingLeft) ? '
5px' : '',
6388 width: (Math.max(paddingLeft, paddingRight) -
10) + 'px'
6391 Object.assign(dragHandle.lastElementChild.style, {
6392 position: 'absolute',
6394 left: paddingLeft + 'px',
6395 width: rowBtn.offsetWidth + 'px'
6398 document.body.appendChild(dragHandle);
6400 rowElem.classList.remove('flash');
6404 dragHandle.style.top = (touchLoc.pageY - (parseInt(dragHandle.style.height) /
2)) + 'px';
6406 rowElem.parentNode.querySelectorAll('[draggable]').forEach(function(tr, i, trs) {
6407 var trRect = tr.getBoundingClientRect(),
6408 yTop = trRect.top + window.scrollY,
6409 yBottom = trRect.bottom + window.scrollY,
6410 yMiddle = yTop + ((yBottom - yTop) /
2);
6412 tr.classList.remove('drag-over-above', 'drag-over-below');
6414 if ((i ==
0 || touchLoc.pageY
>= yTop)
&& touchLoc.pageY
<= yMiddle)
6415 tr.classList.add('drag-over-above');
6416 else if ((i == (trs.length -
1) || touchLoc.pageY
<= yBottom)
&& touchLoc.pageY
> yMiddle)
6417 tr.classList.add('drag-over-below');
6420 /* prevent standard scrolling and scroll page when drag handle is
6421 * moved very close (~
30px) to the viewport edge */
6423 ev.preventDefault();
6425 if (touchLoc.clientY
< 30)
6426 window.requestAnimationFrame(function() { htmlElem.scrollTop -=
30 });
6427 else if (touchLoc.clientY
> viewportHeight -
30)
6428 window.requestAnimationFrame(function() { htmlElem.scrollTop +=
30 });
6432 handleTouchEnd: function(ev) {
6433 var rowElem = dom.parent(ev.target, '.tr'),
6434 htmlElem = document.querySelector('html'),
6435 dragHandle = document.querySelector('.touchsort-element'),
6436 targetElem = rowElem.parentNode.querySelector('.drag-over-above, .drag-over-below'),
6437 viewportHeight = Math.max(document.documentElement.clientHeight, window.innerHeight ||
0);
6443 var isBelow = targetElem.classList.contains('drag-over-below');
6445 rowElem.parentNode.insertBefore(rowElem, isBelow ? targetElem.nextElementSibling : targetElem);
6448 this.uciconfig || this.map.config,
6449 rowElem.getAttribute('data-sid'),
6450 targetElem.getAttribute('data-sid'),
6453 window.requestAnimationFrame(function() {
6454 var rowRect = rowElem.getBoundingClientRect();
6456 if (rowRect.top
< 50)
6457 htmlElem.scrollTop = (htmlElem.scrollTop + rowRect.top -
50);
6458 else if (rowRect.bottom
> viewportHeight -
50)
6459 htmlElem.scrollTop = (htmlElem.scrollTop + viewportHeight -
50 - rowRect.height);
6461 rowElem.classList.add('flash');
6464 targetElem.classList.remove('drag-over-above', 'drag-over-below');
6467 document.body.removeChild(dragHandle);
6471 handleModalCancel: function(modalMap, ev) {
6472 var prevNode = this.getPreviousModalMap(),
6473 resetTasks = Promise.resolve();
6476 var heading = prevNode.parentNode.querySelector('h4'),
6477 prevMap = dom.findClassInstance(prevNode);
6480 resetTasks = resetTasks
6481 .then(L.bind(prevMap.load, prevMap))
6482 .then(L.bind(prevMap.reset, prevMap));
6484 prevMap = prevMap.parent;
6487 prevNode.classList.add('flash');
6488 prevNode.classList.remove('hidden');
6489 prevNode.parentNode.removeChild(prevNode.nextElementSibling);
6491 heading.removeChild(heading.lastElementChild);
6493 if (!this.getPreviousModalMap())
6495 .querySelector('div.right
> button')
6496 .firstChild.data = _('Dismiss');
6506 handleModalSave: function(modalMap, ev) {
6507 var mapNode = this.getActiveModalMap(),
6508 activeMap = dom.findClassInstance(mapNode),
6509 saveTasks = activeMap.save(null, true);
6511 while (activeMap.parent) {
6512 activeMap = activeMap.parent;
6513 saveTasks = saveTasks
6514 .then(L.bind(activeMap.load, activeMap))
6515 .then(L.bind(activeMap.reset, activeMap));
6519 .then(L.bind(this.handleModalCancel, this, modalMap, ev, true))
6520 .catch(function() {});
6524 handleSort: function(ev) {
6525 if (!ev.target.matches('th[data-sortable-row]'))
6529 descending = (th.getAttribute('data-sort-direction') == 'desc'),
6530 config_name = this.uciconfig || this.map.config,
6534 ev.currentTarget.querySelectorAll('th').forEach(function(other_th, i) {
6535 if (other_th !== th)
6536 other_th.removeAttribute('data-sort-direction');
6541 ev.currentTarget.parentNode.querySelectorAll('tr.cbi-section-table-row').forEach(L.bind(function(tr, i) {
6542 var sid = tr.getAttribute('data-sid'),
6543 opt = tr.childNodes[index].getAttribute('data-name'),
6544 val = this.cfgvalue(sid, opt);
6546 tr.querySelectorAll('.flash').forEach(function(n) {
6547 n.classList.remove('flash')
6551 ui.Table.prototype.deriveSortKey((val != null) ? val.trim() : ''),
6556 list.sort(function(a, b) {
6558 ? -L.naturalCompare(a[
0], b[
0])
6559 : L.naturalCompare(a[
0], b[
0]);
6562 window.requestAnimationFrame(L.bind(function() {
6563 var ref_sid, cur_sid;
6565 for (var i =
0; i
< list.length; i++) {
6566 list[i][
1].childNodes[index].classList.add('flash');
6567 th.parentNode.parentNode.appendChild(list[i][
1]);
6569 cur_sid = list[i][
1].getAttribute('data-sid');
6572 this.map.data.move(config_name, cur_sid, ref_sid, true);
6577 th.setAttribute('data-sort-direction', descending ? 'asc' : 'desc');
6582 * Add further options to the per-section instanced modal popup.
6584 * This function may be overwritten by user code to perform additional
6585 * setup steps before displaying the more options modal which is useful to
6586 * e.g. query additional data or to inject further option elements.
6588 * The default implementation of this function does nothing.
6591 * @param {LuCI.form.NamedSection} modalSection
6592 * The `NamedSection` instance about to be rendered in the modal popup.
6594 * @param {string} section_id
6595 * The ID of the underlying UCI section the modal popup belongs to.
6598 * The DOM event emitted by clicking the `More…` button.
6600 * @returns {*|Promise
<*
>}
6601 * Return values of this function are ignored but if a promise is returned,
6602 * it is run to completion before the rendering is continued, allowing
6603 * custom logic to perform asynchronous work before the modal dialog
6606 addModalOptions: function(modalSection, section_id, ev) {
6611 getActiveModalMap: function() {
6612 return document.querySelector('body.modal-overlay-active
> #modal_overlay
> .modal.cbi-modal
> .cbi-map:not(.hidden)');
6616 getPreviousModalMap: function() {
6617 var mapNode = this.getActiveModalMap(),
6618 prevNode = mapNode ? mapNode.previousElementSibling : null;
6620 return (prevNode
&& prevNode.matches('.cbi-map.hidden')) ? prevNode : null;
6624 cloneOptions: function(src_section, dest_section) {
6625 for (var i =
0; i
< src_section.children.length; i++) {
6626 var o1 = src_section.children[i];
6628 if (o1.modalonly === false
&& src_section === this)
6633 if (o1.subsection) {
6634 o2 = dest_section.option(o1.constructor, o1.option, o1.subsection.constructor, o1.subsection.sectiontype, o1.subsection.title, o1.subsection.description);
6636 for (var k in o1.subsection) {
6637 if (!o1.subsection.hasOwnProperty(k))
6643 case 'parentoption':
6647 o2.subsection[k] = o1.subsection[k];
6651 this.cloneOptions(o1.subsection, o2.subsection);
6654 o2 = dest_section.option(o1.constructor, o1.option, o1.title, o1.description);
6658 if (!o1.hasOwnProperty(k))
6678 renderMoreOptionsModal: function(section_id, ev) {
6679 var parent = this.map,
6680 sref = parent.data.get(parent.config, section_id),
6681 mapNode = this.getActiveModalMap(),
6682 activeMap = mapNode ? dom.findClassInstance(mapNode) : null,
6683 stackedMap = activeMap
&& (activeMap.parent !== parent || activeMap.section !== section_id);
6685 return (stackedMap ? activeMap.save(null, true) : Promise.resolve()).then(L.bind(function() {
6686 section_id = sref['.name'];
6690 if (parent instanceof CBIJSONMap) {
6691 m = new CBIJSONMap(null, null, null);
6692 m.data = parent.data;
6695 m = new CBIMap(parent.config, null, null);
6698 var s = m.section(CBINamedSection, section_id, this.sectiontype);
6701 m.section = section_id;
6702 m.readonly = parent.readonly;
6705 s.tab_names = this.tab_names;
6707 this.cloneOptions(this, s);
6709 return Promise.resolve(this.addModalOptions(s, section_id, ev)).then(function() {
6711 }).then(L.bind(function(nodes) {
6712 var title = parent.title,
6715 if ((name = this.titleFn('modaltitle', section_id)) != null)
6717 else if ((name = this.titleFn('sectiontitle', section_id)) != null)
6718 title = '%s - %s'.format(parent.title, name);
6719 else if (!this.anonymous)
6720 title = '%s - %s'.format(parent.title, section_id);
6724 .querySelector('h4')
6725 .appendChild(E('span', title ? ' » ' + title : ''));
6728 .querySelector('div.right
> button')
6729 .firstChild.data = _('Back');
6731 mapNode.classList.add('hidden');
6732 mapNode.parentNode.insertBefore(nodes, mapNode.nextElementSibling);
6734 nodes.classList.add('flash');
6737 ui.showModal(title, [
6739 E('div', { 'class': 'right' }, [
6741 'class': 'cbi-button',
6742 'click': ui.createHandlerFn(this, 'handleModalCancel', m)
6743 }, [ _('Dismiss') ]), ' ',
6745 'class': 'cbi-button cbi-button-positive important',
6746 'click': ui.createHandlerFn(this, 'handleModalSave', m),
6747 'disabled': m.readonly || null
6753 }, this)).catch(L.error);
6758 * @class GridSection
6759 * @memberof LuCI.form
6760 * @augments LuCI.form.TableSection
6764 * The `GridSection` class maps all or - if `filter()` is overwritten - a
6765 * subset of the underlying UCI configuration sections of a given type.
6767 * A grid section functions similar to a {@link LuCI.form.TableSection} but
6768 * supports tabbing in the modal overlay. Option elements added with
6769 * [option()]{@link LuCI.form.GridSection#option} are shown in the table while
6770 * elements added with [taboption()]{@link LuCI.form.GridSection#taboption}
6771 * are displayed in the modal popup.
6773 * Another important difference is that the table cells show a readonly text
6774 * preview of the corresponding option elements by default, unless the child
6775 * option element is explicitly made writable by setting the `editable`
6776 * property to `true`.
6778 * Additionally, the grid section honours a `modalonly` property of child
6779 * option elements. Refer to the [AbstractValue]{@link LuCI.form.AbstractValue}
6780 * documentation for details.
6782 * Layout wise, a grid section looks mostly identical to table sections.
6784 * @param {LuCI.form.Map|LuCI.form.JSONMap} form
6785 * The configuration form this section is added to. It is automatically passed
6786 * by [section()]{@link LuCI.form.Map#section}.
6788 * @param {string} section_type
6789 * The type of the UCI section to map.
6791 * @param {string} [title]
6792 * The title caption of the form section element.
6794 * @param {string} [description]
6795 * The description text of the form section element.
6797 var CBIGridSection = CBITableSection.extend(/** @lends LuCI.form.GridSection.prototype */ {
6799 * Add an option tab to the section.
6801 * The modal option elements of a grid section may be divided into multiple
6802 * tabs to provide a better overview to the user.
6804 * Before options can be moved into a tab pane, the corresponding tab
6805 * has to be defined first, which is done by calling this function.
6807 * Note that tabs are only effective in modal popups, options added with
6808 * `option()` will not be assigned to a specific tab and are rendered in
6809 * the table view only.
6811 * @param {string} name
6812 * The name of the tab to register. It may be freely chosen and just serves
6813 * as an identifier to differentiate tabs.
6815 * @param {string} title
6816 * The human readable caption of the tab.
6818 * @param {string} [description]
6819 * An additional description text for the corresponding tab pane. It is
6820 * displayed as text paragraph below the tab but before the tab pane
6821 * contents. If omitted, no description will be rendered.
6824 * Throws an exception if a tab with the same `name` already exists.
6826 tab: function(name, title, description) {
6827 CBIAbstractSection.prototype.tab.call(this, name, title, description);
6831 handleAdd: function(ev, name) {
6832 var config_name = this.uciconfig || this.map.config,
6833 section_id = this.map.data.add(config_name, this.sectiontype, name),
6834 mapNode = this.getPreviousModalMap(),
6835 prevMap = mapNode ? dom.findClassInstance(mapNode) : this.map;
6837 prevMap.addedSection = section_id;
6839 return this.renderMoreOptionsModal(section_id);
6843 handleModalSave: function(/* ... */) {
6844 var mapNode = this.getPreviousModalMap(),
6845 prevMap = mapNode ? dom.findClassInstance(mapNode) : this.map;
6847 return this.super('handleModalSave', arguments);
6851 handleModalCancel: function(modalMap, ev, isSaving) {
6852 var config_name = this.uciconfig || this.map.config,
6853 mapNode = this.getPreviousModalMap(),
6854 prevMap = mapNode ? dom.findClassInstance(mapNode) : this.map;
6856 if (prevMap.addedSection != null
&& !isSaving)
6857 this.map.data.remove(config_name, prevMap.addedSection);
6859 delete prevMap.addedSection;
6861 return this.super('handleModalCancel', arguments);
6865 renderUCISection: function(section_id) {
6866 return this.renderOptions(null, section_id);
6870 renderChildren: function(tab_name, section_id, in_table) {
6871 var tasks = [], index =
0;
6873 for (var i =
0, opt; (opt = this.children[i]) != null; i++) {
6874 if (opt.disable || opt.modalonly)
6878 tasks.push(opt.render(index++, section_id, in_table));
6880 tasks.push(this.renderTextValue(section_id, opt));
6883 return Promise.all(tasks);
6887 renderTextValue: function(section_id, opt) {
6888 var title = this.stripTags(opt.title).trim(),
6889 descr = this.stripTags(opt.description).trim(),
6890 value = opt.textvalue(section_id);
6893 'class': 'td cbi-value-field',
6894 'data-title': (title != '') ? title : null,
6895 'data-description': (descr != '') ? descr : null,
6896 'data-name': opt.option,
6897 'data-widget': 'CBI.DummyValue'
6898 }, (value != null) ? value : E('em', _('none')));
6902 renderHeaderRows: function(section_id) {
6903 return this.super('renderHeaderRows', [ NaN, true ]);
6907 renderRowActions: function(section_id) {
6908 return this.super('renderRowActions', [ section_id, _('Edit') ]);
6913 var section_ids = this.cfgsections(),
6916 if (Array.isArray(this.children)) {
6917 for (var i =
0; i
< section_ids.length; i++) {
6918 for (var j =
0; j
< this.children.length; j++) {
6919 if (!this.children[j].editable || this.children[j].modalonly)
6922 tasks.push(this.children[j].parse(section_ids[i]));
6927 return Promise.all(tasks);
6932 * @class NamedSection
6933 * @memberof LuCI.form
6934 * @augments LuCI.form.AbstractSection
6938 * The `NamedSection` class maps exactly one UCI section instance which is
6939 * specified when constructing the class instance.
6941 * Layout and functionality wise, a named section is essentially a
6942 * `TypedSection` which allows exactly one section node.
6944 * @param {LuCI.form.Map|LuCI.form.JSONMap} form
6945 * The configuration form this section is added to. It is automatically passed
6946 * by [section()]{@link LuCI.form.Map#section}.
6948 * @param {string} section_id
6949 * The name (ID) of the UCI section to map.
6951 * @param {string} section_type
6952 * The type of the UCI section to map.
6954 * @param {string} [title]
6955 * The title caption of the form section element.
6957 * @param {string} [description]
6958 * The description text of the form section element.
6960 var CBINamedSection = CBIAbstractSection.extend(/** @lends LuCI.form.NamedSection.prototype */ {
6961 __name__: 'CBI.NamedSection',
6962 __init__: function(map, section_id /*, ... */) {
6963 this.super('__init__', this.varargs(arguments,
2, map));
6965 this.section = section_id;
6969 * If set to `true`, the user may remove or recreate the sole mapped
6970 * configuration instance from the form section widget, otherwise only a
6971 * preexisting section may be edited. The default is `false`.
6973 * @name LuCI.form.NamedSection.prototype#addremove
6979 * Override the UCI configuration name to read the section IDs from. By
6980 * default, the configuration name is inherited from the parent `Map`.
6981 * By setting this property, a deviating configuration may be specified.
6982 * The default is `null`, means inheriting from the parent form.
6984 * @name LuCI.form.NamedSection.prototype#uciconfig
6990 * The `NamedSection` class overwrites the generic `cfgsections()`
6991 * implementation to return a one-element array containing the mapped
6992 * section ID as sole element. User code should not normally change this.
6994 * @returns {string[]}
6995 * Returns a one-element array containing the mapped section ID.
6997 cfgsections: function() {
6998 return [ this.section ];
7002 handleAdd: function(ev) {
7003 var section_id = this.section,
7004 config_name = this.uciconfig || this.map.config;
7006 this.map.data.add(config_name, this.sectiontype, section_id);
7007 return this.map.save(null, true);
7011 handleRemove: function(ev) {
7012 var section_id = this.section,
7013 config_name = this.uciconfig || this.map.config;
7015 this.map.data.remove(config_name, section_id);
7016 return this.map.save(null, true);
7020 renderContents: function(data) {
7021 var ucidata = data[
0], nodes = data[
1],
7022 section_id = this.section,
7023 config_name = this.uciconfig || this.map.config,
7024 sectionEl = E('div', {
7025 'id': ucidata ? null : 'cbi-%s-%s'.format(config_name, section_id),
7026 'class': 'cbi-section',
7027 'data-tab': (this.map.tabbed
&& !this.parentoption) ? this.sectiontype : null,
7028 'data-tab-title': (this.map.tabbed
&& !this.parentoption) ? this.title || this.sectiontype : null
7031 if (typeof(this.title) === 'string'
&& this.title !== '')
7032 sectionEl.appendChild(E('h3', {}, this.title));
7034 if (typeof(this.description) === 'string'
&& this.description !== '')
7035 sectionEl.appendChild(E('div', { 'class': 'cbi-section-descr' }, this.description));
7038 if (this.addremove) {
7039 sectionEl.appendChild(
7040 E('div', { 'class': 'cbi-section-remove right' },
7042 'class': 'cbi-button',
7043 'click': ui.createHandlerFn(this, 'handleRemove'),
7044 'disabled': this.map.readonly || null
7045 }, [ _('Delete') ])));
7048 sectionEl.appendChild(E('div', {
7049 'id': 'cbi-%s-%s'.format(config_name, section_id),
7051 ? 'cbi-section-node cbi-section-node-tabbed' : 'cbi-section-node',
7052 'data-section-id': section_id
7055 else if (this.addremove) {
7056 sectionEl.appendChild(
7058 'class': 'cbi-button cbi-button-add',
7059 'click': ui.createHandlerFn(this, 'handleAdd'),
7060 'disabled': this.map.readonly || null
7064 dom.bindClassInstance(sectionEl, this);
7070 render: function() {
7071 var config_name = this.uciconfig || this.map.config,
7072 section_id = this.section;
7074 return Promise.all([
7075 this.map.data.get(config_name, section_id),
7076 this.renderUCISection(section_id)
7077 ]).then(this.renderContents.bind(this));
7083 * @memberof LuCI.form
7084 * @augments LuCI.form.AbstractValue
7088 * The `Value` class represents a simple one-line form input using the
7089 * {@link LuCI.ui.Textfield} or - in case choices are added - the
7090 * {@link LuCI.ui.Combobox} class as underlying widget.
7092 * @param {LuCI.form.Map|LuCI.form.JSONMap} form
7093 * The configuration form this section is added to. It is automatically passed
7094 * by [option()]{@link LuCI.form.AbstractSection#option} or
7095 * [taboption()]{@link LuCI.form.AbstractSection#taboption} when adding the
7096 * option to the section.
7098 * @param {LuCI.form.AbstractSection} section
7099 * The configuration section this option is added to. It is automatically passed
7100 * by [option()]{@link LuCI.form.AbstractSection#option} or
7101 * [taboption()]{@link LuCI.form.AbstractSection#taboption} when adding the
7102 * option to the section.
7104 * @param {string} option
7105 * The name of the UCI option to map.
7107 * @param {string} [title]
7108 * The title caption of the option element.
7110 * @param {string} [description]
7111 * The description text of the option element.
7113 var CBIValue = CBIAbstractValue.extend(/** @lends LuCI.form.Value.prototype */ {
7114 __name__: 'CBI.Value',
7117 * If set to `true`, the field is rendered as password input, otherwise
7118 * as plain text input.
7120 * @name LuCI.form.Value.prototype#password
7126 * Set a placeholder string to use when the input field is empty.
7128 * @name LuCI.form.Value.prototype#placeholder
7134 * Add a predefined choice to the form option. By adding one or more
7135 * choices, the plain text input field is turned into a combobox widget
7136 * which prompts the user to select a predefined choice, or to enter a
7139 * @param {string} key
7140 * The choice value to add.
7142 * @param {Node|string} val
7143 * The caption for the choice value. May be a DOM node, a document fragment
7144 * or a plain text string. If omitted, the `key` value is used as caption.
7146 value: function(key, val) {
7147 this.keylist = this.keylist || [];
7148 this.keylist.push(String(key));
7150 this.vallist = this.vallist || [];
7151 this.vallist.push(dom.elem(val) ? val : String(val != null ? val : key));
7155 render: function(option_index, section_id, in_table) {
7156 return Promise.resolve(this.cfgvalue(section_id))
7157 .then(this.renderWidget.bind(this, section_id, option_index))
7158 .then(this.renderFrame.bind(this, section_id, in_table, option_index));
7162 handleValueChange: function(section_id, state, ev) {
7163 if (typeof(this.onchange) != 'function')
7166 var value = this.formvalue(section_id);
7168 if (isEqual(value, state.previousValue))
7171 state.previousValue = value;
7172 this.onchange.call(this, ev, section_id, value);
7176 renderFrame: function(section_id, in_table, option_index, nodes) {
7177 var config_name = this.uciconfig || this.section.uciconfig || this.map.config,
7178 depend_list = this.transformDepList(section_id),
7182 var title = this.stripTags(this.title).trim();
7183 optionEl = E('td', {
7184 'class': 'td cbi-value-field',
7185 'data-title': (title != '') ? title : null,
7186 'data-description': this.stripTags(this.description).trim(),
7187 'data-name': this.option,
7188 'data-widget': this.typename || (this.template ? this.template.replace(/^.+\//, '') : null) || this.__name__
7190 'id': 'cbi-%s-%s-%s'.format(config_name, section_id, this.option),
7191 'data-index': option_index,
7192 'data-depends': depend_list,
7193 'data-field': this.cbid(section_id)
7197 optionEl = E('div', {
7198 'class': 'cbi-value',
7199 'id': 'cbi-%s-%s-%s'.format(config_name, section_id, this.option),
7200 'data-index': option_index,
7201 'data-depends': depend_list,
7202 'data-field': this.cbid(section_id),
7203 'data-name': this.option,
7204 'data-widget': this.typename || (this.template ? this.template.replace(/^.+\//, '') : null) || this.__name__
7207 if (this.last_child)
7208 optionEl.classList.add('cbi-value-last');
7210 if (typeof(this.title) === 'string'
&& this.title !== '') {
7211 optionEl.appendChild(E('label', {
7212 'class': 'cbi-value-title',
7213 'for': 'widget.cbid.%s.%s.%s'.format(config_name, section_id, this.option),
7214 'click': function(ev) {
7215 var node = ev.currentTarget,
7216 elem = node.nextElementSibling.querySelector('#' + node.getAttribute('for')) || node.nextElementSibling.querySelector('[
data-widget-id=
"' + node.getAttribute('for') + '"]');
7224 this.titleref ? E('a', {
7225 'class': 'cbi-title-ref',
7226 'href': this.titleref,
7227 'title': this.titledesc || _('Go to relevant configuration page')
7228 }, this.title) : this.title));
7230 optionEl.appendChild(E('div', { 'class': 'cbi-value-field' }));
7235 (optionEl.lastChild || optionEl).appendChild(nodes);
7237 if (!in_table
&& typeof(this.description) === 'string'
&& this.description !== '')
7238 dom.append(optionEl.lastChild || optionEl,
7239 E('div', { 'class': 'cbi-value-description' }, this.description.trim()));
7241 if (depend_list
&& depend_list.length)
7242 optionEl.classList.add('hidden');
7244 optionEl.addEventListener('widget-change',
7245 L.bind(this.map.checkDepends, this.map));
7247 optionEl.addEventListener('widget-change',
7248 L.bind(this.handleValueChange, this, section_id, {}));
7250 dom.bindClassInstance(optionEl, this);
7256 renderWidget: function(section_id, option_index, cfgvalue) {
7257 var value = (cfgvalue != null) ? cfgvalue : this.default,
7258 choices = this.transformChoices(),
7262 var placeholder = (this.optional || this.rmempty)
7263 ? E('em', _('unspecified')) : _('-- Please choose --');
7265 widget = new ui.Combobox(Array.isArray(value) ? value.join(' ') : value, choices, {
7266 id: this.cbid(section_id),
7268 optional: this.optional || this.rmempty,
7269 datatype: this.datatype,
7270 select_placeholder: this.placeholder || placeholder,
7271 validate: L.bind(this.validate, this, section_id),
7272 disabled: (this.readonly != null) ? this.readonly : this.map.readonly
7276 widget = new ui.Textfield(Array.isArray(value) ? value.join(' ') : value, {
7277 id: this.cbid(section_id),
7278 password: this.password,
7279 optional: this.optional || this.rmempty,
7280 datatype: this.datatype,
7281 placeholder: this.placeholder,
7282 validate: L.bind(this.validate, this, section_id),
7283 disabled: (this.readonly != null) ? this.readonly : this.map.readonly
7287 return widget.render();
7292 * @class DynamicList
7293 * @memberof LuCI.form
7294 * @augments LuCI.form.Value
7298 * The `DynamicList` class represents a multi value widget allowing the user
7299 * to enter multiple unique values, optionally selected from a set of
7300 * predefined choices. It builds upon the {@link LuCI.ui.DynamicList} widget.
7302 * @param {LuCI.form.Map|LuCI.form.JSONMap} form
7303 * The configuration form this section is added to. It is automatically passed
7304 * by [option()]{@link LuCI.form.AbstractSection#option} or
7305 * [taboption()]{@link LuCI.form.AbstractSection#taboption} when adding the
7306 * option to the section.
7308 * @param {LuCI.form.AbstractSection} section
7309 * The configuration section this option is added to. It is automatically passed
7310 * by [option()]{@link LuCI.form.AbstractSection#option} or
7311 * [taboption()]{@link LuCI.form.AbstractSection#taboption} when adding the
7312 * option to the section.
7314 * @param {string} option
7315 * The name of the UCI option to map.
7317 * @param {string} [title]
7318 * The title caption of the option element.
7320 * @param {string} [description]
7321 * The description text of the option element.
7323 var CBIDynamicList = CBIValue.extend(/** @lends LuCI.form.DynamicList.prototype */ {
7324 __name__: 'CBI.DynamicList',
7327 renderWidget: function(section_id, option_index, cfgvalue) {
7328 var value = (cfgvalue != null) ? cfgvalue : this.default,
7329 choices = this.transformChoices(),
7330 items = L.toArray(value);
7332 var widget = new ui.DynamicList(items, choices, {
7333 id: this.cbid(section_id),
7335 optional: this.optional || this.rmempty,
7336 datatype: this.datatype,
7337 placeholder: this.placeholder,
7338 validate: L.bind(this.validate, this, section_id),
7339 disabled: (this.readonly != null) ? this.readonly : this.map.readonly
7342 return widget.render();
7348 * @memberof LuCI.form
7349 * @augments LuCI.form.Value
7353 * The `ListValue` class implements a simple static HTML select element
7354 * allowing the user chose a single value from a set of predefined choices.
7355 * It builds upon the {@link LuCI.ui.Select} widget.
7357 * @param {LuCI.form.Map|LuCI.form.JSONMap} form
7358 * The configuration form this section is added to. It is automatically passed
7359 * by [option()]{@link LuCI.form.AbstractSection#option} or
7360 * [taboption()]{@link LuCI.form.AbstractSection#taboption} when adding the
7361 * option to the section.
7363 * @param {LuCI.form.AbstractSection} section
7364 * The configuration section this option is added to. It is automatically passed
7365 * by [option()]{@link LuCI.form.AbstractSection#option} or
7366 * [taboption()]{@link LuCI.form.AbstractSection#taboption} when adding the
7367 * option to the section.
7369 * @param {string} option
7370 * The name of the UCI option to map.
7372 * @param {string} [title]
7373 * The title caption of the option element.
7375 * @param {string} [description]
7376 * The description text of the option element.
7378 var CBIListValue = CBIValue.extend(/** @lends LuCI.form.ListValue.prototype */ {
7379 __name__: 'CBI.ListValue',
7381 __init__: function() {
7382 this.super('__init__', arguments);
7383 this.widget = 'select';
7384 this.orientation = 'horizontal';
7389 * Set the size attribute of the underlying HTML select element.
7391 * @name LuCI.form.ListValue.prototype#size
7397 * Set the type of the underlying form controls.
7399 * May be one of `select` or `radio`. If set to `select`, an HTML
7400 * select element is rendered, otherwise a collection of `radio`
7403 * @name LuCI.form.ListValue.prototype#widget
7409 * Set the orientation of the underlying radio or checkbox elements.
7411 * May be one of `horizontal` or `vertical`. Only applies to non-select
7414 * @name LuCI.form.ListValue.prototype#orientation
7416 * @default horizontal
7420 renderWidget: function(section_id, option_index, cfgvalue) {
7421 var choices = this.transformChoices();
7422 var widget = new ui.Select((cfgvalue != null) ? cfgvalue : this.default, choices, {
7423 id: this.cbid(section_id),
7426 widget: this.widget,
7427 optional: this.optional,
7428 orientation: this.orientation,
7429 placeholder: this.placeholder,
7430 validate: L.bind(this.validate, this, section_id),
7431 disabled: (this.readonly != null) ? this.readonly : this.map.readonly
7434 return widget.render();
7440 * @memberof LuCI.form
7441 * @augments LuCI.form.Value
7445 * The `FlagValue` element builds upon the {@link LuCI.ui.Checkbox} widget to
7446 * implement a simple checkbox element.
7448 * @param {LuCI.form.Map|LuCI.form.JSONMap} form
7449 * The configuration form this section is added to. It is automatically passed
7450 * by [option()]{@link LuCI.form.AbstractSection#option} or
7451 * [taboption()]{@link LuCI.form.AbstractSection#taboption} when adding the
7452 * option to the section.
7454 * @param {LuCI.form.AbstractSection} section
7455 * The configuration section this option is added to. It is automatically passed
7456 * by [option()]{@link LuCI.form.AbstractSection#option} or
7457 * [taboption()]{@link LuCI.form.AbstractSection#taboption} when adding the
7458 * option to the section.
7460 * @param {string} option
7461 * The name of the UCI option to map.
7463 * @param {string} [title]
7464 * The title caption of the option element.
7466 * @param {string} [description]
7467 * The description text of the option element.
7469 var CBIFlagValue = CBIValue.extend(/** @lends LuCI.form.FlagValue.prototype */ {
7470 __name__: 'CBI.FlagValue',
7472 __init__: function() {
7473 this.super('__init__', arguments);
7476 this.disabled = '
0';
7477 this.default = this.disabled;
7481 * Sets the input value to use for the checkbox checked state.
7483 * @name LuCI.form.FlagValue.prototype#enabled
7489 * Sets the input value to use for the checkbox unchecked state.
7491 * @name LuCI.form.FlagValue.prototype#disabled
7497 * Set a tooltip for the flag option.
7499 * If set to a string, it will be used as-is as a tooltip.
7501 * If set to a function, the function will be invoked and the return
7502 * value will be shown as a tooltip. If the return value of the function
7503 * is `null` no tooltip will be set.
7505 * @name LuCI.form.FlagValue.prototype#tooltip
7506 * @type string|function
7511 * Set a tooltip icon for the flag option.
7513 * If set, this icon will be shown for the default one.
7514 * This could also be a png icon from the resources directory.
7516 * @name LuCI.form.FlagValue.prototype#tooltipicon
7522 renderWidget: function(section_id, option_index, cfgvalue) {
7525 if (typeof(this.tooltip) == 'function')
7526 tooltip = this.tooltip.apply(this, [section_id]);
7527 else if (typeof(this.tooltip) == 'string')
7528 tooltip = (arguments.length
> 1) ? ''.format.apply(this.tooltip, this.varargs(arguments,
1)) : this.tooltip;
7530 var widget = new ui.Checkbox((cfgvalue != null) ? cfgvalue : this.default, {
7531 id: this.cbid(section_id),
7532 value_enabled: this.enabled,
7533 value_disabled: this.disabled,
7534 validate: L.bind(this.validate, this, section_id),
7536 tooltipicon: this.tooltipicon,
7537 disabled: (this.readonly != null) ? this.readonly : this.map.readonly
7540 return widget.render();
7544 * Query the checked state of the underlying checkbox widget and return
7545 * either the `enabled` or the `disabled` property value, depending on
7546 * the checked state.
7550 formvalue: function(section_id) {
7551 var elem = this.getUIElement(section_id),
7552 checked = elem ? elem.isChecked() : false;
7553 return checked ? this.enabled : this.disabled;
7557 * Query the checked state of the underlying checkbox widget and return
7558 * either a localized `Yes` or `No` string, depending on the checked state.
7562 textvalue: function(section_id) {
7563 var cval = this.cfgvalue(section_id);
7566 cval = this.default;
7568 return (cval == this.enabled) ? _('Yes') : _('No');
7572 parse: function(section_id) {
7573 if (this.isActive(section_id)) {
7574 var fval = this.formvalue(section_id);
7576 if (!this.isValid(section_id)) {
7577 var title = this.stripTags(this.title).trim();
7578 var error = this.getValidationError(section_id);
7579 return Promise.reject(new TypeError(
7580 _('Option
"%s" contains an invalid input value.').format(title || this.option) + ' ' + error));
7583 if (fval == this.default
&& (this.optional || this.rmempty))
7584 return Promise.resolve(this.remove(section_id));
7586 return Promise.resolve(this.write(section_id, fval));
7588 else if (!this.retain) {
7589 return Promise.resolve(this.remove(section_id));
7596 * @memberof LuCI.form
7597 * @augments LuCI.form.DynamicList
7601 * The `MultiValue` class is a modified variant of the `DynamicList` element
7602 * which leverages the {@link LuCI.ui.Dropdown} widget to implement a multi
7603 * select dropdown element.
7605 * @param {LuCI.form.Map|LuCI.form.JSONMap} form
7606 * The configuration form this section is added to. It is automatically passed
7607 * by [option()]{@link LuCI.form.AbstractSection#option} or
7608 * [taboption()]{@link LuCI.form.AbstractSection#taboption} when adding the
7609 * option to the section.
7611 * @param {LuCI.form.AbstractSection} section
7612 * The configuration section this option is added to. It is automatically passed
7613 * by [option()]{@link LuCI.form.AbstractSection#option} or
7614 * [taboption()]{@link LuCI.form.AbstractSection#taboption} when adding the
7615 * option to the section.
7617 * @param {string} option
7618 * The name of the UCI option to map.
7620 * @param {string} [title]
7621 * The title caption of the option element.
7623 * @param {string} [description]
7624 * The description text of the option element.
7626 var CBIMultiValue = CBIDynamicList.extend(/** @lends LuCI.form.MultiValue.prototype */ {
7627 __name__: 'CBI.MultiValue',
7629 __init__: function() {
7630 this.super('__init__', arguments);
7631 this.placeholder = _('-- Please choose --');
7635 * Allows to specify the [display_items]{@link LuCI.ui.Dropdown.InitOptions}
7636 * property of the underlying dropdown widget. If omitted, the value of
7637 * the `size` property is used or `
3` when `size` is unspecified as well.
7639 * @name LuCI.form.MultiValue.prototype#display_size
7645 * Allows to specify the [dropdown_items]{@link LuCI.ui.Dropdown.InitOptions}
7646 * property of the underlying dropdown widget. If omitted, the value of
7647 * the `size` property is used or `-
1` when `size` is unspecified as well.
7649 * @name LuCI.form.MultiValue.prototype#dropdown_size
7655 renderWidget: function(section_id, option_index, cfgvalue) {
7656 var value = (cfgvalue != null) ? cfgvalue : this.default,
7657 choices = this.transformChoices();
7659 var widget = new ui.Dropdown(L.toArray(value), choices, {
7660 id: this.cbid(section_id),
7663 optional: this.optional || this.rmempty,
7664 select_placeholder: this.placeholder,
7665 display_items: this.display_size || this.size ||
3,
7666 dropdown_items: this.dropdown_size || this.size || -
1,
7667 validate: L.bind(this.validate, this, section_id),
7668 disabled: (this.readonly != null) ? this.readonly : this.map.readonly
7671 return widget.render();
7677 * @memberof LuCI.form
7678 * @augments LuCI.form.Value
7682 * The `TextValue` class implements a multi-line textarea input using
7683 * {@link LuCI.ui.Textarea}.
7685 * @param {LuCI.form.Map|LuCI.form.JSONMap} form
7686 * The configuration form this section is added to. It is automatically passed
7687 * by [option()]{@link LuCI.form.AbstractSection#option} or
7688 * [taboption()]{@link LuCI.form.AbstractSection#taboption} when adding the
7689 * option to the section.
7691 * @param {LuCI.form.AbstractSection} section
7692 * The configuration section this option is added to. It is automatically passed
7693 * by [option()]{@link LuCI.form.AbstractSection#option} or
7694 * [taboption()]{@link LuCI.form.AbstractSection#taboption} when adding the
7695 * option to the section.
7697 * @param {string} option
7698 * The name of the UCI option to map.
7700 * @param {string} [title]
7701 * The title caption of the option element.
7703 * @param {string} [description]
7704 * The description text of the option element.
7706 var CBITextValue = CBIValue.extend(/** @lends LuCI.form.TextValue.prototype */ {
7707 __name__: 'CBI.TextValue',
7713 * Enforces the use of a monospace font for the textarea contents when set
7716 * @name LuCI.form.TextValue.prototype#monospace
7722 * Allows to specify the [cols]{@link LuCI.ui.Textarea.InitOptions}
7723 * property of the underlying textarea widget.
7725 * @name LuCI.form.TextValue.prototype#cols
7731 * Allows to specify the [rows]{@link LuCI.ui.Textarea.InitOptions}
7732 * property of the underlying textarea widget.
7734 * @name LuCI.form.TextValue.prototype#rows
7740 * Allows to specify the [wrap]{@link LuCI.ui.Textarea.InitOptions}
7741 * property of the underlying textarea widget.
7743 * @name LuCI.form.TextValue.prototype#wrap
7749 renderWidget: function(section_id, option_index, cfgvalue) {
7750 var value = (cfgvalue != null) ? cfgvalue : this.default;
7752 var widget = new ui.Textarea(value, {
7753 id: this.cbid(section_id),
7754 optional: this.optional || this.rmempty,
7755 placeholder: this.placeholder,
7756 monospace: this.monospace,
7760 validate: L.bind(this.validate, this, section_id),
7761 disabled: (this.readonly != null) ? this.readonly : this.map.readonly
7764 return widget.render();
7770 * @memberof LuCI.form
7771 * @augments LuCI.form.Value
7775 * The `DummyValue` element wraps an {@link LuCI.ui.Hiddenfield} widget and
7776 * renders the underlying UCI option or default value as readonly text.
7778 * @param {LuCI.form.Map|LuCI.form.JSONMap} form
7779 * The configuration form this section is added to. It is automatically passed
7780 * by [option()]{@link LuCI.form.AbstractSection#option} or
7781 * [taboption()]{@link LuCI.form.AbstractSection#taboption} when adding the
7782 * option to the section.
7784 * @param {LuCI.form.AbstractSection} section
7785 * The configuration section this option is added to. It is automatically passed
7786 * by [option()]{@link LuCI.form.AbstractSection#option} or
7787 * [taboption()]{@link LuCI.form.AbstractSection#taboption} when adding the
7788 * option to the section.
7790 * @param {string} option
7791 * The name of the UCI option to map.
7793 * @param {string} [title]
7794 * The title caption of the option element.
7796 * @param {string} [description]
7797 * The description text of the option element.
7799 var CBIDummyValue = CBIValue.extend(/** @lends LuCI.form.DummyValue.prototype */ {
7800 __name__: 'CBI.DummyValue',
7803 * Set a URL which is opened when clicking on the dummy value text.
7805 * By setting this property, the dummy value text is wrapped in an `
<a
>`
7806 * element with the property value used as `href` attribute.
7808 * @name LuCI.form.DummyValue.prototype#href
7814 * Treat the UCI option value (or the `default` property value) as HTML.
7816 * By default, the value text is HTML escaped before being rendered as
7817 * text. In some cases it may be needed to actually interpret and render
7818 * HTML contents as-is. When set to `true`, HTML escaping is disabled.
7820 * @name LuCI.form.DummyValue.prototype#rawhtml
7826 * Render the UCI option value as hidden using the HTML display: none style property.
7828 * By default, the value is displayed
7830 * @name LuCI.form.DummyValue.prototype#hidden
7836 renderWidget: function(section_id, option_index, cfgvalue) {
7837 var value = (cfgvalue != null) ? cfgvalue : this.default,
7838 hiddenEl = new ui.Hiddenfield(value, { id: this.cbid(section_id) }),
7839 outputEl = E('div', { 'style': this.hidden ? 'display:none' : null });
7841 if (this.href
&& !((this.readonly != null) ? this.readonly : this.map.readonly))
7842 outputEl.appendChild(E('a', { 'href': this.href }));
7844 dom.append(outputEl.lastChild || outputEl,
7845 this.rawhtml ? value : [ value ]);
7854 remove: function() {},
7857 write: function() {}
7861 * @class ButtonValue
7862 * @memberof LuCI.form
7863 * @augments LuCI.form.Value
7867 * The `DummyValue` element wraps an {@link LuCI.ui.Hiddenfield} widget and
7868 * renders the underlying UCI option or default value as readonly text.
7870 * @param {LuCI.form.Map|LuCI.form.JSONMap} form
7871 * The configuration form this section is added to. It is automatically passed
7872 * by [option()]{@link LuCI.form.AbstractSection#option} or
7873 * [taboption()]{@link LuCI.form.AbstractSection#taboption} when adding the
7874 * option to the section.
7876 * @param {LuCI.form.AbstractSection} section
7877 * The configuration section this option is added to. It is automatically passed
7878 * by [option()]{@link LuCI.form.AbstractSection#option} or
7879 * [taboption()]{@link LuCI.form.AbstractSection#taboption} when adding the
7880 * option to the section.
7882 * @param {string} option
7883 * The name of the UCI option to map.
7885 * @param {string} [title]
7886 * The title caption of the option element.
7888 * @param {string} [description]
7889 * The description text of the option element.
7891 var CBIButtonValue = CBIValue.extend(/** @lends LuCI.form.ButtonValue.prototype */ {
7892 __name__: 'CBI.ButtonValue',
7895 * Override the rendered button caption.
7897 * By default, the option title - which is passed as fourth argument to the
7898 * constructor - is used as caption for the button element. When setting
7899 * this property to a string, it is used as `String.format()` pattern with
7900 * the underlying UCI section name passed as first format argument. When
7901 * set to a function, it is invoked passing the section ID as sole argument
7902 * and the resulting return value is converted to a string before being
7903 * used as button caption.
7905 * The default is `null`, means the option title is used as caption.
7907 * @name LuCI.form.ButtonValue.prototype#inputtitle
7908 * @type string|function
7913 * Override the button style class.
7915 * By setting this property, a specific `cbi-button-*` CSS class can be
7916 * selected to influence the style of the resulting button.
7918 * Suitable values which are implemented by most themes are `positive`,
7919 * `negative` and `primary`.
7921 * The default is `null`, means a neutral button styling is used.
7923 * @name LuCI.form.ButtonValue.prototype#inputstyle
7929 * Override the button click action.
7931 * By default, the underlying UCI option (or default property) value is
7932 * copied into a hidden field tied to the button element and the save
7933 * action is triggered on the parent form element.
7935 * When this property is set to a function, it is invoked instead of
7936 * performing the default actions. The handler function will receive the
7937 * DOM click element as first and the underlying configuration section ID
7938 * as second argument.
7940 * @name LuCI.form.ButtonValue.prototype#onclick
7946 renderWidget: function(section_id, option_index, cfgvalue) {
7947 var value = (cfgvalue != null) ? cfgvalue : this.default,
7948 hiddenEl = new ui.Hiddenfield(value, { id: this.cbid(section_id) }),
7949 outputEl = E('div'),
7950 btn_title = this.titleFn('inputtitle', section_id) || this.titleFn('title', section_id);
7952 if (value !== false)
7953 dom.content(outputEl, [
7955 'class': 'cbi-button cbi-button-%s'.format(this.inputstyle || 'button'),
7956 'click': ui.createHandlerFn(this, function(section_id, ev) {
7958 return this.onclick(ev, section_id);
7960 ev.currentTarget.parentNode.nextElementSibling.value = value;
7961 return this.map.save();
7963 'disabled': ((this.readonly != null) ? this.readonly : this.map.readonly) || null
7967 dom.content(outputEl, ' - ');
7977 * @class HiddenValue
7978 * @memberof LuCI.form
7979 * @augments LuCI.form.Value
7983 * The `HiddenValue` element wraps an {@link LuCI.ui.Hiddenfield} widget.
7985 * Hidden value widgets used to be necessary in legacy code which actually
7986 * submitted the underlying HTML form the server. With client side handling of
7987 * forms, there are more efficient ways to store hidden state data.
7989 * Since this widget has no visible content, the title and description values
7990 * of this form element should be set to `null` as well to avoid a broken or
7991 * distorted form layout when rendering the option element.
7993 * @param {LuCI.form.Map|LuCI.form.JSONMap} form
7994 * The configuration form this section is added to. It is automatically passed
7995 * by [option()]{@link LuCI.form.AbstractSection#option} or
7996 * [taboption()]{@link LuCI.form.AbstractSection#taboption} when adding the
7997 * option to the section.
7999 * @param {LuCI.form.AbstractSection} section
8000 * The configuration section this option is added to. It is automatically passed
8001 * by [option()]{@link LuCI.form.AbstractSection#option} or
8002 * [taboption()]{@link LuCI.form.AbstractSection#taboption} when adding the
8003 * option to the section.
8005 * @param {string} option
8006 * The name of the UCI option to map.
8008 * @param {string} [title]
8009 * The title caption of the option element.
8011 * @param {string} [description]
8012 * The description text of the option element.
8014 var CBIHiddenValue = CBIValue.extend(/** @lends LuCI.form.HiddenValue.prototype */ {
8015 __name__: 'CBI.HiddenValue',
8018 renderWidget: function(section_id, option_index, cfgvalue) {
8019 var widget = new ui.Hiddenfield((cfgvalue != null) ? cfgvalue : this.default, {
8020 id: this.cbid(section_id)
8023 return widget.render();
8029 * @memberof LuCI.form
8030 * @augments LuCI.form.Value
8034 * The `FileUpload` element wraps an {@link LuCI.ui.FileUpload} widget and
8035 * offers the ability to browse, upload and select remote files.
8037 * @param {LuCI.form.Map|LuCI.form.JSONMap} form
8038 * The configuration form this section is added to. It is automatically passed
8039 * by [option()]{@link LuCI.form.AbstractSection#option} or
8040 * [taboption()]{@link LuCI.form.AbstractSection#taboption} when adding the
8041 * option to the section.
8043 * @param {LuCI.form.AbstractSection} section
8044 * The configuration section this option is added to. It is automatically passed
8045 * by [option()]{@link LuCI.form.AbstractSection#option} or
8046 * [taboption()]{@link LuCI.form.AbstractSection#taboption} when adding the
8047 * option to the section.
8049 * @param {string} option
8050 * The name of the UCI option to map.
8052 * @param {string} [title]
8053 * The title caption of the option element.
8055 * @param {string} [description]
8056 * The description text of the option element.
8058 var CBIFileUpload = CBIValue.extend(/** @lends LuCI.form.FileUpload.prototype */ {
8059 __name__: 'CBI.FileSelect',
8061 __init__: function(/* ... */) {
8062 this.super('__init__', arguments);
8064 this.show_hidden = false;
8065 this.enable_upload = true;
8066 this.enable_remove = true;
8067 this.root_directory = '/etc/luci-uploads';
8071 * Toggle display of hidden files.
8073 * Display hidden files when rendering the remote directory listing.
8074 * Note that this is merely a cosmetic feature, hidden files are always
8075 * included in received remote file listings.
8077 * The default is `false`, means hidden files are not displayed.
8079 * @name LuCI.form.FileUpload.prototype#show_hidden
8085 * Toggle file upload functionality.
8087 * When set to `true`, the underlying widget provides a button which lets
8088 * the user select and upload local files to the remote system.
8089 * Note that this is merely a cosmetic feature, remote upload access is
8090 * controlled by the session ACL rules.
8092 * The default is `true`, means file upload functionality is displayed.
8094 * @name LuCI.form.FileUpload.prototype#enable_upload
8100 * Toggle remote file delete functionality.
8102 * When set to `true`, the underlying widget provides a buttons which let
8103 * the user delete files from remote directories. Note that this is merely
8104 * a cosmetic feature, remote delete permissions are controlled by the
8105 * session ACL rules.
8107 * The default is `true`, means file removal buttons are displayed.
8109 * @name LuCI.form.FileUpload.prototype#enable_remove
8115 * Specify the root directory for file browsing.
8117 * This property defines the topmost directory the file browser widget may
8118 * navigate to, the UI will not allow browsing directories outside this
8119 * prefix. Note that this is merely a cosmetic feature, remote file access
8120 * and directory listing permissions are controlled by the session ACL
8123 * The default is `/etc/luci-uploads`.
8125 * @name LuCI.form.FileUpload.prototype#root_directory
8127 * @default /etc/luci-uploads
8131 renderWidget: function(section_id, option_index, cfgvalue) {
8132 var browserEl = new ui.FileUpload((cfgvalue != null) ? cfgvalue : this.default, {
8133 id: this.cbid(section_id),
8134 name: this.cbid(section_id),
8135 show_hidden: this.show_hidden,
8136 enable_upload: this.enable_upload,
8137 enable_remove: this.enable_remove,
8138 root_directory: this.root_directory,
8139 disabled: (this.readonly != null) ? this.readonly : this.map.readonly
8142 return browserEl.render();
8147 * @class SectionValue
8148 * @memberof LuCI.form
8149 * @augments LuCI.form.Value
8153 * The `SectionValue` widget embeds a form section element within an option
8154 * element container, allowing to nest form sections into other sections.
8156 * @param {LuCI.form.Map|LuCI.form.JSONMap} form
8157 * The configuration form this section is added to. It is automatically passed
8158 * by [option()]{@link LuCI.form.AbstractSection#option} or
8159 * [taboption()]{@link LuCI.form.AbstractSection#taboption} when adding the
8160 * option to the section.
8162 * @param {LuCI.form.AbstractSection} section
8163 * The configuration section this option is added to. It is automatically passed
8164 * by [option()]{@link LuCI.form.AbstractSection#option} or
8165 * [taboption()]{@link LuCI.form.AbstractSection#taboption} when adding the
8166 * option to the section.
8168 * @param {string} option
8169 * The internal name of the option element holding the section. Since a section
8170 * container element does not read or write any configuration itself, the name
8171 * is only used internally and does not need to relate to any underlying UCI
8174 * @param {LuCI.form.AbstractSection} subsection_class
8175 * The class to use for instantiating the nested section element. Note that
8176 * the class value itself is expected here, not a class instance obtained by
8177 * calling `new`. The given class argument must be a subclass of the
8178 * `AbstractSection` class.
8180 * @param {...*} [class_args]
8181 * All further arguments are passed as-is to the subclass constructor. Refer
8182 * to the corresponding class constructor documentations for details.
8184 var CBISectionValue = CBIValue.extend(/** @lends LuCI.form.SectionValue.prototype */ {
8185 __name__: 'CBI.ContainerValue',
8186 __init__: function(map, section, option, cbiClass /*, ... */) {
8187 this.super('__init__', [map, section, option]);
8189 if (!CBIAbstractSection.isSubclass(cbiClass))
8190 throw 'Sub section must be a descendent of CBIAbstractSection';
8192 this.subsection = cbiClass.instantiate(this.varargs(arguments,
4, this.map));
8193 this.subsection.parentoption = this;
8197 * Access the embedded section instance.
8199 * This property holds a reference to the instantiated nested section.
8201 * @name LuCI.form.SectionValue.prototype#subsection
8202 * @type LuCI.form.AbstractSection
8207 load: function(section_id) {
8208 return this.subsection.load(section_id);
8212 parse: function(section_id) {
8213 return this.subsection.parse(section_id);
8217 renderWidget: function(section_id, option_index, cfgvalue) {
8218 return this.subsection.render(section_id);
8222 checkDepends: function(section_id) {
8223 this.subsection.checkDepends(section_id);
8224 return CBIValue.prototype.checkDepends.apply(this, [ section_id ]);
8228 * Since the section container is not rendering an own widget,
8229 * its `value()` implementation is a no-op.
8233 value: function() {},
8236 * Since the section container is not tied to any UCI configuration,
8237 * its `write()` implementation is a no-op.
8241 write: function() {},
8244 * Since the section container is not tied to any UCI configuration,
8245 * its `remove()` implementation is a no-op.
8249 remove: function() {},
8252 * Since the section container is not tied to any UCI configuration,
8253 * its `cfgvalue()` implementation will always return `null`.
8258 cfgvalue: function() { return null },
8261 * Since the section container is not tied to any UCI configuration,
8262 * its `formvalue()` implementation will always return `null`.
8267 formvalue: function() { return null }
8276 * The LuCI form class provides high level abstractions for creating
8277 * UCI- or JSON backed configurations forms.
8279 * To import the class in views, use `'require form'`, to import it in
8280 * external JavaScript, use `L.require(
"form").then(...)`.
8282 * A typical form is created by first constructing a
8283 * {@link LuCI.form.Map} or {@link LuCI.form.JSONMap} instance using `new` and
8284 * by subsequently adding sections and options to it. Finally
8285 * [render()]{@link LuCI.form.Map#render} is invoked on the instance to
8286 * assemble the HTML markup and insert it into the DOM.
8296 * m = new form.Map('example', 'Example form',
8297 * 'This is an example form mapping the contents of /etc/config/example');
8299 * s = m.section(form.NamedSection, 'first_section', 'example', 'The first section',
8300 * 'This sections maps
"config example first_section" of /etc/config/example');
8302 * o = s.option(form.Flag, 'some_bool', 'A checkbox option');
8304 * o = s.option(form.ListValue, 'some_choice', 'A select element');
8305 * o.value('choice1', 'The first choice');
8306 * o.value('choice2', 'The second choice');
8308 * m.render().then(function(node) {
8309 * document.body.appendChild(node);
8313 return baseclass.extend(/** @lends LuCI.form.prototype */ {
8315 JSONMap: CBIJSONMap,
8316 AbstractSection: CBIAbstractSection,
8317 AbstractValue: CBIAbstractValue,
8319 TypedSection: CBITypedSection,
8320 TableSection: CBITableSection,
8321 GridSection: CBIGridSection,
8322 NamedSection: CBINamedSection,
8325 DynamicList: CBIDynamicList,
8326 ListValue: CBIListValue,
8328 MultiValue: CBIMultiValue,
8329 TextValue: CBITextValue,
8330 DummyValue: CBIDummyValue,
8331 Button: CBIButtonValue,
8332 HiddenValue: CBIHiddenValue,
8333 FileUpload: CBIFileUpload,
8334 SectionValue: CBISectionValue
8348 Documentation generated by
<a href=
"https://github.com/jsdoc3/jsdoc">JSDoc
3.6.11</a> on Fri Jan
26 2024 01:
00:
30 GMT+
0000 (Coordinated Universal Time)
8352 <script>prettyPrint();
</script>
8353 <script src=
"scripts/jaguar.js"></script>