luci.js.html 281 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Source: luci.js</title>
  6. <script src="scripts/prettify/prettify.js"></script>
  7. <script src="scripts/prettify/lang-css.js"></script>
  8. <script src="scripts/jquery.min.js"></script>
  9. <!--[if lt IE 9]>
  10. <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
  11. <![endif]-->
  12. <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
  13. <link type="text/css" rel="stylesheet" href="styles/bootstrap.min.css">
  14. <link type="text/css" rel="stylesheet" href="styles/jaguar.css">
  15. <script>
  16. var config = {"monospaceLinks":true,"cleverLinks":true,"default":{"outputSourceFiles":true}};
  17. </script>
  18. </head>
  19. <body>
  20. <div id="wrap" class="clearfix">
  21. <div class="navigation">
  22. <h3 class="applicationName"><a href="index.html"></a></h3>
  23. <div class="search">
  24. <input id="search" type="text" class="form-control input-sm" placeholder="Search Documentations">
  25. </div>
  26. <ul class="list">
  27. <li class="item" data-name="LuCI">
  28. <span class="title">
  29. <a href="LuCI.html">LuCI</a>
  30. </span>
  31. <ul class="members itemMembers">
  32. <span class="subtitle">Members</span>
  33. <li data-name="LuCI#Class"><a href="LuCI.html#Class">Class</a></li>
  34. <li data-name="LuCI#dom"><a href="LuCI.html#dom">dom</a></li>
  35. <li data-name="LuCI#env"><a href="LuCI.html#env">env</a></li>
  36. <li data-name="LuCI#naturalCompare"><a href="LuCI.html#naturalCompare">naturalCompare</a></li>
  37. <li data-name="LuCI#Poll"><a href="LuCI.html#Poll">Poll</a></li>
  38. <li data-name="LuCI#Request"><a href="LuCI.html#Request">Request</a></li>
  39. <li data-name="LuCI#view"><a href="LuCI.html#view">view</a></li>
  40. </ul>
  41. <ul class="typedefs itemMembers">
  42. <span class="subtitle">Typedefs</span>
  43. <li data-name="LuCI.requestCallbackFn"><a href="LuCI.html#.requestCallbackFn">requestCallbackFn</a></li>
  44. </ul>
  45. <ul class="typedefs itemMembers">
  46. </ul>
  47. <ul class="methods itemMembers">
  48. <span class="subtitle">Methods</span>
  49. <li data-name="LuCI#bind"><a href="LuCI.html#bind">bind</a></li>
  50. <li data-name="LuCI#error"><a href="LuCI.html#error">error</a></li>
  51. <li data-name="LuCI#fspath"><a href="LuCI.html#fspath">fspath</a></li>
  52. <li data-name="LuCI#get"><a href="LuCI.html#get">get</a></li>
  53. <li data-name="LuCI#halt"><a href="LuCI.html#halt">halt</a></li>
  54. <li data-name="LuCI#hasSystemFeature"><a href="LuCI.html#hasSystemFeature">hasSystemFeature</a></li>
  55. <li data-name="LuCI#hasViewPermission"><a href="LuCI.html#hasViewPermission">hasViewPermission</a></li>
  56. <li data-name="LuCI#isObject"><a href="LuCI.html#isObject">isObject</a></li>
  57. <li data-name="LuCI#location"><a href="LuCI.html#location">location</a></li>
  58. <li data-name="LuCI#media"><a href="LuCI.html#media">media</a></li>
  59. <li data-name="LuCI#path"><a href="LuCI.html#path">path</a></li>
  60. <li data-name="LuCI#poll"><a href="LuCI.html#poll">poll</a></li>
  61. <li data-name="LuCI#post"><a href="LuCI.html#post">post</a></li>
  62. <li data-name="LuCI#raise"><a href="LuCI.html#raise">raise</a></li>
  63. <li data-name="LuCI#require"><a href="LuCI.html#require">require</a></li>
  64. <li data-name="LuCI#resolveDefault"><a href="LuCI.html#resolveDefault">resolveDefault</a></li>
  65. <li data-name="LuCI#resource"><a href="LuCI.html#resource">resource</a></li>
  66. <li data-name="LuCI#run"><a href="LuCI.html#run">run</a></li>
  67. <li data-name="LuCI#sortedArray"><a href="LuCI.html#sortedArray">sortedArray</a></li>
  68. <li data-name="LuCI#sortedKeys"><a href="LuCI.html#sortedKeys">sortedKeys</a></li>
  69. <li data-name="LuCI#stop"><a href="LuCI.html#stop">stop</a></li>
  70. <li data-name="LuCI#toArray"><a href="LuCI.html#toArray">toArray</a></li>
  71. <li data-name="LuCI#url"><a href="LuCI.html#url">url</a></li>
  72. </ul>
  73. <ul class="events itemMembers">
  74. </ul>
  75. </li>
  76. <li class="item" data-name="LuCI.baseclass">
  77. <span class="title">
  78. <a href="LuCI.baseclass.html">LuCI.baseclass</a>
  79. </span>
  80. <ul class="members itemMembers">
  81. </ul>
  82. <ul class="typedefs itemMembers">
  83. </ul>
  84. <ul class="typedefs itemMembers">
  85. </ul>
  86. <ul class="methods itemMembers">
  87. <span class="subtitle">Methods</span>
  88. <li data-name="LuCI.baseclass.extend"><a href="LuCI.baseclass.html#.extend">extend</a></li>
  89. <li data-name="LuCI.baseclass.instantiate"><a href="LuCI.baseclass.html#.instantiate">instantiate</a></li>
  90. <li data-name="LuCI.baseclass.isSubclass"><a href="LuCI.baseclass.html#.isSubclass">isSubclass</a></li>
  91. <li data-name="LuCI.baseclass.singleton"><a href="LuCI.baseclass.html#.singleton">singleton</a></li>
  92. <li data-name="LuCI.baseclass#super"><a href="LuCI.baseclass.html#super">super</a></li>
  93. <li data-name="LuCI.baseclass#varargs"><a href="LuCI.baseclass.html#varargs">varargs</a></li>
  94. </ul>
  95. <ul class="events itemMembers">
  96. </ul>
  97. </li>
  98. <li class="item" data-name="LuCI.dom">
  99. <span class="title">
  100. <a href="LuCI.dom.html">LuCI.dom</a>
  101. </span>
  102. <ul class="members itemMembers">
  103. </ul>
  104. <ul class="typedefs itemMembers">
  105. <span class="subtitle">Typedefs</span>
  106. <li data-name="LuCI.dom~ignoreCallbackFn"><a href="LuCI.dom.html#~ignoreCallbackFn">ignoreCallbackFn</a></li>
  107. </ul>
  108. <ul class="typedefs itemMembers">
  109. </ul>
  110. <ul class="methods itemMembers">
  111. <span class="subtitle">Methods</span>
  112. <li data-name="LuCI.dom#append"><a href="LuCI.dom.html#append">append</a></li>
  113. <li data-name="LuCI.dom#attr"><a href="LuCI.dom.html#attr">attr</a></li>
  114. <li data-name="LuCI.dom#bindClassInstance"><a href="LuCI.dom.html#bindClassInstance">bindClassInstance</a></li>
  115. <li data-name="LuCI.dom#callClassMethod"><a href="LuCI.dom.html#callClassMethod">callClassMethod</a></li>
  116. <li data-name="LuCI.dom#content"><a href="LuCI.dom.html#content">content</a></li>
  117. <li data-name="LuCI.dom#create"><a href="LuCI.dom.html#create">create</a></li>
  118. <li data-name="LuCI.dom#data"><a href="LuCI.dom.html#data">data</a></li>
  119. <li data-name="LuCI.dom#elem"><a href="LuCI.dom.html#elem">elem</a></li>
  120. <li data-name="LuCI.dom#findClassInstance"><a href="LuCI.dom.html#findClassInstance">findClassInstance</a></li>
  121. <li data-name="LuCI.dom#isEmpty"><a href="LuCI.dom.html#isEmpty">isEmpty</a></li>
  122. <li data-name="LuCI.dom#matches"><a href="LuCI.dom.html#matches">matches</a></li>
  123. <li data-name="LuCI.dom#parent"><a href="LuCI.dom.html#parent">parent</a></li>
  124. <li data-name="LuCI.dom#parse"><a href="LuCI.dom.html#parse">parse</a></li>
  125. </ul>
  126. <ul class="events itemMembers">
  127. </ul>
  128. </li>
  129. <li class="item" data-name="LuCI.form">
  130. <span class="title">
  131. <a href="LuCI.form.html">LuCI.form</a>
  132. </span>
  133. <ul class="members itemMembers">
  134. </ul>
  135. <ul class="typedefs itemMembers">
  136. </ul>
  137. <ul class="typedefs itemMembers">
  138. </ul>
  139. <ul class="methods itemMembers">
  140. </ul>
  141. <ul class="events itemMembers">
  142. </ul>
  143. </li>
  144. <li class="item" data-name="LuCI.form.AbstractElement">
  145. <span class="title">
  146. <a href="LuCI.form.AbstractElement.html">LuCI.form.AbstractElement</a>
  147. </span>
  148. <ul class="members itemMembers">
  149. </ul>
  150. <ul class="typedefs itemMembers">
  151. </ul>
  152. <ul class="typedefs itemMembers">
  153. </ul>
  154. <ul class="methods itemMembers">
  155. <span class="subtitle">Methods</span>
  156. <li data-name="LuCI.form.AbstractElement#append"><a href="LuCI.form.AbstractElement.html#append">append</a></li>
  157. <li data-name="LuCI.form.AbstractElement#parse"><a href="LuCI.form.AbstractElement.html#parse">parse</a></li>
  158. <li data-name="LuCI.form.AbstractElement#render"><a href="LuCI.form.AbstractElement.html#render">render</a></li>
  159. <li data-name="LuCI.form.AbstractElement#stripTags"><a href="LuCI.form.AbstractElement.html#stripTags">stripTags</a></li>
  160. <li data-name="LuCI.form.AbstractElement#titleFn"><a href="LuCI.form.AbstractElement.html#titleFn">titleFn</a></li>
  161. </ul>
  162. <ul class="events itemMembers">
  163. </ul>
  164. </li>
  165. <li class="item" data-name="LuCI.form.AbstractSection">
  166. <span class="title">
  167. <a href="LuCI.form.AbstractSection.html">LuCI.form.AbstractSection</a>
  168. </span>
  169. <ul class="members itemMembers">
  170. <span class="subtitle">Members</span>
  171. <li data-name="LuCI.form.AbstractSection##parentoption"><a href="LuCI.form.AbstractSection.html#parentoption">parentoption</a></li>
  172. </ul>
  173. <ul class="typedefs itemMembers">
  174. </ul>
  175. <ul class="typedefs itemMembers">
  176. </ul>
  177. <ul class="methods itemMembers">
  178. <span class="subtitle">Methods</span>
  179. <li data-name="LuCI.form.AbstractSection#append"><a href="LuCI.form.AbstractSection.html#append">append</a></li>
  180. <li data-name="LuCI.form.AbstractSection#cfgsections"><a href="LuCI.form.AbstractSection.html#cfgsections">cfgsections</a></li>
  181. <li data-name="LuCI.form.AbstractSection#cfgvalue"><a href="LuCI.form.AbstractSection.html#cfgvalue">cfgvalue</a></li>
  182. <li data-name="LuCI.form.AbstractSection#filter"><a href="LuCI.form.AbstractSection.html#filter">filter</a></li>
  183. <li data-name="LuCI.form.AbstractSection#formvalue"><a href="LuCI.form.AbstractSection.html#formvalue">formvalue</a></li>
  184. <li data-name="LuCI.form.AbstractSection#getOption"><a href="LuCI.form.AbstractSection.html#getOption">getOption</a></li>
  185. <li data-name="LuCI.form.AbstractSection#getUIElement"><a href="LuCI.form.AbstractSection.html#getUIElement">getUIElement</a></li>
  186. <li data-name="LuCI.form.AbstractSection#load"><a href="LuCI.form.AbstractSection.html#load">load</a></li>
  187. <li data-name="LuCI.form.AbstractSection#option"><a href="LuCI.form.AbstractSection.html#option">option</a></li>
  188. <li data-name="LuCI.form.AbstractSection#parse"><a href="LuCI.form.AbstractSection.html#parse">parse</a></li>
  189. <li data-name="LuCI.form.AbstractSection#render"><a href="LuCI.form.AbstractSection.html#render">render</a></li>
  190. <li data-name="LuCI.form.AbstractSection#stripTags"><a href="LuCI.form.AbstractSection.html#stripTags">stripTags</a></li>
  191. <li data-name="LuCI.form.AbstractSection#tab"><a href="LuCI.form.AbstractSection.html#tab">tab</a></li>
  192. <li data-name="LuCI.form.AbstractSection#taboption"><a href="LuCI.form.AbstractSection.html#taboption">taboption</a></li>
  193. <li data-name="LuCI.form.AbstractSection#titleFn"><a href="LuCI.form.AbstractSection.html#titleFn">titleFn</a></li>
  194. </ul>
  195. <ul class="events itemMembers">
  196. </ul>
  197. </li>
  198. <li class="item" data-name="LuCI.form.AbstractValue">
  199. <span class="title">
  200. <a href="LuCI.form.AbstractValue.html">LuCI.form.AbstractValue</a>
  201. </span>
  202. <ul class="members itemMembers">
  203. <span class="subtitle">Members</span>
  204. <li data-name="LuCI.form.AbstractValue##datatype"><a href="LuCI.form.AbstractValue.html#datatype">datatype</a></li>
  205. <li data-name="LuCI.form.AbstractValue##default"><a href="LuCI.form.AbstractValue.html#default">default</a></li>
  206. <li data-name="LuCI.form.AbstractValue##editable"><a href="LuCI.form.AbstractValue.html#editable">editable</a></li>
  207. <li data-name="LuCI.form.AbstractValue##modalonly"><a href="LuCI.form.AbstractValue.html#modalonly">modalonly</a></li>
  208. <li data-name="LuCI.form.AbstractValue##onchange"><a href="LuCI.form.AbstractValue.html#onchange">onchange</a></li>
  209. <li data-name="LuCI.form.AbstractValue##optional"><a href="LuCI.form.AbstractValue.html#optional">optional</a></li>
  210. <li data-name="LuCI.form.AbstractValue##readonly"><a href="LuCI.form.AbstractValue.html#readonly">readonly</a></li>
  211. <li data-name="LuCI.form.AbstractValue##retain"><a href="LuCI.form.AbstractValue.html#retain">retain</a></li>
  212. <li data-name="LuCI.form.AbstractValue##rmempty"><a href="LuCI.form.AbstractValue.html#rmempty">rmempty</a></li>
  213. <li data-name="LuCI.form.AbstractValue##uciconfig"><a href="LuCI.form.AbstractValue.html#uciconfig">uciconfig</a></li>
  214. <li data-name="LuCI.form.AbstractValue##ucioption"><a href="LuCI.form.AbstractValue.html#ucioption">ucioption</a></li>
  215. <li data-name="LuCI.form.AbstractValue##ucisection"><a href="LuCI.form.AbstractValue.html#ucisection">ucisection</a></li>
  216. <li data-name="LuCI.form.AbstractValue##validate"><a href="LuCI.form.AbstractValue.html#validate">validate</a></li>
  217. <li data-name="LuCI.form.AbstractValue##width"><a href="LuCI.form.AbstractValue.html#width">width</a></li>
  218. </ul>
  219. <ul class="typedefs itemMembers">
  220. </ul>
  221. <ul class="typedefs itemMembers">
  222. </ul>
  223. <ul class="methods itemMembers">
  224. <span class="subtitle">Methods</span>
  225. <li data-name="LuCI.form.AbstractValue#append"><a href="LuCI.form.AbstractValue.html#append">append</a></li>
  226. <li data-name="LuCI.form.AbstractValue#cbid"><a href="LuCI.form.AbstractValue.html#cbid">cbid</a></li>
  227. <li data-name="LuCI.form.AbstractValue#cfgvalue"><a href="LuCI.form.AbstractValue.html#cfgvalue">cfgvalue</a></li>
  228. <li data-name="LuCI.form.AbstractValue#depends"><a href="LuCI.form.AbstractValue.html#depends">depends</a></li>
  229. <li data-name="LuCI.form.AbstractValue#formvalue"><a href="LuCI.form.AbstractValue.html#formvalue">formvalue</a></li>
  230. <li data-name="LuCI.form.AbstractValue#getUIElement"><a href="LuCI.form.AbstractValue.html#getUIElement">getUIElement</a></li>
  231. <li data-name="LuCI.form.AbstractValue#getValidationError"><a href="LuCI.form.AbstractValue.html#getValidationError">getValidationError</a></li>
  232. <li data-name="LuCI.form.AbstractValue#isActive"><a href="LuCI.form.AbstractValue.html#isActive">isActive</a></li>
  233. <li data-name="LuCI.form.AbstractValue#isValid"><a href="LuCI.form.AbstractValue.html#isValid">isValid</a></li>
  234. <li data-name="LuCI.form.AbstractValue#load"><a href="LuCI.form.AbstractValue.html#load">load</a></li>
  235. <li data-name="LuCI.form.AbstractValue#parse"><a href="LuCI.form.AbstractValue.html#parse">parse</a></li>
  236. <li data-name="LuCI.form.AbstractValue#remove"><a href="LuCI.form.AbstractValue.html#remove">remove</a></li>
  237. <li data-name="LuCI.form.AbstractValue#render"><a href="LuCI.form.AbstractValue.html#render">render</a></li>
  238. <li data-name="LuCI.form.AbstractValue#stripTags"><a href="LuCI.form.AbstractValue.html#stripTags">stripTags</a></li>
  239. <li data-name="LuCI.form.AbstractValue#textvalue"><a href="LuCI.form.AbstractValue.html#textvalue">textvalue</a></li>
  240. <li data-name="LuCI.form.AbstractValue#titleFn"><a href="LuCI.form.AbstractValue.html#titleFn">titleFn</a></li>
  241. <li data-name="LuCI.form.AbstractValue#validate"><a href="LuCI.form.AbstractValue.html#validate">validate</a></li>
  242. <li data-name="LuCI.form.AbstractValue#write"><a href="LuCI.form.AbstractValue.html#write">write</a></li>
  243. </ul>
  244. <ul class="events itemMembers">
  245. </ul>
  246. </li>
  247. <li class="item" data-name="LuCI.form.ButtonValue">
  248. <span class="title">
  249. <a href="LuCI.form.ButtonValue.html">LuCI.form.ButtonValue</a>
  250. </span>
  251. <ul class="members itemMembers">
  252. <span class="subtitle">Members</span>
  253. <li data-name="LuCI.form.ButtonValue##inputstyle"><a href="LuCI.form.ButtonValue.html#inputstyle">inputstyle</a></li>
  254. <li data-name="LuCI.form.ButtonValue##inputtitle"><a href="LuCI.form.ButtonValue.html#inputtitle">inputtitle</a></li>
  255. <li data-name="LuCI.form.ButtonValue##onclick"><a href="LuCI.form.ButtonValue.html#onclick">onclick</a></li>
  256. <li data-name="LuCI.form.ButtonValue#datatype"><a href="LuCI.form.ButtonValue.html#datatype">datatype</a></li>
  257. <li data-name="LuCI.form.ButtonValue#default"><a href="LuCI.form.ButtonValue.html#default">default</a></li>
  258. <li data-name="LuCI.form.ButtonValue#editable"><a href="LuCI.form.ButtonValue.html#editable">editable</a></li>
  259. <li data-name="LuCI.form.ButtonValue#modalonly"><a href="LuCI.form.ButtonValue.html#modalonly">modalonly</a></li>
  260. <li data-name="LuCI.form.ButtonValue#onchange"><a href="LuCI.form.ButtonValue.html#onchange">onchange</a></li>
  261. <li data-name="LuCI.form.ButtonValue#optional"><a href="LuCI.form.ButtonValue.html#optional">optional</a></li>
  262. <li data-name="LuCI.form.ButtonValue#password"><a href="LuCI.form.ButtonValue.html#password">password</a></li>
  263. <li data-name="LuCI.form.ButtonValue#placeholder"><a href="LuCI.form.ButtonValue.html#placeholder">placeholder</a></li>
  264. <li data-name="LuCI.form.ButtonValue#readonly"><a href="LuCI.form.ButtonValue.html#readonly">readonly</a></li>
  265. <li data-name="LuCI.form.ButtonValue#retain"><a href="LuCI.form.ButtonValue.html#retain">retain</a></li>
  266. <li data-name="LuCI.form.ButtonValue#rmempty"><a href="LuCI.form.ButtonValue.html#rmempty">rmempty</a></li>
  267. <li data-name="LuCI.form.ButtonValue#uciconfig"><a href="LuCI.form.ButtonValue.html#uciconfig">uciconfig</a></li>
  268. <li data-name="LuCI.form.ButtonValue#ucioption"><a href="LuCI.form.ButtonValue.html#ucioption">ucioption</a></li>
  269. <li data-name="LuCI.form.ButtonValue#ucisection"><a href="LuCI.form.ButtonValue.html#ucisection">ucisection</a></li>
  270. <li data-name="LuCI.form.ButtonValue#validate"><a href="LuCI.form.ButtonValue.html#validate">validate</a></li>
  271. <li data-name="LuCI.form.ButtonValue#width"><a href="LuCI.form.ButtonValue.html#width">width</a></li>
  272. </ul>
  273. <ul class="typedefs itemMembers">
  274. </ul>
  275. <ul class="typedefs itemMembers">
  276. </ul>
  277. <ul class="methods itemMembers">
  278. <span class="subtitle">Methods</span>
  279. <li data-name="LuCI.form.ButtonValue#append"><a href="LuCI.form.ButtonValue.html#append">append</a></li>
  280. <li data-name="LuCI.form.ButtonValue#cbid"><a href="LuCI.form.ButtonValue.html#cbid">cbid</a></li>
  281. <li data-name="LuCI.form.ButtonValue#cfgvalue"><a href="LuCI.form.ButtonValue.html#cfgvalue">cfgvalue</a></li>
  282. <li data-name="LuCI.form.ButtonValue#depends"><a href="LuCI.form.ButtonValue.html#depends">depends</a></li>
  283. <li data-name="LuCI.form.ButtonValue#formvalue"><a href="LuCI.form.ButtonValue.html#formvalue">formvalue</a></li>
  284. <li data-name="LuCI.form.ButtonValue#getUIElement"><a href="LuCI.form.ButtonValue.html#getUIElement">getUIElement</a></li>
  285. <li data-name="LuCI.form.ButtonValue#getValidationError"><a href="LuCI.form.ButtonValue.html#getValidationError">getValidationError</a></li>
  286. <li data-name="LuCI.form.ButtonValue#isActive"><a href="LuCI.form.ButtonValue.html#isActive">isActive</a></li>
  287. <li data-name="LuCI.form.ButtonValue#isValid"><a href="LuCI.form.ButtonValue.html#isValid">isValid</a></li>
  288. <li data-name="LuCI.form.ButtonValue#load"><a href="LuCI.form.ButtonValue.html#load">load</a></li>
  289. <li data-name="LuCI.form.ButtonValue#parse"><a href="LuCI.form.ButtonValue.html#parse">parse</a></li>
  290. <li data-name="LuCI.form.ButtonValue#remove"><a href="LuCI.form.ButtonValue.html#remove">remove</a></li>
  291. <li data-name="LuCI.form.ButtonValue#stripTags"><a href="LuCI.form.ButtonValue.html#stripTags">stripTags</a></li>
  292. <li data-name="LuCI.form.ButtonValue#textvalue"><a href="LuCI.form.ButtonValue.html#textvalue">textvalue</a></li>
  293. <li data-name="LuCI.form.ButtonValue#titleFn"><a href="LuCI.form.ButtonValue.html#titleFn">titleFn</a></li>
  294. <li data-name="LuCI.form.ButtonValue#value"><a href="LuCI.form.ButtonValue.html#value">value</a></li>
  295. <li data-name="LuCI.form.ButtonValue#write"><a href="LuCI.form.ButtonValue.html#write">write</a></li>
  296. </ul>
  297. <ul class="events itemMembers">
  298. </ul>
  299. </li>
  300. <li class="item" data-name="LuCI.form.DummyValue">
  301. <span class="title">
  302. <a href="LuCI.form.DummyValue.html">LuCI.form.DummyValue</a>
  303. </span>
  304. <ul class="members itemMembers">
  305. <span class="subtitle">Members</span>
  306. <li data-name="LuCI.form.DummyValue##hidden"><a href="LuCI.form.DummyValue.html#hidden">hidden</a></li>
  307. <li data-name="LuCI.form.DummyValue##href"><a href="LuCI.form.DummyValue.html#href">href</a></li>
  308. <li data-name="LuCI.form.DummyValue##rawhtml"><a href="LuCI.form.DummyValue.html#rawhtml">rawhtml</a></li>
  309. <li data-name="LuCI.form.DummyValue#datatype"><a href="LuCI.form.DummyValue.html#datatype">datatype</a></li>
  310. <li data-name="LuCI.form.DummyValue#default"><a href="LuCI.form.DummyValue.html#default">default</a></li>
  311. <li data-name="LuCI.form.DummyValue#editable"><a href="LuCI.form.DummyValue.html#editable">editable</a></li>
  312. <li data-name="LuCI.form.DummyValue#modalonly"><a href="LuCI.form.DummyValue.html#modalonly">modalonly</a></li>
  313. <li data-name="LuCI.form.DummyValue#onchange"><a href="LuCI.form.DummyValue.html#onchange">onchange</a></li>
  314. <li data-name="LuCI.form.DummyValue#optional"><a href="LuCI.form.DummyValue.html#optional">optional</a></li>
  315. <li data-name="LuCI.form.DummyValue#password"><a href="LuCI.form.DummyValue.html#password">password</a></li>
  316. <li data-name="LuCI.form.DummyValue#placeholder"><a href="LuCI.form.DummyValue.html#placeholder">placeholder</a></li>
  317. <li data-name="LuCI.form.DummyValue#readonly"><a href="LuCI.form.DummyValue.html#readonly">readonly</a></li>
  318. <li data-name="LuCI.form.DummyValue#retain"><a href="LuCI.form.DummyValue.html#retain">retain</a></li>
  319. <li data-name="LuCI.form.DummyValue#rmempty"><a href="LuCI.form.DummyValue.html#rmempty">rmempty</a></li>
  320. <li data-name="LuCI.form.DummyValue#uciconfig"><a href="LuCI.form.DummyValue.html#uciconfig">uciconfig</a></li>
  321. <li data-name="LuCI.form.DummyValue#ucioption"><a href="LuCI.form.DummyValue.html#ucioption">ucioption</a></li>
  322. <li data-name="LuCI.form.DummyValue#ucisection"><a href="LuCI.form.DummyValue.html#ucisection">ucisection</a></li>
  323. <li data-name="LuCI.form.DummyValue#validate"><a href="LuCI.form.DummyValue.html#validate">validate</a></li>
  324. <li data-name="LuCI.form.DummyValue#width"><a href="LuCI.form.DummyValue.html#width">width</a></li>
  325. </ul>
  326. <ul class="typedefs itemMembers">
  327. </ul>
  328. <ul class="typedefs itemMembers">
  329. </ul>
  330. <ul class="methods itemMembers">
  331. <span class="subtitle">Methods</span>
  332. <li data-name="LuCI.form.DummyValue#append"><a href="LuCI.form.DummyValue.html#append">append</a></li>
  333. <li data-name="LuCI.form.DummyValue#cbid"><a href="LuCI.form.DummyValue.html#cbid">cbid</a></li>
  334. <li data-name="LuCI.form.DummyValue#cfgvalue"><a href="LuCI.form.DummyValue.html#cfgvalue">cfgvalue</a></li>
  335. <li data-name="LuCI.form.DummyValue#depends"><a href="LuCI.form.DummyValue.html#depends">depends</a></li>
  336. <li data-name="LuCI.form.DummyValue#formvalue"><a href="LuCI.form.DummyValue.html#formvalue">formvalue</a></li>
  337. <li data-name="LuCI.form.DummyValue#getUIElement"><a href="LuCI.form.DummyValue.html#getUIElement">getUIElement</a></li>
  338. <li data-name="LuCI.form.DummyValue#getValidationError"><a href="LuCI.form.DummyValue.html#getValidationError">getValidationError</a></li>
  339. <li data-name="LuCI.form.DummyValue#isActive"><a href="LuCI.form.DummyValue.html#isActive">isActive</a></li>
  340. <li data-name="LuCI.form.DummyValue#isValid"><a href="LuCI.form.DummyValue.html#isValid">isValid</a></li>
  341. <li data-name="LuCI.form.DummyValue#load"><a href="LuCI.form.DummyValue.html#load">load</a></li>
  342. <li data-name="LuCI.form.DummyValue#parse"><a href="LuCI.form.DummyValue.html#parse">parse</a></li>
  343. <li data-name="LuCI.form.DummyValue#remove"><a href="LuCI.form.DummyValue.html#remove">remove</a></li>
  344. <li data-name="LuCI.form.DummyValue#stripTags"><a href="LuCI.form.DummyValue.html#stripTags">stripTags</a></li>
  345. <li data-name="LuCI.form.DummyValue#textvalue"><a href="LuCI.form.DummyValue.html#textvalue">textvalue</a></li>
  346. <li data-name="LuCI.form.DummyValue#titleFn"><a href="LuCI.form.DummyValue.html#titleFn">titleFn</a></li>
  347. <li data-name="LuCI.form.DummyValue#value"><a href="LuCI.form.DummyValue.html#value">value</a></li>
  348. <li data-name="LuCI.form.DummyValue#write"><a href="LuCI.form.DummyValue.html#write">write</a></li>
  349. </ul>
  350. <ul class="events itemMembers">
  351. </ul>
  352. </li>
  353. <li class="item" data-name="LuCI.form.DynamicList">
  354. <span class="title">
  355. <a href="LuCI.form.DynamicList.html">LuCI.form.DynamicList</a>
  356. </span>
  357. <ul class="members itemMembers">
  358. <span class="subtitle">Members</span>
  359. <li data-name="LuCI.form.DynamicList#datatype"><a href="LuCI.form.DynamicList.html#datatype">datatype</a></li>
  360. <li data-name="LuCI.form.DynamicList#default"><a href="LuCI.form.DynamicList.html#default">default</a></li>
  361. <li data-name="LuCI.form.DynamicList#editable"><a href="LuCI.form.DynamicList.html#editable">editable</a></li>
  362. <li data-name="LuCI.form.DynamicList#modalonly"><a href="LuCI.form.DynamicList.html#modalonly">modalonly</a></li>
  363. <li data-name="LuCI.form.DynamicList#onchange"><a href="LuCI.form.DynamicList.html#onchange">onchange</a></li>
  364. <li data-name="LuCI.form.DynamicList#optional"><a href="LuCI.form.DynamicList.html#optional">optional</a></li>
  365. <li data-name="LuCI.form.DynamicList#password"><a href="LuCI.form.DynamicList.html#password">password</a></li>
  366. <li data-name="LuCI.form.DynamicList#placeholder"><a href="LuCI.form.DynamicList.html#placeholder">placeholder</a></li>
  367. <li data-name="LuCI.form.DynamicList#readonly"><a href="LuCI.form.DynamicList.html#readonly">readonly</a></li>
  368. <li data-name="LuCI.form.DynamicList#retain"><a href="LuCI.form.DynamicList.html#retain">retain</a></li>
  369. <li data-name="LuCI.form.DynamicList#rmempty"><a href="LuCI.form.DynamicList.html#rmempty">rmempty</a></li>
  370. <li data-name="LuCI.form.DynamicList#uciconfig"><a href="LuCI.form.DynamicList.html#uciconfig">uciconfig</a></li>
  371. <li data-name="LuCI.form.DynamicList#ucioption"><a href="LuCI.form.DynamicList.html#ucioption">ucioption</a></li>
  372. <li data-name="LuCI.form.DynamicList#ucisection"><a href="LuCI.form.DynamicList.html#ucisection">ucisection</a></li>
  373. <li data-name="LuCI.form.DynamicList#validate"><a href="LuCI.form.DynamicList.html#validate">validate</a></li>
  374. <li data-name="LuCI.form.DynamicList#width"><a href="LuCI.form.DynamicList.html#width">width</a></li>
  375. </ul>
  376. <ul class="typedefs itemMembers">
  377. </ul>
  378. <ul class="typedefs itemMembers">
  379. </ul>
  380. <ul class="methods itemMembers">
  381. <span class="subtitle">Methods</span>
  382. <li data-name="LuCI.form.DynamicList#append"><a href="LuCI.form.DynamicList.html#append">append</a></li>
  383. <li data-name="LuCI.form.DynamicList#cbid"><a href="LuCI.form.DynamicList.html#cbid">cbid</a></li>
  384. <li data-name="LuCI.form.DynamicList#cfgvalue"><a href="LuCI.form.DynamicList.html#cfgvalue">cfgvalue</a></li>
  385. <li data-name="LuCI.form.DynamicList#depends"><a href="LuCI.form.DynamicList.html#depends">depends</a></li>
  386. <li data-name="LuCI.form.DynamicList#formvalue"><a href="LuCI.form.DynamicList.html#formvalue">formvalue</a></li>
  387. <li data-name="LuCI.form.DynamicList#getUIElement"><a href="LuCI.form.DynamicList.html#getUIElement">getUIElement</a></li>
  388. <li data-name="LuCI.form.DynamicList#getValidationError"><a href="LuCI.form.DynamicList.html#getValidationError">getValidationError</a></li>
  389. <li data-name="LuCI.form.DynamicList#isActive"><a href="LuCI.form.DynamicList.html#isActive">isActive</a></li>
  390. <li data-name="LuCI.form.DynamicList#isValid"><a href="LuCI.form.DynamicList.html#isValid">isValid</a></li>
  391. <li data-name="LuCI.form.DynamicList#load"><a href="LuCI.form.DynamicList.html#load">load</a></li>
  392. <li data-name="LuCI.form.DynamicList#parse"><a href="LuCI.form.DynamicList.html#parse">parse</a></li>
  393. <li data-name="LuCI.form.DynamicList#remove"><a href="LuCI.form.DynamicList.html#remove">remove</a></li>
  394. <li data-name="LuCI.form.DynamicList#stripTags"><a href="LuCI.form.DynamicList.html#stripTags">stripTags</a></li>
  395. <li data-name="LuCI.form.DynamicList#textvalue"><a href="LuCI.form.DynamicList.html#textvalue">textvalue</a></li>
  396. <li data-name="LuCI.form.DynamicList#titleFn"><a href="LuCI.form.DynamicList.html#titleFn">titleFn</a></li>
  397. <li data-name="LuCI.form.DynamicList#value"><a href="LuCI.form.DynamicList.html#value">value</a></li>
  398. <li data-name="LuCI.form.DynamicList#write"><a href="LuCI.form.DynamicList.html#write">write</a></li>
  399. </ul>
  400. <ul class="events itemMembers">
  401. </ul>
  402. </li>
  403. <li class="item" data-name="LuCI.form.FileUpload">
  404. <span class="title">
  405. <a href="LuCI.form.FileUpload.html">LuCI.form.FileUpload</a>
  406. </span>
  407. <ul class="members itemMembers">
  408. <span class="subtitle">Members</span>
  409. <li data-name="LuCI.form.FileUpload##browser"><a href="LuCI.form.FileUpload.html#browser">browser</a></li>
  410. <li data-name="LuCI.form.FileUpload##enable_download"><a href="LuCI.form.FileUpload.html#enable_download">enable_download</a></li>
  411. <li data-name="LuCI.form.FileUpload##enable_remove"><a href="LuCI.form.FileUpload.html#enable_remove">enable_remove</a></li>
  412. <li data-name="LuCI.form.FileUpload##enable_upload"><a href="LuCI.form.FileUpload.html#enable_upload">enable_upload</a></li>
  413. <li data-name="LuCI.form.FileUpload##root_directory"><a href="LuCI.form.FileUpload.html#root_directory">root_directory</a></li>
  414. <li data-name="LuCI.form.FileUpload##show_hidden"><a href="LuCI.form.FileUpload.html#show_hidden">show_hidden</a></li>
  415. <li data-name="LuCI.form.FileUpload#datatype"><a href="LuCI.form.FileUpload.html#datatype">datatype</a></li>
  416. <li data-name="LuCI.form.FileUpload#default"><a href="LuCI.form.FileUpload.html#default">default</a></li>
  417. <li data-name="LuCI.form.FileUpload#editable"><a href="LuCI.form.FileUpload.html#editable">editable</a></li>
  418. <li data-name="LuCI.form.FileUpload#modalonly"><a href="LuCI.form.FileUpload.html#modalonly">modalonly</a></li>
  419. <li data-name="LuCI.form.FileUpload#onchange"><a href="LuCI.form.FileUpload.html#onchange">onchange</a></li>
  420. <li data-name="LuCI.form.FileUpload#optional"><a href="LuCI.form.FileUpload.html#optional">optional</a></li>
  421. <li data-name="LuCI.form.FileUpload#password"><a href="LuCI.form.FileUpload.html#password">password</a></li>
  422. <li data-name="LuCI.form.FileUpload#placeholder"><a href="LuCI.form.FileUpload.html#placeholder">placeholder</a></li>
  423. <li data-name="LuCI.form.FileUpload#readonly"><a href="LuCI.form.FileUpload.html#readonly">readonly</a></li>
  424. <li data-name="LuCI.form.FileUpload#retain"><a href="LuCI.form.FileUpload.html#retain">retain</a></li>
  425. <li data-name="LuCI.form.FileUpload#rmempty"><a href="LuCI.form.FileUpload.html#rmempty">rmempty</a></li>
  426. <li data-name="LuCI.form.FileUpload#uciconfig"><a href="LuCI.form.FileUpload.html#uciconfig">uciconfig</a></li>
  427. <li data-name="LuCI.form.FileUpload#ucioption"><a href="LuCI.form.FileUpload.html#ucioption">ucioption</a></li>
  428. <li data-name="LuCI.form.FileUpload#ucisection"><a href="LuCI.form.FileUpload.html#ucisection">ucisection</a></li>
  429. <li data-name="LuCI.form.FileUpload#validate"><a href="LuCI.form.FileUpload.html#validate">validate</a></li>
  430. <li data-name="LuCI.form.FileUpload#width"><a href="LuCI.form.FileUpload.html#width">width</a></li>
  431. </ul>
  432. <ul class="typedefs itemMembers">
  433. </ul>
  434. <ul class="typedefs itemMembers">
  435. </ul>
  436. <ul class="methods itemMembers">
  437. <span class="subtitle">Methods</span>
  438. <li data-name="LuCI.form.FileUpload#append"><a href="LuCI.form.FileUpload.html#append">append</a></li>
  439. <li data-name="LuCI.form.FileUpload#cbid"><a href="LuCI.form.FileUpload.html#cbid">cbid</a></li>
  440. <li data-name="LuCI.form.FileUpload#cfgvalue"><a href="LuCI.form.FileUpload.html#cfgvalue">cfgvalue</a></li>
  441. <li data-name="LuCI.form.FileUpload#depends"><a href="LuCI.form.FileUpload.html#depends">depends</a></li>
  442. <li data-name="LuCI.form.FileUpload#formvalue"><a href="LuCI.form.FileUpload.html#formvalue">formvalue</a></li>
  443. <li data-name="LuCI.form.FileUpload#getUIElement"><a href="LuCI.form.FileUpload.html#getUIElement">getUIElement</a></li>
  444. <li data-name="LuCI.form.FileUpload#getValidationError"><a href="LuCI.form.FileUpload.html#getValidationError">getValidationError</a></li>
  445. <li data-name="LuCI.form.FileUpload#isActive"><a href="LuCI.form.FileUpload.html#isActive">isActive</a></li>
  446. <li data-name="LuCI.form.FileUpload#isValid"><a href="LuCI.form.FileUpload.html#isValid">isValid</a></li>
  447. <li data-name="LuCI.form.FileUpload#load"><a href="LuCI.form.FileUpload.html#load">load</a></li>
  448. <li data-name="LuCI.form.FileUpload#parse"><a href="LuCI.form.FileUpload.html#parse">parse</a></li>
  449. <li data-name="LuCI.form.FileUpload#remove"><a href="LuCI.form.FileUpload.html#remove">remove</a></li>
  450. <li data-name="LuCI.form.FileUpload#stripTags"><a href="LuCI.form.FileUpload.html#stripTags">stripTags</a></li>
  451. <li data-name="LuCI.form.FileUpload#textvalue"><a href="LuCI.form.FileUpload.html#textvalue">textvalue</a></li>
  452. <li data-name="LuCI.form.FileUpload#titleFn"><a href="LuCI.form.FileUpload.html#titleFn">titleFn</a></li>
  453. <li data-name="LuCI.form.FileUpload#value"><a href="LuCI.form.FileUpload.html#value">value</a></li>
  454. <li data-name="LuCI.form.FileUpload#write"><a href="LuCI.form.FileUpload.html#write">write</a></li>
  455. </ul>
  456. <ul class="events itemMembers">
  457. </ul>
  458. </li>
  459. <li class="item" data-name="LuCI.form.FlagValue">
  460. <span class="title">
  461. <a href="LuCI.form.FlagValue.html">LuCI.form.FlagValue</a>
  462. </span>
  463. <ul class="members itemMembers">
  464. <span class="subtitle">Members</span>
  465. <li data-name="LuCI.form.FlagValue##disabled"><a href="LuCI.form.FlagValue.html#disabled">disabled</a></li>
  466. <li data-name="LuCI.form.FlagValue##enabled"><a href="LuCI.form.FlagValue.html#enabled">enabled</a></li>
  467. <li data-name="LuCI.form.FlagValue##tooltip"><a href="LuCI.form.FlagValue.html#tooltip">tooltip</a></li>
  468. <li data-name="LuCI.form.FlagValue##tooltipicon"><a href="LuCI.form.FlagValue.html#tooltipicon">tooltipicon</a></li>
  469. <li data-name="LuCI.form.FlagValue#datatype"><a href="LuCI.form.FlagValue.html#datatype">datatype</a></li>
  470. <li data-name="LuCI.form.FlagValue#default"><a href="LuCI.form.FlagValue.html#default">default</a></li>
  471. <li data-name="LuCI.form.FlagValue#editable"><a href="LuCI.form.FlagValue.html#editable">editable</a></li>
  472. <li data-name="LuCI.form.FlagValue#modalonly"><a href="LuCI.form.FlagValue.html#modalonly">modalonly</a></li>
  473. <li data-name="LuCI.form.FlagValue#onchange"><a href="LuCI.form.FlagValue.html#onchange">onchange</a></li>
  474. <li data-name="LuCI.form.FlagValue#optional"><a href="LuCI.form.FlagValue.html#optional">optional</a></li>
  475. <li data-name="LuCI.form.FlagValue#password"><a href="LuCI.form.FlagValue.html#password">password</a></li>
  476. <li data-name="LuCI.form.FlagValue#placeholder"><a href="LuCI.form.FlagValue.html#placeholder">placeholder</a></li>
  477. <li data-name="LuCI.form.FlagValue#readonly"><a href="LuCI.form.FlagValue.html#readonly">readonly</a></li>
  478. <li data-name="LuCI.form.FlagValue#retain"><a href="LuCI.form.FlagValue.html#retain">retain</a></li>
  479. <li data-name="LuCI.form.FlagValue#rmempty"><a href="LuCI.form.FlagValue.html#rmempty">rmempty</a></li>
  480. <li data-name="LuCI.form.FlagValue#uciconfig"><a href="LuCI.form.FlagValue.html#uciconfig">uciconfig</a></li>
  481. <li data-name="LuCI.form.FlagValue#ucioption"><a href="LuCI.form.FlagValue.html#ucioption">ucioption</a></li>
  482. <li data-name="LuCI.form.FlagValue#ucisection"><a href="LuCI.form.FlagValue.html#ucisection">ucisection</a></li>
  483. <li data-name="LuCI.form.FlagValue#validate"><a href="LuCI.form.FlagValue.html#validate">validate</a></li>
  484. <li data-name="LuCI.form.FlagValue#width"><a href="LuCI.form.FlagValue.html#width">width</a></li>
  485. </ul>
  486. <ul class="typedefs itemMembers">
  487. </ul>
  488. <ul class="typedefs itemMembers">
  489. </ul>
  490. <ul class="methods itemMembers">
  491. <span class="subtitle">Methods</span>
  492. <li data-name="LuCI.form.FlagValue#append"><a href="LuCI.form.FlagValue.html#append">append</a></li>
  493. <li data-name="LuCI.form.FlagValue#cbid"><a href="LuCI.form.FlagValue.html#cbid">cbid</a></li>
  494. <li data-name="LuCI.form.FlagValue#cfgvalue"><a href="LuCI.form.FlagValue.html#cfgvalue">cfgvalue</a></li>
  495. <li data-name="LuCI.form.FlagValue#depends"><a href="LuCI.form.FlagValue.html#depends">depends</a></li>
  496. <li data-name="LuCI.form.FlagValue#formvalue"><a href="LuCI.form.FlagValue.html#formvalue">formvalue</a></li>
  497. <li data-name="LuCI.form.FlagValue#getUIElement"><a href="LuCI.form.FlagValue.html#getUIElement">getUIElement</a></li>
  498. <li data-name="LuCI.form.FlagValue#getValidationError"><a href="LuCI.form.FlagValue.html#getValidationError">getValidationError</a></li>
  499. <li data-name="LuCI.form.FlagValue#isActive"><a href="LuCI.form.FlagValue.html#isActive">isActive</a></li>
  500. <li data-name="LuCI.form.FlagValue#isValid"><a href="LuCI.form.FlagValue.html#isValid">isValid</a></li>
  501. <li data-name="LuCI.form.FlagValue#load"><a href="LuCI.form.FlagValue.html#load">load</a></li>
  502. <li data-name="LuCI.form.FlagValue#parse"><a href="LuCI.form.FlagValue.html#parse">parse</a></li>
  503. <li data-name="LuCI.form.FlagValue#remove"><a href="LuCI.form.FlagValue.html#remove">remove</a></li>
  504. <li data-name="LuCI.form.FlagValue#stripTags"><a href="LuCI.form.FlagValue.html#stripTags">stripTags</a></li>
  505. <li data-name="LuCI.form.FlagValue#textvalue"><a href="LuCI.form.FlagValue.html#textvalue">textvalue</a></li>
  506. <li data-name="LuCI.form.FlagValue#titleFn"><a href="LuCI.form.FlagValue.html#titleFn">titleFn</a></li>
  507. <li data-name="LuCI.form.FlagValue#value"><a href="LuCI.form.FlagValue.html#value">value</a></li>
  508. <li data-name="LuCI.form.FlagValue#write"><a href="LuCI.form.FlagValue.html#write">write</a></li>
  509. </ul>
  510. <ul class="events itemMembers">
  511. </ul>
  512. </li>
  513. <li class="item" data-name="LuCI.form.GridSection">
  514. <span class="title">
  515. <a href="LuCI.form.GridSection.html">LuCI.form.GridSection</a>
  516. </span>
  517. <ul class="members itemMembers">
  518. <span class="subtitle">Members</span>
  519. <li data-name="LuCI.form.GridSection#addbtntitle"><a href="LuCI.form.GridSection.html#addbtntitle">addbtntitle</a></li>
  520. <li data-name="LuCI.form.GridSection#addremove"><a href="LuCI.form.GridSection.html#addremove">addremove</a></li>
  521. <li data-name="LuCI.form.GridSection#anonymous"><a href="LuCI.form.GridSection.html#anonymous">anonymous</a></li>
  522. <li data-name="LuCI.form.GridSection#cloneable"><a href="LuCI.form.GridSection.html#cloneable">cloneable</a></li>
  523. <li data-name="LuCI.form.GridSection#extedit"><a href="LuCI.form.GridSection.html#extedit">extedit</a></li>
  524. <li data-name="LuCI.form.GridSection#max_cols"><a href="LuCI.form.GridSection.html#max_cols">max_cols</a></li>
  525. <li data-name="LuCI.form.GridSection#modaltitle"><a href="LuCI.form.GridSection.html#modaltitle">modaltitle</a></li>
  526. <li data-name="LuCI.form.GridSection#nodescriptions"><a href="LuCI.form.GridSection.html#nodescriptions">nodescriptions</a></li>
  527. <li data-name="LuCI.form.GridSection#parentoption"><a href="LuCI.form.GridSection.html#parentoption">parentoption</a></li>
  528. <li data-name="LuCI.form.GridSection#rowcolors"><a href="LuCI.form.GridSection.html#rowcolors">rowcolors</a></li>
  529. <li data-name="LuCI.form.GridSection#sectiontitle"><a href="LuCI.form.GridSection.html#sectiontitle">sectiontitle</a></li>
  530. <li data-name="LuCI.form.GridSection#sortable"><a href="LuCI.form.GridSection.html#sortable">sortable</a></li>
  531. <li data-name="LuCI.form.GridSection#tabbed"><a href="LuCI.form.GridSection.html#tabbed">tabbed</a></li>
  532. <li data-name="LuCI.form.GridSection#uciconfig"><a href="LuCI.form.GridSection.html#uciconfig">uciconfig</a></li>
  533. </ul>
  534. <ul class="typedefs itemMembers">
  535. </ul>
  536. <ul class="typedefs itemMembers">
  537. </ul>
  538. <ul class="methods itemMembers">
  539. <span class="subtitle">Methods</span>
  540. <li data-name="LuCI.form.GridSection#addModalOptions"><a href="LuCI.form.GridSection.html#addModalOptions">addModalOptions</a></li>
  541. <li data-name="LuCI.form.GridSection#append"><a href="LuCI.form.GridSection.html#append">append</a></li>
  542. <li data-name="LuCI.form.GridSection#cfgvalue"><a href="LuCI.form.GridSection.html#cfgvalue">cfgvalue</a></li>
  543. <li data-name="LuCI.form.GridSection#filter"><a href="LuCI.form.GridSection.html#filter">filter</a></li>
  544. <li data-name="LuCI.form.GridSection#formvalue"><a href="LuCI.form.GridSection.html#formvalue">formvalue</a></li>
  545. <li data-name="LuCI.form.GridSection#getOption"><a href="LuCI.form.GridSection.html#getOption">getOption</a></li>
  546. <li data-name="LuCI.form.GridSection#getUIElement"><a href="LuCI.form.GridSection.html#getUIElement">getUIElement</a></li>
  547. <li data-name="LuCI.form.GridSection#load"><a href="LuCI.form.GridSection.html#load">load</a></li>
  548. <li data-name="LuCI.form.GridSection#option"><a href="LuCI.form.GridSection.html#option">option</a></li>
  549. <li data-name="LuCI.form.GridSection#parse"><a href="LuCI.form.GridSection.html#parse">parse</a></li>
  550. <li data-name="LuCI.form.GridSection#stripTags"><a href="LuCI.form.GridSection.html#stripTags">stripTags</a></li>
  551. <li data-name="LuCI.form.GridSection#tab"><a href="LuCI.form.GridSection.html#tab">tab</a></li>
  552. <li data-name="LuCI.form.GridSection#taboption"><a href="LuCI.form.GridSection.html#taboption">taboption</a></li>
  553. <li data-name="LuCI.form.GridSection#titleFn"><a href="LuCI.form.GridSection.html#titleFn">titleFn</a></li>
  554. </ul>
  555. <ul class="events itemMembers">
  556. </ul>
  557. </li>
  558. <li class="item" data-name="LuCI.form.HiddenValue">
  559. <span class="title">
  560. <a href="LuCI.form.HiddenValue.html">LuCI.form.HiddenValue</a>
  561. </span>
  562. <ul class="members itemMembers">
  563. <span class="subtitle">Members</span>
  564. <li data-name="LuCI.form.HiddenValue#datatype"><a href="LuCI.form.HiddenValue.html#datatype">datatype</a></li>
  565. <li data-name="LuCI.form.HiddenValue#default"><a href="LuCI.form.HiddenValue.html#default">default</a></li>
  566. <li data-name="LuCI.form.HiddenValue#editable"><a href="LuCI.form.HiddenValue.html#editable">editable</a></li>
  567. <li data-name="LuCI.form.HiddenValue#modalonly"><a href="LuCI.form.HiddenValue.html#modalonly">modalonly</a></li>
  568. <li data-name="LuCI.form.HiddenValue#onchange"><a href="LuCI.form.HiddenValue.html#onchange">onchange</a></li>
  569. <li data-name="LuCI.form.HiddenValue#optional"><a href="LuCI.form.HiddenValue.html#optional">optional</a></li>
  570. <li data-name="LuCI.form.HiddenValue#password"><a href="LuCI.form.HiddenValue.html#password">password</a></li>
  571. <li data-name="LuCI.form.HiddenValue#placeholder"><a href="LuCI.form.HiddenValue.html#placeholder">placeholder</a></li>
  572. <li data-name="LuCI.form.HiddenValue#readonly"><a href="LuCI.form.HiddenValue.html#readonly">readonly</a></li>
  573. <li data-name="LuCI.form.HiddenValue#retain"><a href="LuCI.form.HiddenValue.html#retain">retain</a></li>
  574. <li data-name="LuCI.form.HiddenValue#rmempty"><a href="LuCI.form.HiddenValue.html#rmempty">rmempty</a></li>
  575. <li data-name="LuCI.form.HiddenValue#uciconfig"><a href="LuCI.form.HiddenValue.html#uciconfig">uciconfig</a></li>
  576. <li data-name="LuCI.form.HiddenValue#ucioption"><a href="LuCI.form.HiddenValue.html#ucioption">ucioption</a></li>
  577. <li data-name="LuCI.form.HiddenValue#ucisection"><a href="LuCI.form.HiddenValue.html#ucisection">ucisection</a></li>
  578. <li data-name="LuCI.form.HiddenValue#validate"><a href="LuCI.form.HiddenValue.html#validate">validate</a></li>
  579. <li data-name="LuCI.form.HiddenValue#width"><a href="LuCI.form.HiddenValue.html#width">width</a></li>
  580. </ul>
  581. <ul class="typedefs itemMembers">
  582. </ul>
  583. <ul class="typedefs itemMembers">
  584. </ul>
  585. <ul class="methods itemMembers">
  586. <span class="subtitle">Methods</span>
  587. <li data-name="LuCI.form.HiddenValue#append"><a href="LuCI.form.HiddenValue.html#append">append</a></li>
  588. <li data-name="LuCI.form.HiddenValue#cbid"><a href="LuCI.form.HiddenValue.html#cbid">cbid</a></li>
  589. <li data-name="LuCI.form.HiddenValue#cfgvalue"><a href="LuCI.form.HiddenValue.html#cfgvalue">cfgvalue</a></li>
  590. <li data-name="LuCI.form.HiddenValue#depends"><a href="LuCI.form.HiddenValue.html#depends">depends</a></li>
  591. <li data-name="LuCI.form.HiddenValue#formvalue"><a href="LuCI.form.HiddenValue.html#formvalue">formvalue</a></li>
  592. <li data-name="LuCI.form.HiddenValue#getUIElement"><a href="LuCI.form.HiddenValue.html#getUIElement">getUIElement</a></li>
  593. <li data-name="LuCI.form.HiddenValue#getValidationError"><a href="LuCI.form.HiddenValue.html#getValidationError">getValidationError</a></li>
  594. <li data-name="LuCI.form.HiddenValue#isActive"><a href="LuCI.form.HiddenValue.html#isActive">isActive</a></li>
  595. <li data-name="LuCI.form.HiddenValue#isValid"><a href="LuCI.form.HiddenValue.html#isValid">isValid</a></li>
  596. <li data-name="LuCI.form.HiddenValue#load"><a href="LuCI.form.HiddenValue.html#load">load</a></li>
  597. <li data-name="LuCI.form.HiddenValue#parse"><a href="LuCI.form.HiddenValue.html#parse">parse</a></li>
  598. <li data-name="LuCI.form.HiddenValue#remove"><a href="LuCI.form.HiddenValue.html#remove">remove</a></li>
  599. <li data-name="LuCI.form.HiddenValue#stripTags"><a href="LuCI.form.HiddenValue.html#stripTags">stripTags</a></li>
  600. <li data-name="LuCI.form.HiddenValue#textvalue"><a href="LuCI.form.HiddenValue.html#textvalue">textvalue</a></li>
  601. <li data-name="LuCI.form.HiddenValue#titleFn"><a href="LuCI.form.HiddenValue.html#titleFn">titleFn</a></li>
  602. <li data-name="LuCI.form.HiddenValue#value"><a href="LuCI.form.HiddenValue.html#value">value</a></li>
  603. <li data-name="LuCI.form.HiddenValue#write"><a href="LuCI.form.HiddenValue.html#write">write</a></li>
  604. </ul>
  605. <ul class="events itemMembers">
  606. </ul>
  607. </li>
  608. <li class="item" data-name="LuCI.form.JSONMap">
  609. <span class="title">
  610. <a href="LuCI.form.JSONMap.html">LuCI.form.JSONMap</a>
  611. </span>
  612. <ul class="members itemMembers">
  613. <span class="subtitle">Members</span>
  614. <li data-name="LuCI.form.JSONMap#readonly"><a href="LuCI.form.JSONMap.html#readonly">readonly</a></li>
  615. </ul>
  616. <ul class="typedefs itemMembers">
  617. </ul>
  618. <ul class="typedefs itemMembers">
  619. </ul>
  620. <ul class="methods itemMembers">
  621. <span class="subtitle">Methods</span>
  622. <li data-name="LuCI.form.JSONMap#append"><a href="LuCI.form.JSONMap.html#append">append</a></li>
  623. <li data-name="LuCI.form.JSONMap#chain"><a href="LuCI.form.JSONMap.html#chain">chain</a></li>
  624. <li data-name="LuCI.form.JSONMap#findElement"><a href="LuCI.form.JSONMap.html#findElement">findElement</a></li>
  625. <li data-name="LuCI.form.JSONMap#findElements"><a href="LuCI.form.JSONMap.html#findElements">findElements</a></li>
  626. <li data-name="LuCI.form.JSONMap#load"><a href="LuCI.form.JSONMap.html#load">load</a></li>
  627. <li data-name="LuCI.form.JSONMap#lookupOption"><a href="LuCI.form.JSONMap.html#lookupOption">lookupOption</a></li>
  628. <li data-name="LuCI.form.JSONMap#parse"><a href="LuCI.form.JSONMap.html#parse">parse</a></li>
  629. <li data-name="LuCI.form.JSONMap#render"><a href="LuCI.form.JSONMap.html#render">render</a></li>
  630. <li data-name="LuCI.form.JSONMap#reset"><a href="LuCI.form.JSONMap.html#reset">reset</a></li>
  631. <li data-name="LuCI.form.JSONMap#save"><a href="LuCI.form.JSONMap.html#save">save</a></li>
  632. <li data-name="LuCI.form.JSONMap#section"><a href="LuCI.form.JSONMap.html#section">section</a></li>
  633. <li data-name="LuCI.form.JSONMap#stripTags"><a href="LuCI.form.JSONMap.html#stripTags">stripTags</a></li>
  634. <li data-name="LuCI.form.JSONMap#titleFn"><a href="LuCI.form.JSONMap.html#titleFn">titleFn</a></li>
  635. </ul>
  636. <ul class="events itemMembers">
  637. </ul>
  638. </li>
  639. <li class="item" data-name="LuCI.form.ListValue">
  640. <span class="title">
  641. <a href="LuCI.form.ListValue.html">LuCI.form.ListValue</a>
  642. </span>
  643. <ul class="members itemMembers">
  644. <span class="subtitle">Members</span>
  645. <li data-name="LuCI.form.ListValue##orientation"><a href="LuCI.form.ListValue.html#orientation">orientation</a></li>
  646. <li data-name="LuCI.form.ListValue##size"><a href="LuCI.form.ListValue.html#size">size</a></li>
  647. <li data-name="LuCI.form.ListValue##widget"><a href="LuCI.form.ListValue.html#widget">widget</a></li>
  648. <li data-name="LuCI.form.ListValue#datatype"><a href="LuCI.form.ListValue.html#datatype">datatype</a></li>
  649. <li data-name="LuCI.form.ListValue#default"><a href="LuCI.form.ListValue.html#default">default</a></li>
  650. <li data-name="LuCI.form.ListValue#editable"><a href="LuCI.form.ListValue.html#editable">editable</a></li>
  651. <li data-name="LuCI.form.ListValue#modalonly"><a href="LuCI.form.ListValue.html#modalonly">modalonly</a></li>
  652. <li data-name="LuCI.form.ListValue#onchange"><a href="LuCI.form.ListValue.html#onchange">onchange</a></li>
  653. <li data-name="LuCI.form.ListValue#optional"><a href="LuCI.form.ListValue.html#optional">optional</a></li>
  654. <li data-name="LuCI.form.ListValue#password"><a href="LuCI.form.ListValue.html#password">password</a></li>
  655. <li data-name="LuCI.form.ListValue#placeholder"><a href="LuCI.form.ListValue.html#placeholder">placeholder</a></li>
  656. <li data-name="LuCI.form.ListValue#readonly"><a href="LuCI.form.ListValue.html#readonly">readonly</a></li>
  657. <li data-name="LuCI.form.ListValue#retain"><a href="LuCI.form.ListValue.html#retain">retain</a></li>
  658. <li data-name="LuCI.form.ListValue#rmempty"><a href="LuCI.form.ListValue.html#rmempty">rmempty</a></li>
  659. <li data-name="LuCI.form.ListValue#uciconfig"><a href="LuCI.form.ListValue.html#uciconfig">uciconfig</a></li>
  660. <li data-name="LuCI.form.ListValue#ucioption"><a href="LuCI.form.ListValue.html#ucioption">ucioption</a></li>
  661. <li data-name="LuCI.form.ListValue#ucisection"><a href="LuCI.form.ListValue.html#ucisection">ucisection</a></li>
  662. <li data-name="LuCI.form.ListValue#validate"><a href="LuCI.form.ListValue.html#validate">validate</a></li>
  663. <li data-name="LuCI.form.ListValue#width"><a href="LuCI.form.ListValue.html#width">width</a></li>
  664. </ul>
  665. <ul class="typedefs itemMembers">
  666. </ul>
  667. <ul class="typedefs itemMembers">
  668. </ul>
  669. <ul class="methods itemMembers">
  670. <span class="subtitle">Methods</span>
  671. <li data-name="LuCI.form.ListValue#append"><a href="LuCI.form.ListValue.html#append">append</a></li>
  672. <li data-name="LuCI.form.ListValue#cbid"><a href="LuCI.form.ListValue.html#cbid">cbid</a></li>
  673. <li data-name="LuCI.form.ListValue#cfgvalue"><a href="LuCI.form.ListValue.html#cfgvalue">cfgvalue</a></li>
  674. <li data-name="LuCI.form.ListValue#depends"><a href="LuCI.form.ListValue.html#depends">depends</a></li>
  675. <li data-name="LuCI.form.ListValue#formvalue"><a href="LuCI.form.ListValue.html#formvalue">formvalue</a></li>
  676. <li data-name="LuCI.form.ListValue#getUIElement"><a href="LuCI.form.ListValue.html#getUIElement">getUIElement</a></li>
  677. <li data-name="LuCI.form.ListValue#getValidationError"><a href="LuCI.form.ListValue.html#getValidationError">getValidationError</a></li>
  678. <li data-name="LuCI.form.ListValue#isActive"><a href="LuCI.form.ListValue.html#isActive">isActive</a></li>
  679. <li data-name="LuCI.form.ListValue#isValid"><a href="LuCI.form.ListValue.html#isValid">isValid</a></li>
  680. <li data-name="LuCI.form.ListValue#load"><a href="LuCI.form.ListValue.html#load">load</a></li>
  681. <li data-name="LuCI.form.ListValue#parse"><a href="LuCI.form.ListValue.html#parse">parse</a></li>
  682. <li data-name="LuCI.form.ListValue#remove"><a href="LuCI.form.ListValue.html#remove">remove</a></li>
  683. <li data-name="LuCI.form.ListValue#stripTags"><a href="LuCI.form.ListValue.html#stripTags">stripTags</a></li>
  684. <li data-name="LuCI.form.ListValue#textvalue"><a href="LuCI.form.ListValue.html#textvalue">textvalue</a></li>
  685. <li data-name="LuCI.form.ListValue#titleFn"><a href="LuCI.form.ListValue.html#titleFn">titleFn</a></li>
  686. <li data-name="LuCI.form.ListValue#value"><a href="LuCI.form.ListValue.html#value">value</a></li>
  687. <li data-name="LuCI.form.ListValue#write"><a href="LuCI.form.ListValue.html#write">write</a></li>
  688. </ul>
  689. <ul class="events itemMembers">
  690. </ul>
  691. </li>
  692. <li class="item" data-name="LuCI.form.Map">
  693. <span class="title">
  694. <a href="LuCI.form.Map.html">LuCI.form.Map</a>
  695. </span>
  696. <ul class="members itemMembers">
  697. <span class="subtitle">Members</span>
  698. <li data-name="LuCI.form.Map##readonly"><a href="LuCI.form.Map.html#readonly">readonly</a></li>
  699. </ul>
  700. <ul class="typedefs itemMembers">
  701. </ul>
  702. <ul class="typedefs itemMembers">
  703. </ul>
  704. <ul class="methods itemMembers">
  705. <span class="subtitle">Methods</span>
  706. <li data-name="LuCI.form.Map#append"><a href="LuCI.form.Map.html#append">append</a></li>
  707. <li data-name="LuCI.form.Map#chain"><a href="LuCI.form.Map.html#chain">chain</a></li>
  708. <li data-name="LuCI.form.Map#findElement"><a href="LuCI.form.Map.html#findElement">findElement</a></li>
  709. <li data-name="LuCI.form.Map#findElements"><a href="LuCI.form.Map.html#findElements">findElements</a></li>
  710. <li data-name="LuCI.form.Map#load"><a href="LuCI.form.Map.html#load">load</a></li>
  711. <li data-name="LuCI.form.Map#lookupOption"><a href="LuCI.form.Map.html#lookupOption">lookupOption</a></li>
  712. <li data-name="LuCI.form.Map#parse"><a href="LuCI.form.Map.html#parse">parse</a></li>
  713. <li data-name="LuCI.form.Map#render"><a href="LuCI.form.Map.html#render">render</a></li>
  714. <li data-name="LuCI.form.Map#reset"><a href="LuCI.form.Map.html#reset">reset</a></li>
  715. <li data-name="LuCI.form.Map#save"><a href="LuCI.form.Map.html#save">save</a></li>
  716. <li data-name="LuCI.form.Map#section"><a href="LuCI.form.Map.html#section">section</a></li>
  717. <li data-name="LuCI.form.Map#stripTags"><a href="LuCI.form.Map.html#stripTags">stripTags</a></li>
  718. <li data-name="LuCI.form.Map#titleFn"><a href="LuCI.form.Map.html#titleFn">titleFn</a></li>
  719. </ul>
  720. <ul class="events itemMembers">
  721. </ul>
  722. </li>
  723. <li class="item" data-name="LuCI.form.MultiValue">
  724. <span class="title">
  725. <a href="LuCI.form.MultiValue.html">LuCI.form.MultiValue</a>
  726. </span>
  727. <ul class="members itemMembers">
  728. <span class="subtitle">Members</span>
  729. <li data-name="LuCI.form.MultiValue##create"><a href="LuCI.form.MultiValue.html#create">create</a></li>
  730. <li data-name="LuCI.form.MultiValue##display_size"><a href="LuCI.form.MultiValue.html#display_size">display_size</a></li>
  731. <li data-name="LuCI.form.MultiValue##dropdown_size"><a href="LuCI.form.MultiValue.html#dropdown_size">dropdown_size</a></li>
  732. <li data-name="LuCI.form.MultiValue#datatype"><a href="LuCI.form.MultiValue.html#datatype">datatype</a></li>
  733. <li data-name="LuCI.form.MultiValue#default"><a href="LuCI.form.MultiValue.html#default">default</a></li>
  734. <li data-name="LuCI.form.MultiValue#editable"><a href="LuCI.form.MultiValue.html#editable">editable</a></li>
  735. <li data-name="LuCI.form.MultiValue#modalonly"><a href="LuCI.form.MultiValue.html#modalonly">modalonly</a></li>
  736. <li data-name="LuCI.form.MultiValue#onchange"><a href="LuCI.form.MultiValue.html#onchange">onchange</a></li>
  737. <li data-name="LuCI.form.MultiValue#optional"><a href="LuCI.form.MultiValue.html#optional">optional</a></li>
  738. <li data-name="LuCI.form.MultiValue#password"><a href="LuCI.form.MultiValue.html#password">password</a></li>
  739. <li data-name="LuCI.form.MultiValue#placeholder"><a href="LuCI.form.MultiValue.html#placeholder">placeholder</a></li>
  740. <li data-name="LuCI.form.MultiValue#readonly"><a href="LuCI.form.MultiValue.html#readonly">readonly</a></li>
  741. <li data-name="LuCI.form.MultiValue#retain"><a href="LuCI.form.MultiValue.html#retain">retain</a></li>
  742. <li data-name="LuCI.form.MultiValue#rmempty"><a href="LuCI.form.MultiValue.html#rmempty">rmempty</a></li>
  743. <li data-name="LuCI.form.MultiValue#uciconfig"><a href="LuCI.form.MultiValue.html#uciconfig">uciconfig</a></li>
  744. <li data-name="LuCI.form.MultiValue#ucioption"><a href="LuCI.form.MultiValue.html#ucioption">ucioption</a></li>
  745. <li data-name="LuCI.form.MultiValue#ucisection"><a href="LuCI.form.MultiValue.html#ucisection">ucisection</a></li>
  746. <li data-name="LuCI.form.MultiValue#validate"><a href="LuCI.form.MultiValue.html#validate">validate</a></li>
  747. <li data-name="LuCI.form.MultiValue#width"><a href="LuCI.form.MultiValue.html#width">width</a></li>
  748. </ul>
  749. <ul class="typedefs itemMembers">
  750. </ul>
  751. <ul class="typedefs itemMembers">
  752. </ul>
  753. <ul class="methods itemMembers">
  754. <span class="subtitle">Methods</span>
  755. <li data-name="LuCI.form.MultiValue#append"><a href="LuCI.form.MultiValue.html#append">append</a></li>
  756. <li data-name="LuCI.form.MultiValue#cbid"><a href="LuCI.form.MultiValue.html#cbid">cbid</a></li>
  757. <li data-name="LuCI.form.MultiValue#cfgvalue"><a href="LuCI.form.MultiValue.html#cfgvalue">cfgvalue</a></li>
  758. <li data-name="LuCI.form.MultiValue#depends"><a href="LuCI.form.MultiValue.html#depends">depends</a></li>
  759. <li data-name="LuCI.form.MultiValue#formvalue"><a href="LuCI.form.MultiValue.html#formvalue">formvalue</a></li>
  760. <li data-name="LuCI.form.MultiValue#getUIElement"><a href="LuCI.form.MultiValue.html#getUIElement">getUIElement</a></li>
  761. <li data-name="LuCI.form.MultiValue#getValidationError"><a href="LuCI.form.MultiValue.html#getValidationError">getValidationError</a></li>
  762. <li data-name="LuCI.form.MultiValue#isActive"><a href="LuCI.form.MultiValue.html#isActive">isActive</a></li>
  763. <li data-name="LuCI.form.MultiValue#isValid"><a href="LuCI.form.MultiValue.html#isValid">isValid</a></li>
  764. <li data-name="LuCI.form.MultiValue#load"><a href="LuCI.form.MultiValue.html#load">load</a></li>
  765. <li data-name="LuCI.form.MultiValue#parse"><a href="LuCI.form.MultiValue.html#parse">parse</a></li>
  766. <li data-name="LuCI.form.MultiValue#remove"><a href="LuCI.form.MultiValue.html#remove">remove</a></li>
  767. <li data-name="LuCI.form.MultiValue#stripTags"><a href="LuCI.form.MultiValue.html#stripTags">stripTags</a></li>
  768. <li data-name="LuCI.form.MultiValue#textvalue"><a href="LuCI.form.MultiValue.html#textvalue">textvalue</a></li>
  769. <li data-name="LuCI.form.MultiValue#titleFn"><a href="LuCI.form.MultiValue.html#titleFn">titleFn</a></li>
  770. <li data-name="LuCI.form.MultiValue#value"><a href="LuCI.form.MultiValue.html#value">value</a></li>
  771. <li data-name="LuCI.form.MultiValue#write"><a href="LuCI.form.MultiValue.html#write">write</a></li>
  772. </ul>
  773. <ul class="events itemMembers">
  774. </ul>
  775. </li>
  776. <li class="item" data-name="LuCI.form.NamedSection">
  777. <span class="title">
  778. <a href="LuCI.form.NamedSection.html">LuCI.form.NamedSection</a>
  779. </span>
  780. <ul class="members itemMembers">
  781. <span class="subtitle">Members</span>
  782. <li data-name="LuCI.form.NamedSection##addremove"><a href="LuCI.form.NamedSection.html#addremove">addremove</a></li>
  783. <li data-name="LuCI.form.NamedSection##uciconfig"><a href="LuCI.form.NamedSection.html#uciconfig">uciconfig</a></li>
  784. <li data-name="LuCI.form.NamedSection#parentoption"><a href="LuCI.form.NamedSection.html#parentoption">parentoption</a></li>
  785. </ul>
  786. <ul class="typedefs itemMembers">
  787. </ul>
  788. <ul class="typedefs itemMembers">
  789. </ul>
  790. <ul class="methods itemMembers">
  791. <span class="subtitle">Methods</span>
  792. <li data-name="LuCI.form.NamedSection#append"><a href="LuCI.form.NamedSection.html#append">append</a></li>
  793. <li data-name="LuCI.form.NamedSection#cfgsections"><a href="LuCI.form.NamedSection.html#cfgsections">cfgsections</a></li>
  794. <li data-name="LuCI.form.NamedSection#cfgvalue"><a href="LuCI.form.NamedSection.html#cfgvalue">cfgvalue</a></li>
  795. <li data-name="LuCI.form.NamedSection#filter"><a href="LuCI.form.NamedSection.html#filter">filter</a></li>
  796. <li data-name="LuCI.form.NamedSection#formvalue"><a href="LuCI.form.NamedSection.html#formvalue">formvalue</a></li>
  797. <li data-name="LuCI.form.NamedSection#getOption"><a href="LuCI.form.NamedSection.html#getOption">getOption</a></li>
  798. <li data-name="LuCI.form.NamedSection#getUIElement"><a href="LuCI.form.NamedSection.html#getUIElement">getUIElement</a></li>
  799. <li data-name="LuCI.form.NamedSection#load"><a href="LuCI.form.NamedSection.html#load">load</a></li>
  800. <li data-name="LuCI.form.NamedSection#option"><a href="LuCI.form.NamedSection.html#option">option</a></li>
  801. <li data-name="LuCI.form.NamedSection#parse"><a href="LuCI.form.NamedSection.html#parse">parse</a></li>
  802. <li data-name="LuCI.form.NamedSection#render"><a href="LuCI.form.NamedSection.html#render">render</a></li>
  803. <li data-name="LuCI.form.NamedSection#stripTags"><a href="LuCI.form.NamedSection.html#stripTags">stripTags</a></li>
  804. <li data-name="LuCI.form.NamedSection#tab"><a href="LuCI.form.NamedSection.html#tab">tab</a></li>
  805. <li data-name="LuCI.form.NamedSection#taboption"><a href="LuCI.form.NamedSection.html#taboption">taboption</a></li>
  806. <li data-name="LuCI.form.NamedSection#titleFn"><a href="LuCI.form.NamedSection.html#titleFn">titleFn</a></li>
  807. </ul>
  808. <ul class="events itemMembers">
  809. </ul>
  810. </li>
  811. <li class="item" data-name="LuCI.form.RichListValue">
  812. <span class="title">
  813. <a href="LuCI.form.RichListValue.html">LuCI.form.RichListValue</a>
  814. </span>
  815. <ul class="members itemMembers">
  816. <span class="subtitle">Members</span>
  817. <li data-name="LuCI.form.RichListValue##orientation"><a href="LuCI.form.RichListValue.html#orientation">orientation</a></li>
  818. <li data-name="LuCI.form.RichListValue##size"><a href="LuCI.form.RichListValue.html#size">size</a></li>
  819. <li data-name="LuCI.form.RichListValue##widget"><a href="LuCI.form.RichListValue.html#widget">widget</a></li>
  820. <li data-name="LuCI.form.RichListValue#datatype"><a href="LuCI.form.RichListValue.html#datatype">datatype</a></li>
  821. <li data-name="LuCI.form.RichListValue#default"><a href="LuCI.form.RichListValue.html#default">default</a></li>
  822. <li data-name="LuCI.form.RichListValue#editable"><a href="LuCI.form.RichListValue.html#editable">editable</a></li>
  823. <li data-name="LuCI.form.RichListValue#modalonly"><a href="LuCI.form.RichListValue.html#modalonly">modalonly</a></li>
  824. <li data-name="LuCI.form.RichListValue#onchange"><a href="LuCI.form.RichListValue.html#onchange">onchange</a></li>
  825. <li data-name="LuCI.form.RichListValue#optional"><a href="LuCI.form.RichListValue.html#optional">optional</a></li>
  826. <li data-name="LuCI.form.RichListValue#orientation"><a href="LuCI.form.RichListValue.html#orientation">orientation</a></li>
  827. <li data-name="LuCI.form.RichListValue#password"><a href="LuCI.form.RichListValue.html#password">password</a></li>
  828. <li data-name="LuCI.form.RichListValue#placeholder"><a href="LuCI.form.RichListValue.html#placeholder">placeholder</a></li>
  829. <li data-name="LuCI.form.RichListValue#readonly"><a href="LuCI.form.RichListValue.html#readonly">readonly</a></li>
  830. <li data-name="LuCI.form.RichListValue#retain"><a href="LuCI.form.RichListValue.html#retain">retain</a></li>
  831. <li data-name="LuCI.form.RichListValue#rmempty"><a href="LuCI.form.RichListValue.html#rmempty">rmempty</a></li>
  832. <li data-name="LuCI.form.RichListValue#size"><a href="LuCI.form.RichListValue.html#size">size</a></li>
  833. <li data-name="LuCI.form.RichListValue#uciconfig"><a href="LuCI.form.RichListValue.html#uciconfig">uciconfig</a></li>
  834. <li data-name="LuCI.form.RichListValue#ucioption"><a href="LuCI.form.RichListValue.html#ucioption">ucioption</a></li>
  835. <li data-name="LuCI.form.RichListValue#ucisection"><a href="LuCI.form.RichListValue.html#ucisection">ucisection</a></li>
  836. <li data-name="LuCI.form.RichListValue#validate"><a href="LuCI.form.RichListValue.html#validate">validate</a></li>
  837. <li data-name="LuCI.form.RichListValue#widget"><a href="LuCI.form.RichListValue.html#widget">widget</a></li>
  838. <li data-name="LuCI.form.RichListValue#width"><a href="LuCI.form.RichListValue.html#width">width</a></li>
  839. </ul>
  840. <ul class="typedefs itemMembers">
  841. </ul>
  842. <ul class="typedefs itemMembers">
  843. </ul>
  844. <ul class="methods itemMembers">
  845. <span class="subtitle">Methods</span>
  846. <li data-name="LuCI.form.RichListValue#append"><a href="LuCI.form.RichListValue.html#append">append</a></li>
  847. <li data-name="LuCI.form.RichListValue#cbid"><a href="LuCI.form.RichListValue.html#cbid">cbid</a></li>
  848. <li data-name="LuCI.form.RichListValue#cfgvalue"><a href="LuCI.form.RichListValue.html#cfgvalue">cfgvalue</a></li>
  849. <li data-name="LuCI.form.RichListValue#depends"><a href="LuCI.form.RichListValue.html#depends">depends</a></li>
  850. <li data-name="LuCI.form.RichListValue#formvalue"><a href="LuCI.form.RichListValue.html#formvalue">formvalue</a></li>
  851. <li data-name="LuCI.form.RichListValue#getUIElement"><a href="LuCI.form.RichListValue.html#getUIElement">getUIElement</a></li>
  852. <li data-name="LuCI.form.RichListValue#getValidationError"><a href="LuCI.form.RichListValue.html#getValidationError">getValidationError</a></li>
  853. <li data-name="LuCI.form.RichListValue#isActive"><a href="LuCI.form.RichListValue.html#isActive">isActive</a></li>
  854. <li data-name="LuCI.form.RichListValue#isValid"><a href="LuCI.form.RichListValue.html#isValid">isValid</a></li>
  855. <li data-name="LuCI.form.RichListValue#load"><a href="LuCI.form.RichListValue.html#load">load</a></li>
  856. <li data-name="LuCI.form.RichListValue#parse"><a href="LuCI.form.RichListValue.html#parse">parse</a></li>
  857. <li data-name="LuCI.form.RichListValue#remove"><a href="LuCI.form.RichListValue.html#remove">remove</a></li>
  858. <li data-name="LuCI.form.RichListValue#stripTags"><a href="LuCI.form.RichListValue.html#stripTags">stripTags</a></li>
  859. <li data-name="LuCI.form.RichListValue#textvalue"><a href="LuCI.form.RichListValue.html#textvalue">textvalue</a></li>
  860. <li data-name="LuCI.form.RichListValue#titleFn"><a href="LuCI.form.RichListValue.html#titleFn">titleFn</a></li>
  861. <li data-name="LuCI.form.RichListValue#value"><a href="LuCI.form.RichListValue.html#value">value</a></li>
  862. <li data-name="LuCI.form.RichListValue#write"><a href="LuCI.form.RichListValue.html#write">write</a></li>
  863. </ul>
  864. <ul class="events itemMembers">
  865. </ul>
  866. </li>
  867. <li class="item" data-name="LuCI.form.SectionValue">
  868. <span class="title">
  869. <a href="LuCI.form.SectionValue.html">LuCI.form.SectionValue</a>
  870. </span>
  871. <ul class="members itemMembers">
  872. <span class="subtitle">Members</span>
  873. <li data-name="LuCI.form.SectionValue##subsection"><a href="LuCI.form.SectionValue.html#subsection">subsection</a></li>
  874. <li data-name="LuCI.form.SectionValue#datatype"><a href="LuCI.form.SectionValue.html#datatype">datatype</a></li>
  875. <li data-name="LuCI.form.SectionValue#default"><a href="LuCI.form.SectionValue.html#default">default</a></li>
  876. <li data-name="LuCI.form.SectionValue#editable"><a href="LuCI.form.SectionValue.html#editable">editable</a></li>
  877. <li data-name="LuCI.form.SectionValue#modalonly"><a href="LuCI.form.SectionValue.html#modalonly">modalonly</a></li>
  878. <li data-name="LuCI.form.SectionValue#onchange"><a href="LuCI.form.SectionValue.html#onchange">onchange</a></li>
  879. <li data-name="LuCI.form.SectionValue#optional"><a href="LuCI.form.SectionValue.html#optional">optional</a></li>
  880. <li data-name="LuCI.form.SectionValue#password"><a href="LuCI.form.SectionValue.html#password">password</a></li>
  881. <li data-name="LuCI.form.SectionValue#placeholder"><a href="LuCI.form.SectionValue.html#placeholder">placeholder</a></li>
  882. <li data-name="LuCI.form.SectionValue#readonly"><a href="LuCI.form.SectionValue.html#readonly">readonly</a></li>
  883. <li data-name="LuCI.form.SectionValue#retain"><a href="LuCI.form.SectionValue.html#retain">retain</a></li>
  884. <li data-name="LuCI.form.SectionValue#rmempty"><a href="LuCI.form.SectionValue.html#rmempty">rmempty</a></li>
  885. <li data-name="LuCI.form.SectionValue#uciconfig"><a href="LuCI.form.SectionValue.html#uciconfig">uciconfig</a></li>
  886. <li data-name="LuCI.form.SectionValue#ucioption"><a href="LuCI.form.SectionValue.html#ucioption">ucioption</a></li>
  887. <li data-name="LuCI.form.SectionValue#ucisection"><a href="LuCI.form.SectionValue.html#ucisection">ucisection</a></li>
  888. <li data-name="LuCI.form.SectionValue#validate"><a href="LuCI.form.SectionValue.html#validate">validate</a></li>
  889. <li data-name="LuCI.form.SectionValue#width"><a href="LuCI.form.SectionValue.html#width">width</a></li>
  890. </ul>
  891. <ul class="typedefs itemMembers">
  892. </ul>
  893. <ul class="typedefs itemMembers">
  894. </ul>
  895. <ul class="methods itemMembers">
  896. <span class="subtitle">Methods</span>
  897. <li data-name="LuCI.form.SectionValue#append"><a href="LuCI.form.SectionValue.html#append">append</a></li>
  898. <li data-name="LuCI.form.SectionValue#cbid"><a href="LuCI.form.SectionValue.html#cbid">cbid</a></li>
  899. <li data-name="LuCI.form.SectionValue#cfgvalue"><a href="LuCI.form.SectionValue.html#cfgvalue">cfgvalue</a></li>
  900. <li data-name="LuCI.form.SectionValue#depends"><a href="LuCI.form.SectionValue.html#depends">depends</a></li>
  901. <li data-name="LuCI.form.SectionValue#formvalue"><a href="LuCI.form.SectionValue.html#formvalue">formvalue</a></li>
  902. <li data-name="LuCI.form.SectionValue#getUIElement"><a href="LuCI.form.SectionValue.html#getUIElement">getUIElement</a></li>
  903. <li data-name="LuCI.form.SectionValue#getValidationError"><a href="LuCI.form.SectionValue.html#getValidationError">getValidationError</a></li>
  904. <li data-name="LuCI.form.SectionValue#isActive"><a href="LuCI.form.SectionValue.html#isActive">isActive</a></li>
  905. <li data-name="LuCI.form.SectionValue#isValid"><a href="LuCI.form.SectionValue.html#isValid">isValid</a></li>
  906. <li data-name="LuCI.form.SectionValue#load"><a href="LuCI.form.SectionValue.html#load">load</a></li>
  907. <li data-name="LuCI.form.SectionValue#parse"><a href="LuCI.form.SectionValue.html#parse">parse</a></li>
  908. <li data-name="LuCI.form.SectionValue#remove"><a href="LuCI.form.SectionValue.html#remove">remove</a></li>
  909. <li data-name="LuCI.form.SectionValue#stripTags"><a href="LuCI.form.SectionValue.html#stripTags">stripTags</a></li>
  910. <li data-name="LuCI.form.SectionValue#textvalue"><a href="LuCI.form.SectionValue.html#textvalue">textvalue</a></li>
  911. <li data-name="LuCI.form.SectionValue#titleFn"><a href="LuCI.form.SectionValue.html#titleFn">titleFn</a></li>
  912. <li data-name="LuCI.form.SectionValue#value"><a href="LuCI.form.SectionValue.html#value">value</a></li>
  913. <li data-name="LuCI.form.SectionValue#write"><a href="LuCI.form.SectionValue.html#write">write</a></li>
  914. </ul>
  915. <ul class="events itemMembers">
  916. </ul>
  917. </li>
  918. <li class="item" data-name="LuCI.form.TableSection">
  919. <span class="title">
  920. <a href="LuCI.form.TableSection.html">LuCI.form.TableSection</a>
  921. </span>
  922. <ul class="members itemMembers">
  923. <span class="subtitle">Members</span>
  924. <li data-name="LuCI.form.TableSection##extedit"><a href="LuCI.form.TableSection.html#extedit">extedit</a></li>
  925. <li data-name="LuCI.form.TableSection##max_cols"><a href="LuCI.form.TableSection.html#max_cols">max_cols</a></li>
  926. <li data-name="LuCI.form.TableSection##modaltitle"><a href="LuCI.form.TableSection.html#modaltitle">modaltitle</a></li>
  927. <li data-name="LuCI.form.TableSection##nodescriptions"><a href="LuCI.form.TableSection.html#nodescriptions">nodescriptions</a></li>
  928. <li data-name="LuCI.form.TableSection##rowcolors"><a href="LuCI.form.TableSection.html#rowcolors">rowcolors</a></li>
  929. <li data-name="LuCI.form.TableSection##sectiontitle"><a href="LuCI.form.TableSection.html#sectiontitle">sectiontitle</a></li>
  930. <li data-name="LuCI.form.TableSection##sortable"><a href="LuCI.form.TableSection.html#sortable">sortable</a></li>
  931. <li data-name="LuCI.form.TableSection#addbtntitle"><a href="LuCI.form.TableSection.html#addbtntitle">addbtntitle</a></li>
  932. <li data-name="LuCI.form.TableSection#addremove"><a href="LuCI.form.TableSection.html#addremove">addremove</a></li>
  933. <li data-name="LuCI.form.TableSection#anonymous"><a href="LuCI.form.TableSection.html#anonymous">anonymous</a></li>
  934. <li data-name="LuCI.form.TableSection#cloneable"><a href="LuCI.form.TableSection.html#cloneable">cloneable</a></li>
  935. <li data-name="LuCI.form.TableSection#parentoption"><a href="LuCI.form.TableSection.html#parentoption">parentoption</a></li>
  936. <li data-name="LuCI.form.TableSection#tabbed"><a href="LuCI.form.TableSection.html#tabbed">tabbed</a></li>
  937. <li data-name="LuCI.form.TableSection#uciconfig"><a href="LuCI.form.TableSection.html#uciconfig">uciconfig</a></li>
  938. </ul>
  939. <ul class="typedefs itemMembers">
  940. </ul>
  941. <ul class="typedefs itemMembers">
  942. </ul>
  943. <ul class="methods itemMembers">
  944. <span class="subtitle">Methods</span>
  945. <li data-name="LuCI.form.TableSection#addModalOptions"><a href="LuCI.form.TableSection.html#addModalOptions">addModalOptions</a></li>
  946. <li data-name="LuCI.form.TableSection#append"><a href="LuCI.form.TableSection.html#append">append</a></li>
  947. <li data-name="LuCI.form.TableSection#cfgvalue"><a href="LuCI.form.TableSection.html#cfgvalue">cfgvalue</a></li>
  948. <li data-name="LuCI.form.TableSection#filter"><a href="LuCI.form.TableSection.html#filter">filter</a></li>
  949. <li data-name="LuCI.form.TableSection#formvalue"><a href="LuCI.form.TableSection.html#formvalue">formvalue</a></li>
  950. <li data-name="LuCI.form.TableSection#getOption"><a href="LuCI.form.TableSection.html#getOption">getOption</a></li>
  951. <li data-name="LuCI.form.TableSection#getUIElement"><a href="LuCI.form.TableSection.html#getUIElement">getUIElement</a></li>
  952. <li data-name="LuCI.form.TableSection#load"><a href="LuCI.form.TableSection.html#load">load</a></li>
  953. <li data-name="LuCI.form.TableSection#option"><a href="LuCI.form.TableSection.html#option">option</a></li>
  954. <li data-name="LuCI.form.TableSection#parse"><a href="LuCI.form.TableSection.html#parse">parse</a></li>
  955. <li data-name="LuCI.form.TableSection#stripTags"><a href="LuCI.form.TableSection.html#stripTags">stripTags</a></li>
  956. <li data-name="LuCI.form.TableSection#tab"><a href="LuCI.form.TableSection.html#tab">tab</a></li>
  957. <li data-name="LuCI.form.TableSection#taboption"><a href="LuCI.form.TableSection.html#taboption">taboption</a></li>
  958. <li data-name="LuCI.form.TableSection#titleFn"><a href="LuCI.form.TableSection.html#titleFn">titleFn</a></li>
  959. </ul>
  960. <ul class="events itemMembers">
  961. </ul>
  962. </li>
  963. <li class="item" data-name="LuCI.form.TextValue">
  964. <span class="title">
  965. <a href="LuCI.form.TextValue.html">LuCI.form.TextValue</a>
  966. </span>
  967. <ul class="members itemMembers">
  968. <span class="subtitle">Members</span>
  969. <li data-name="LuCI.form.TextValue##cols"><a href="LuCI.form.TextValue.html#cols">cols</a></li>
  970. <li data-name="LuCI.form.TextValue##monospace"><a href="LuCI.form.TextValue.html#monospace">monospace</a></li>
  971. <li data-name="LuCI.form.TextValue##rows"><a href="LuCI.form.TextValue.html#rows">rows</a></li>
  972. <li data-name="LuCI.form.TextValue##wrap"><a href="LuCI.form.TextValue.html#wrap">wrap</a></li>
  973. <li data-name="LuCI.form.TextValue#datatype"><a href="LuCI.form.TextValue.html#datatype">datatype</a></li>
  974. <li data-name="LuCI.form.TextValue#default"><a href="LuCI.form.TextValue.html#default">default</a></li>
  975. <li data-name="LuCI.form.TextValue#editable"><a href="LuCI.form.TextValue.html#editable">editable</a></li>
  976. <li data-name="LuCI.form.TextValue#modalonly"><a href="LuCI.form.TextValue.html#modalonly">modalonly</a></li>
  977. <li data-name="LuCI.form.TextValue#onchange"><a href="LuCI.form.TextValue.html#onchange">onchange</a></li>
  978. <li data-name="LuCI.form.TextValue#optional"><a href="LuCI.form.TextValue.html#optional">optional</a></li>
  979. <li data-name="LuCI.form.TextValue#password"><a href="LuCI.form.TextValue.html#password">password</a></li>
  980. <li data-name="LuCI.form.TextValue#placeholder"><a href="LuCI.form.TextValue.html#placeholder">placeholder</a></li>
  981. <li data-name="LuCI.form.TextValue#readonly"><a href="LuCI.form.TextValue.html#readonly">readonly</a></li>
  982. <li data-name="LuCI.form.TextValue#retain"><a href="LuCI.form.TextValue.html#retain">retain</a></li>
  983. <li data-name="LuCI.form.TextValue#rmempty"><a href="LuCI.form.TextValue.html#rmempty">rmempty</a></li>
  984. <li data-name="LuCI.form.TextValue#uciconfig"><a href="LuCI.form.TextValue.html#uciconfig">uciconfig</a></li>
  985. <li data-name="LuCI.form.TextValue#ucioption"><a href="LuCI.form.TextValue.html#ucioption">ucioption</a></li>
  986. <li data-name="LuCI.form.TextValue#ucisection"><a href="LuCI.form.TextValue.html#ucisection">ucisection</a></li>
  987. <li data-name="LuCI.form.TextValue#validate"><a href="LuCI.form.TextValue.html#validate">validate</a></li>
  988. <li data-name="LuCI.form.TextValue#width"><a href="LuCI.form.TextValue.html#width">width</a></li>
  989. </ul>
  990. <ul class="typedefs itemMembers">
  991. </ul>
  992. <ul class="typedefs itemMembers">
  993. </ul>
  994. <ul class="methods itemMembers">
  995. <span class="subtitle">Methods</span>
  996. <li data-name="LuCI.form.TextValue#append"><a href="LuCI.form.TextValue.html#append">append</a></li>
  997. <li data-name="LuCI.form.TextValue#cbid"><a href="LuCI.form.TextValue.html#cbid">cbid</a></li>
  998. <li data-name="LuCI.form.TextValue#cfgvalue"><a href="LuCI.form.TextValue.html#cfgvalue">cfgvalue</a></li>
  999. <li data-name="LuCI.form.TextValue#depends"><a href="LuCI.form.TextValue.html#depends">depends</a></li>
  1000. <li data-name="LuCI.form.TextValue#formvalue"><a href="LuCI.form.TextValue.html#formvalue">formvalue</a></li>
  1001. <li data-name="LuCI.form.TextValue#getUIElement"><a href="LuCI.form.TextValue.html#getUIElement">getUIElement</a></li>
  1002. <li data-name="LuCI.form.TextValue#getValidationError"><a href="LuCI.form.TextValue.html#getValidationError">getValidationError</a></li>
  1003. <li data-name="LuCI.form.TextValue#isActive"><a href="LuCI.form.TextValue.html#isActive">isActive</a></li>
  1004. <li data-name="LuCI.form.TextValue#isValid"><a href="LuCI.form.TextValue.html#isValid">isValid</a></li>
  1005. <li data-name="LuCI.form.TextValue#load"><a href="LuCI.form.TextValue.html#load">load</a></li>
  1006. <li data-name="LuCI.form.TextValue#parse"><a href="LuCI.form.TextValue.html#parse">parse</a></li>
  1007. <li data-name="LuCI.form.TextValue#remove"><a href="LuCI.form.TextValue.html#remove">remove</a></li>
  1008. <li data-name="LuCI.form.TextValue#stripTags"><a href="LuCI.form.TextValue.html#stripTags">stripTags</a></li>
  1009. <li data-name="LuCI.form.TextValue#textvalue"><a href="LuCI.form.TextValue.html#textvalue">textvalue</a></li>
  1010. <li data-name="LuCI.form.TextValue#titleFn"><a href="LuCI.form.TextValue.html#titleFn">titleFn</a></li>
  1011. <li data-name="LuCI.form.TextValue#write"><a href="LuCI.form.TextValue.html#write">write</a></li>
  1012. </ul>
  1013. <ul class="events itemMembers">
  1014. </ul>
  1015. </li>
  1016. <li class="item" data-name="LuCI.form.TypedSection">
  1017. <span class="title">
  1018. <a href="LuCI.form.TypedSection.html">LuCI.form.TypedSection</a>
  1019. </span>
  1020. <ul class="members itemMembers">
  1021. <span class="subtitle">Members</span>
  1022. <li data-name="LuCI.form.TypedSection##addbtntitle"><a href="LuCI.form.TypedSection.html#addbtntitle">addbtntitle</a></li>
  1023. <li data-name="LuCI.form.TypedSection##addremove"><a href="LuCI.form.TypedSection.html#addremove">addremove</a></li>
  1024. <li data-name="LuCI.form.TypedSection##anonymous"><a href="LuCI.form.TypedSection.html#anonymous">anonymous</a></li>
  1025. <li data-name="LuCI.form.TypedSection##cloneable"><a href="LuCI.form.TypedSection.html#cloneable">cloneable</a></li>
  1026. <li data-name="LuCI.form.TypedSection##tabbed"><a href="LuCI.form.TypedSection.html#tabbed">tabbed</a></li>
  1027. <li data-name="LuCI.form.TypedSection##uciconfig"><a href="LuCI.form.TypedSection.html#uciconfig">uciconfig</a></li>
  1028. <li data-name="LuCI.form.TypedSection#parentoption"><a href="LuCI.form.TypedSection.html#parentoption">parentoption</a></li>
  1029. </ul>
  1030. <ul class="typedefs itemMembers">
  1031. </ul>
  1032. <ul class="typedefs itemMembers">
  1033. </ul>
  1034. <ul class="methods itemMembers">
  1035. <span class="subtitle">Methods</span>
  1036. <li data-name="LuCI.form.TypedSection#append"><a href="LuCI.form.TypedSection.html#append">append</a></li>
  1037. <li data-name="LuCI.form.TypedSection#cfgsections"><a href="LuCI.form.TypedSection.html#cfgsections">cfgsections</a></li>
  1038. <li data-name="LuCI.form.TypedSection#cfgvalue"><a href="LuCI.form.TypedSection.html#cfgvalue">cfgvalue</a></li>
  1039. <li data-name="LuCI.form.TypedSection#filter"><a href="LuCI.form.TypedSection.html#filter">filter</a></li>
  1040. <li data-name="LuCI.form.TypedSection#formvalue"><a href="LuCI.form.TypedSection.html#formvalue">formvalue</a></li>
  1041. <li data-name="LuCI.form.TypedSection#getOption"><a href="LuCI.form.TypedSection.html#getOption">getOption</a></li>
  1042. <li data-name="LuCI.form.TypedSection#getUIElement"><a href="LuCI.form.TypedSection.html#getUIElement">getUIElement</a></li>
  1043. <li data-name="LuCI.form.TypedSection#load"><a href="LuCI.form.TypedSection.html#load">load</a></li>
  1044. <li data-name="LuCI.form.TypedSection#option"><a href="LuCI.form.TypedSection.html#option">option</a></li>
  1045. <li data-name="LuCI.form.TypedSection#parse"><a href="LuCI.form.TypedSection.html#parse">parse</a></li>
  1046. <li data-name="LuCI.form.TypedSection#render"><a href="LuCI.form.TypedSection.html#render">render</a></li>
  1047. <li data-name="LuCI.form.TypedSection#stripTags"><a href="LuCI.form.TypedSection.html#stripTags">stripTags</a></li>
  1048. <li data-name="LuCI.form.TypedSection#tab"><a href="LuCI.form.TypedSection.html#tab">tab</a></li>
  1049. <li data-name="LuCI.form.TypedSection#taboption"><a href="LuCI.form.TypedSection.html#taboption">taboption</a></li>
  1050. <li data-name="LuCI.form.TypedSection#titleFn"><a href="LuCI.form.TypedSection.html#titleFn">titleFn</a></li>
  1051. </ul>
  1052. <ul class="events itemMembers">
  1053. </ul>
  1054. </li>
  1055. <li class="item" data-name="LuCI.form.Value">
  1056. <span class="title">
  1057. <a href="LuCI.form.Value.html">LuCI.form.Value</a>
  1058. </span>
  1059. <ul class="members itemMembers">
  1060. <span class="subtitle">Members</span>
  1061. <li data-name="LuCI.form.Value##password"><a href="LuCI.form.Value.html#password">password</a></li>
  1062. <li data-name="LuCI.form.Value##placeholder"><a href="LuCI.form.Value.html#placeholder">placeholder</a></li>
  1063. <li data-name="LuCI.form.Value#datatype"><a href="LuCI.form.Value.html#datatype">datatype</a></li>
  1064. <li data-name="LuCI.form.Value#default"><a href="LuCI.form.Value.html#default">default</a></li>
  1065. <li data-name="LuCI.form.Value#editable"><a href="LuCI.form.Value.html#editable">editable</a></li>
  1066. <li data-name="LuCI.form.Value#modalonly"><a href="LuCI.form.Value.html#modalonly">modalonly</a></li>
  1067. <li data-name="LuCI.form.Value#onchange"><a href="LuCI.form.Value.html#onchange">onchange</a></li>
  1068. <li data-name="LuCI.form.Value#optional"><a href="LuCI.form.Value.html#optional">optional</a></li>
  1069. <li data-name="LuCI.form.Value#readonly"><a href="LuCI.form.Value.html#readonly">readonly</a></li>
  1070. <li data-name="LuCI.form.Value#retain"><a href="LuCI.form.Value.html#retain">retain</a></li>
  1071. <li data-name="LuCI.form.Value#rmempty"><a href="LuCI.form.Value.html#rmempty">rmempty</a></li>
  1072. <li data-name="LuCI.form.Value#uciconfig"><a href="LuCI.form.Value.html#uciconfig">uciconfig</a></li>
  1073. <li data-name="LuCI.form.Value#ucioption"><a href="LuCI.form.Value.html#ucioption">ucioption</a></li>
  1074. <li data-name="LuCI.form.Value#ucisection"><a href="LuCI.form.Value.html#ucisection">ucisection</a></li>
  1075. <li data-name="LuCI.form.Value#validate"><a href="LuCI.form.Value.html#validate">validate</a></li>
  1076. <li data-name="LuCI.form.Value#width"><a href="LuCI.form.Value.html#width">width</a></li>
  1077. </ul>
  1078. <ul class="typedefs itemMembers">
  1079. </ul>
  1080. <ul class="typedefs itemMembers">
  1081. </ul>
  1082. <ul class="methods itemMembers">
  1083. <span class="subtitle">Methods</span>
  1084. <li data-name="LuCI.form.Value#append"><a href="LuCI.form.Value.html#append">append</a></li>
  1085. <li data-name="LuCI.form.Value#cbid"><a href="LuCI.form.Value.html#cbid">cbid</a></li>
  1086. <li data-name="LuCI.form.Value#cfgvalue"><a href="LuCI.form.Value.html#cfgvalue">cfgvalue</a></li>
  1087. <li data-name="LuCI.form.Value#depends"><a href="LuCI.form.Value.html#depends">depends</a></li>
  1088. <li data-name="LuCI.form.Value#formvalue"><a href="LuCI.form.Value.html#formvalue">formvalue</a></li>
  1089. <li data-name="LuCI.form.Value#getUIElement"><a href="LuCI.form.Value.html#getUIElement">getUIElement</a></li>
  1090. <li data-name="LuCI.form.Value#getValidationError"><a href="LuCI.form.Value.html#getValidationError">getValidationError</a></li>
  1091. <li data-name="LuCI.form.Value#isActive"><a href="LuCI.form.Value.html#isActive">isActive</a></li>
  1092. <li data-name="LuCI.form.Value#isValid"><a href="LuCI.form.Value.html#isValid">isValid</a></li>
  1093. <li data-name="LuCI.form.Value#load"><a href="LuCI.form.Value.html#load">load</a></li>
  1094. <li data-name="LuCI.form.Value#parse"><a href="LuCI.form.Value.html#parse">parse</a></li>
  1095. <li data-name="LuCI.form.Value#remove"><a href="LuCI.form.Value.html#remove">remove</a></li>
  1096. <li data-name="LuCI.form.Value#render"><a href="LuCI.form.Value.html#render">render</a></li>
  1097. <li data-name="LuCI.form.Value#stripTags"><a href="LuCI.form.Value.html#stripTags">stripTags</a></li>
  1098. <li data-name="LuCI.form.Value#textvalue"><a href="LuCI.form.Value.html#textvalue">textvalue</a></li>
  1099. <li data-name="LuCI.form.Value#titleFn"><a href="LuCI.form.Value.html#titleFn">titleFn</a></li>
  1100. <li data-name="LuCI.form.Value#value"><a href="LuCI.form.Value.html#value">value</a></li>
  1101. <li data-name="LuCI.form.Value#write"><a href="LuCI.form.Value.html#write">write</a></li>
  1102. </ul>
  1103. <ul class="events itemMembers">
  1104. </ul>
  1105. </li>
  1106. <li class="item" data-name="LuCI.fs">
  1107. <span class="title">
  1108. <a href="LuCI.fs.html">LuCI.fs</a>
  1109. </span>
  1110. <ul class="members itemMembers">
  1111. </ul>
  1112. <ul class="typedefs itemMembers">
  1113. <span class="subtitle">Typedefs</span>
  1114. <li data-name="LuCI.fs.FileExecResult"><a href="LuCI.fs.html#.FileExecResult">FileExecResult</a></li>
  1115. <li data-name="LuCI.fs.FileStatEntry"><a href="LuCI.fs.html#.FileStatEntry">FileStatEntry</a></li>
  1116. </ul>
  1117. <ul class="typedefs itemMembers">
  1118. </ul>
  1119. <ul class="methods itemMembers">
  1120. <span class="subtitle">Methods</span>
  1121. <li data-name="LuCI.fs#exec"><a href="LuCI.fs.html#exec">exec</a></li>
  1122. <li data-name="LuCI.fs#exec_direct"><a href="LuCI.fs.html#exec_direct">exec_direct</a></li>
  1123. <li data-name="LuCI.fs#lines"><a href="LuCI.fs.html#lines">lines</a></li>
  1124. <li data-name="LuCI.fs#list"><a href="LuCI.fs.html#list">list</a></li>
  1125. <li data-name="LuCI.fs#read"><a href="LuCI.fs.html#read">read</a></li>
  1126. <li data-name="LuCI.fs#read_direct"><a href="LuCI.fs.html#read_direct">read_direct</a></li>
  1127. <li data-name="LuCI.fs#remove"><a href="LuCI.fs.html#remove">remove</a></li>
  1128. <li data-name="LuCI.fs#stat"><a href="LuCI.fs.html#stat">stat</a></li>
  1129. <li data-name="LuCI.fs#trimmed"><a href="LuCI.fs.html#trimmed">trimmed</a></li>
  1130. <li data-name="LuCI.fs#write"><a href="LuCI.fs.html#write">write</a></li>
  1131. </ul>
  1132. <ul class="events itemMembers">
  1133. </ul>
  1134. </li>
  1135. <li class="item" data-name="LuCI.headers">
  1136. <span class="title">
  1137. <a href="LuCI.headers.html">LuCI.headers</a>
  1138. </span>
  1139. <ul class="members itemMembers">
  1140. </ul>
  1141. <ul class="typedefs itemMembers">
  1142. </ul>
  1143. <ul class="typedefs itemMembers">
  1144. </ul>
  1145. <ul class="methods itemMembers">
  1146. <span class="subtitle">Methods</span>
  1147. <li data-name="LuCI.headers#get"><a href="LuCI.headers.html#get">get</a></li>
  1148. <li data-name="LuCI.headers#has"><a href="LuCI.headers.html#has">has</a></li>
  1149. </ul>
  1150. <ul class="events itemMembers">
  1151. </ul>
  1152. </li>
  1153. <li class="item" data-name="LuCI.network">
  1154. <span class="title">
  1155. <a href="LuCI.network.html">LuCI.network</a>
  1156. </span>
  1157. <ul class="members itemMembers">
  1158. </ul>
  1159. <ul class="typedefs itemMembers">
  1160. <span class="subtitle">Typedefs</span>
  1161. <li data-name="LuCI.network.SwitchTopology"><a href="LuCI.network.html#.SwitchTopology">SwitchTopology</a></li>
  1162. <li data-name="LuCI.network.WifiEncryption"><a href="LuCI.network.html#.WifiEncryption">WifiEncryption</a></li>
  1163. <li data-name="LuCI.network.WifiPeerEntry"><a href="LuCI.network.html#.WifiPeerEntry">WifiPeerEntry</a></li>
  1164. <li data-name="LuCI.network.WifiRateEntry"><a href="LuCI.network.html#.WifiRateEntry">WifiRateEntry</a></li>
  1165. <li data-name="LuCI.network.WifiScanResult"><a href="LuCI.network.html#.WifiScanResult">WifiScanResult</a></li>
  1166. </ul>
  1167. <ul class="typedefs itemMembers">
  1168. </ul>
  1169. <ul class="methods itemMembers">
  1170. <span class="subtitle">Methods</span>
  1171. <li data-name="LuCI.network#addNetwork"><a href="LuCI.network.html#addNetwork">addNetwork</a></li>
  1172. <li data-name="LuCI.network#addWifiNetwork"><a href="LuCI.network.html#addWifiNetwork">addWifiNetwork</a></li>
  1173. <li data-name="LuCI.network#deleteNetwork"><a href="LuCI.network.html#deleteNetwork">deleteNetwork</a></li>
  1174. <li data-name="LuCI.network#deleteWifiNetwork"><a href="LuCI.network.html#deleteWifiNetwork">deleteWifiNetwork</a></li>
  1175. <li data-name="LuCI.network#flushCache"><a href="LuCI.network.html#flushCache">flushCache</a></li>
  1176. <li data-name="LuCI.network#formatWifiEncryption"><a href="LuCI.network.html#formatWifiEncryption">formatWifiEncryption</a></li>
  1177. <li data-name="LuCI.network#getDevice"><a href="LuCI.network.html#getDevice">getDevice</a></li>
  1178. <li data-name="LuCI.network#getDevices"><a href="LuCI.network.html#getDevices">getDevices</a></li>
  1179. <li data-name="LuCI.network#getDSLModemType"><a href="LuCI.network.html#getDSLModemType">getDSLModemType</a></li>
  1180. <li data-name="LuCI.network#getHostHints"><a href="LuCI.network.html#getHostHints">getHostHints</a></li>
  1181. <li data-name="LuCI.network#getIfnameOf"><a href="LuCI.network.html#getIfnameOf">getIfnameOf</a></li>
  1182. <li data-name="LuCI.network#getNetwork"><a href="LuCI.network.html#getNetwork">getNetwork</a></li>
  1183. <li data-name="LuCI.network#getNetworks"><a href="LuCI.network.html#getNetworks">getNetworks</a></li>
  1184. <li data-name="LuCI.network#getProtocol"><a href="LuCI.network.html#getProtocol">getProtocol</a></li>
  1185. <li data-name="LuCI.network#getProtocols"><a href="LuCI.network.html#getProtocols">getProtocols</a></li>
  1186. <li data-name="LuCI.network#getSwitchTopologies"><a href="LuCI.network.html#getSwitchTopologies">getSwitchTopologies</a></li>
  1187. <li data-name="LuCI.network#getWAN6Networks"><a href="LuCI.network.html#getWAN6Networks">getWAN6Networks</a></li>
  1188. <li data-name="LuCI.network#getWANNetworks"><a href="LuCI.network.html#getWANNetworks">getWANNetworks</a></li>
  1189. <li data-name="LuCI.network#getWifiDevice"><a href="LuCI.network.html#getWifiDevice">getWifiDevice</a></li>
  1190. <li data-name="LuCI.network#getWifiDevices"><a href="LuCI.network.html#getWifiDevices">getWifiDevices</a></li>
  1191. <li data-name="LuCI.network#getWifiNetwork"><a href="LuCI.network.html#getWifiNetwork">getWifiNetwork</a></li>
  1192. <li data-name="LuCI.network#getWifiNetworks"><a href="LuCI.network.html#getWifiNetworks">getWifiNetworks</a></li>
  1193. <li data-name="LuCI.network#isIgnoredDevice"><a href="LuCI.network.html#isIgnoredDevice">isIgnoredDevice</a></li>
  1194. <li data-name="LuCI.network#maskToPrefix"><a href="LuCI.network.html#maskToPrefix">maskToPrefix</a></li>
  1195. <li data-name="LuCI.network#prefixToMask"><a href="LuCI.network.html#prefixToMask">prefixToMask</a></li>
  1196. <li data-name="LuCI.network#registerErrorCode"><a href="LuCI.network.html#registerErrorCode">registerErrorCode</a></li>
  1197. <li data-name="LuCI.network#registerPatternVirtual"><a href="LuCI.network.html#registerPatternVirtual">registerPatternVirtual</a></li>
  1198. <li data-name="LuCI.network#registerProtocol"><a href="LuCI.network.html#registerProtocol">registerProtocol</a></li>
  1199. <li data-name="LuCI.network#renameNetwork"><a href="LuCI.network.html#renameNetwork">renameNetwork</a></li>
  1200. </ul>
  1201. <ul class="events itemMembers">
  1202. </ul>
  1203. </li>
  1204. <li class="item" data-name="LuCI.network.Device">
  1205. <span class="title">
  1206. <a href="LuCI.network.Device.html">LuCI.network.Device</a>
  1207. </span>
  1208. <ul class="members itemMembers">
  1209. </ul>
  1210. <ul class="typedefs itemMembers">
  1211. </ul>
  1212. <ul class="typedefs itemMembers">
  1213. </ul>
  1214. <ul class="methods itemMembers">
  1215. <span class="subtitle">Methods</span>
  1216. <li data-name="LuCI.network.Device#getBridgeID"><a href="LuCI.network.Device.html#getBridgeID">getBridgeID</a></li>
  1217. <li data-name="LuCI.network.Device#getBridgeSTP"><a href="LuCI.network.Device.html#getBridgeSTP">getBridgeSTP</a></li>
  1218. <li data-name="LuCI.network.Device#getCarrier"><a href="LuCI.network.Device.html#getCarrier">getCarrier</a></li>
  1219. <li data-name="LuCI.network.Device#getDuplex"><a href="LuCI.network.Device.html#getDuplex">getDuplex</a></li>
  1220. <li data-name="LuCI.network.Device#getI18n"><a href="LuCI.network.Device.html#getI18n">getI18n</a></li>
  1221. <li data-name="LuCI.network.Device#getIP6Addrs"><a href="LuCI.network.Device.html#getIP6Addrs">getIP6Addrs</a></li>
  1222. <li data-name="LuCI.network.Device#getIPAddrs"><a href="LuCI.network.Device.html#getIPAddrs">getIPAddrs</a></li>
  1223. <li data-name="LuCI.network.Device#getMAC"><a href="LuCI.network.Device.html#getMAC">getMAC</a></li>
  1224. <li data-name="LuCI.network.Device#getMTU"><a href="LuCI.network.Device.html#getMTU">getMTU</a></li>
  1225. <li data-name="LuCI.network.Device#getName"><a href="LuCI.network.Device.html#getName">getName</a></li>
  1226. <li data-name="LuCI.network.Device#getNetwork"><a href="LuCI.network.Device.html#getNetwork">getNetwork</a></li>
  1227. <li data-name="LuCI.network.Device#getNetworks"><a href="LuCI.network.Device.html#getNetworks">getNetworks</a></li>
  1228. <li data-name="LuCI.network.Device#getParent"><a href="LuCI.network.Device.html#getParent">getParent</a></li>
  1229. <li data-name="LuCI.network.Device#getPorts"><a href="LuCI.network.Device.html#getPorts">getPorts</a></li>
  1230. <li data-name="LuCI.network.Device#getRXBytes"><a href="LuCI.network.Device.html#getRXBytes">getRXBytes</a></li>
  1231. <li data-name="LuCI.network.Device#getRXPackets"><a href="LuCI.network.Device.html#getRXPackets">getRXPackets</a></li>
  1232. <li data-name="LuCI.network.Device#getShortName"><a href="LuCI.network.Device.html#getShortName">getShortName</a></li>
  1233. <li data-name="LuCI.network.Device#getSpeed"><a href="LuCI.network.Device.html#getSpeed">getSpeed</a></li>
  1234. <li data-name="LuCI.network.Device#getTXBytes"><a href="LuCI.network.Device.html#getTXBytes">getTXBytes</a></li>
  1235. <li data-name="LuCI.network.Device#getTXPackets"><a href="LuCI.network.Device.html#getTXPackets">getTXPackets</a></li>
  1236. <li data-name="LuCI.network.Device#getType"><a href="LuCI.network.Device.html#getType">getType</a></li>
  1237. <li data-name="LuCI.network.Device#getTypeI18n"><a href="LuCI.network.Device.html#getTypeI18n">getTypeI18n</a></li>
  1238. <li data-name="LuCI.network.Device#getWifiNetwork"><a href="LuCI.network.Device.html#getWifiNetwork">getWifiNetwork</a></li>
  1239. <li data-name="LuCI.network.Device#isBridge"><a href="LuCI.network.Device.html#isBridge">isBridge</a></li>
  1240. <li data-name="LuCI.network.Device#isBridgePort"><a href="LuCI.network.Device.html#isBridgePort">isBridgePort</a></li>
  1241. <li data-name="LuCI.network.Device#isUp"><a href="LuCI.network.Device.html#isUp">isUp</a></li>
  1242. </ul>
  1243. <ul class="events itemMembers">
  1244. </ul>
  1245. </li>
  1246. <li class="item" data-name="LuCI.network.Hosts">
  1247. <span class="title">
  1248. <a href="LuCI.network.Hosts.html">LuCI.network.Hosts</a>
  1249. </span>
  1250. <ul class="members itemMembers">
  1251. </ul>
  1252. <ul class="typedefs itemMembers">
  1253. </ul>
  1254. <ul class="typedefs itemMembers">
  1255. </ul>
  1256. <ul class="methods itemMembers">
  1257. <span class="subtitle">Methods</span>
  1258. <li data-name="LuCI.network.Hosts#getHostnameByIP6Addr"><a href="LuCI.network.Hosts.html#getHostnameByIP6Addr">getHostnameByIP6Addr</a></li>
  1259. <li data-name="LuCI.network.Hosts#getHostnameByIPAddr"><a href="LuCI.network.Hosts.html#getHostnameByIPAddr">getHostnameByIPAddr</a></li>
  1260. <li data-name="LuCI.network.Hosts#getHostnameByMACAddr"><a href="LuCI.network.Hosts.html#getHostnameByMACAddr">getHostnameByMACAddr</a></li>
  1261. <li data-name="LuCI.network.Hosts#getIP6AddrByMACAddr"><a href="LuCI.network.Hosts.html#getIP6AddrByMACAddr">getIP6AddrByMACAddr</a></li>
  1262. <li data-name="LuCI.network.Hosts#getIPAddrByMACAddr"><a href="LuCI.network.Hosts.html#getIPAddrByMACAddr">getIPAddrByMACAddr</a></li>
  1263. <li data-name="LuCI.network.Hosts#getMACAddrByIP6Addr"><a href="LuCI.network.Hosts.html#getMACAddrByIP6Addr">getMACAddrByIP6Addr</a></li>
  1264. <li data-name="LuCI.network.Hosts#getMACAddrByIPAddr"><a href="LuCI.network.Hosts.html#getMACAddrByIPAddr">getMACAddrByIPAddr</a></li>
  1265. <li data-name="LuCI.network.Hosts#getMACHints"><a href="LuCI.network.Hosts.html#getMACHints">getMACHints</a></li>
  1266. </ul>
  1267. <ul class="events itemMembers">
  1268. </ul>
  1269. </li>
  1270. <li class="item" data-name="LuCI.network.Protocol">
  1271. <span class="title">
  1272. <a href="LuCI.network.Protocol.html">LuCI.network.Protocol</a>
  1273. </span>
  1274. <ul class="members itemMembers">
  1275. </ul>
  1276. <ul class="typedefs itemMembers">
  1277. </ul>
  1278. <ul class="typedefs itemMembers">
  1279. </ul>
  1280. <ul class="methods itemMembers">
  1281. <span class="subtitle">Methods</span>
  1282. <li data-name="LuCI.network.Protocol#addDevice"><a href="LuCI.network.Protocol.html#addDevice">addDevice</a></li>
  1283. <li data-name="LuCI.network.Protocol#containsDevice"><a href="LuCI.network.Protocol.html#containsDevice">containsDevice</a></li>
  1284. <li data-name="LuCI.network.Protocol#deleteConfiguration"><a href="LuCI.network.Protocol.html#deleteConfiguration">deleteConfiguration</a></li>
  1285. <li data-name="LuCI.network.Protocol#deleteDevice"><a href="LuCI.network.Protocol.html#deleteDevice">deleteDevice</a></li>
  1286. <li data-name="LuCI.network.Protocol#get"><a href="LuCI.network.Protocol.html#get">get</a></li>
  1287. <li data-name="LuCI.network.Protocol#getDevice"><a href="LuCI.network.Protocol.html#getDevice">getDevice</a></li>
  1288. <li data-name="LuCI.network.Protocol#getDevices"><a href="LuCI.network.Protocol.html#getDevices">getDevices</a></li>
  1289. <li data-name="LuCI.network.Protocol#getDNS6Addrs"><a href="LuCI.network.Protocol.html#getDNS6Addrs">getDNS6Addrs</a></li>
  1290. <li data-name="LuCI.network.Protocol#getDNSAddrs"><a href="LuCI.network.Protocol.html#getDNSAddrs">getDNSAddrs</a></li>
  1291. <li data-name="LuCI.network.Protocol#getErrors"><a href="LuCI.network.Protocol.html#getErrors">getErrors</a></li>
  1292. <li data-name="LuCI.network.Protocol#getExpiry"><a href="LuCI.network.Protocol.html#getExpiry">getExpiry</a></li>
  1293. <li data-name="LuCI.network.Protocol#getGateway6Addr"><a href="LuCI.network.Protocol.html#getGateway6Addr">getGateway6Addr</a></li>
  1294. <li data-name="LuCI.network.Protocol#getGatewayAddr"><a href="LuCI.network.Protocol.html#getGatewayAddr">getGatewayAddr</a></li>
  1295. <li data-name="LuCI.network.Protocol#getI18n"><a href="LuCI.network.Protocol.html#getI18n">getI18n</a></li>
  1296. <li data-name="LuCI.network.Protocol#getIfname"><a href="LuCI.network.Protocol.html#getIfname">getIfname</a></li>
  1297. <li data-name="LuCI.network.Protocol#getIP6Addr"><a href="LuCI.network.Protocol.html#getIP6Addr">getIP6Addr</a></li>
  1298. <li data-name="LuCI.network.Protocol#getIP6Addrs"><a href="LuCI.network.Protocol.html#getIP6Addrs">getIP6Addrs</a></li>
  1299. <li data-name="LuCI.network.Protocol#getIP6Prefix"><a href="LuCI.network.Protocol.html#getIP6Prefix">getIP6Prefix</a></li>
  1300. <li data-name="LuCI.network.Protocol#getIP6Prefixes"><a href="LuCI.network.Protocol.html#getIP6Prefixes">getIP6Prefixes</a></li>
  1301. <li data-name="LuCI.network.Protocol#getIPAddr"><a href="LuCI.network.Protocol.html#getIPAddr">getIPAddr</a></li>
  1302. <li data-name="LuCI.network.Protocol#getIPAddrs"><a href="LuCI.network.Protocol.html#getIPAddrs">getIPAddrs</a></li>
  1303. <li data-name="LuCI.network.Protocol#getL2Device"><a href="LuCI.network.Protocol.html#getL2Device">getL2Device</a></li>
  1304. <li data-name="LuCI.network.Protocol#getL3Device"><a href="LuCI.network.Protocol.html#getL3Device">getL3Device</a></li>
  1305. <li data-name="LuCI.network.Protocol#getMetric"><a href="LuCI.network.Protocol.html#getMetric">getMetric</a></li>
  1306. <li data-name="LuCI.network.Protocol#getName"><a href="LuCI.network.Protocol.html#getName">getName</a></li>
  1307. <li data-name="LuCI.network.Protocol#getNetmask"><a href="LuCI.network.Protocol.html#getNetmask">getNetmask</a></li>
  1308. <li data-name="LuCI.network.Protocol#getOpkgPackage"><a href="LuCI.network.Protocol.html#getOpkgPackage">getOpkgPackage</a></li>
  1309. <li data-name="LuCI.network.Protocol#getProtocol"><a href="LuCI.network.Protocol.html#getProtocol">getProtocol</a></li>
  1310. <li data-name="LuCI.network.Protocol#getType"><a href="LuCI.network.Protocol.html#getType">getType</a></li>
  1311. <li data-name="LuCI.network.Protocol#getUptime"><a href="LuCI.network.Protocol.html#getUptime">getUptime</a></li>
  1312. <li data-name="LuCI.network.Protocol#getZoneName"><a href="LuCI.network.Protocol.html#getZoneName">getZoneName</a></li>
  1313. <li data-name="LuCI.network.Protocol#isAlias"><a href="LuCI.network.Protocol.html#isAlias">isAlias</a></li>
  1314. <li data-name="LuCI.network.Protocol#isBridge"><a href="LuCI.network.Protocol.html#isBridge">isBridge</a></li>
  1315. <li data-name="LuCI.network.Protocol#isCreateable"><a href="LuCI.network.Protocol.html#isCreateable">isCreateable</a></li>
  1316. <li data-name="LuCI.network.Protocol#isDynamic"><a href="LuCI.network.Protocol.html#isDynamic">isDynamic</a></li>
  1317. <li data-name="LuCI.network.Protocol#isEmpty"><a href="LuCI.network.Protocol.html#isEmpty">isEmpty</a></li>
  1318. <li data-name="LuCI.network.Protocol#isFloating"><a href="LuCI.network.Protocol.html#isFloating">isFloating</a></li>
  1319. <li data-name="LuCI.network.Protocol#isInstalled"><a href="LuCI.network.Protocol.html#isInstalled">isInstalled</a></li>
  1320. <li data-name="LuCI.network.Protocol#isUp"><a href="LuCI.network.Protocol.html#isUp">isUp</a></li>
  1321. <li data-name="LuCI.network.Protocol#isVirtual"><a href="LuCI.network.Protocol.html#isVirtual">isVirtual</a></li>
  1322. <li data-name="LuCI.network.Protocol#set"><a href="LuCI.network.Protocol.html#set">set</a></li>
  1323. </ul>
  1324. <ul class="events itemMembers">
  1325. </ul>
  1326. </li>
  1327. <li class="item" data-name="LuCI.network.WifiDevice">
  1328. <span class="title">
  1329. <a href="LuCI.network.WifiDevice.html">LuCI.network.WifiDevice</a>
  1330. </span>
  1331. <ul class="members itemMembers">
  1332. </ul>
  1333. <ul class="typedefs itemMembers">
  1334. </ul>
  1335. <ul class="typedefs itemMembers">
  1336. </ul>
  1337. <ul class="methods itemMembers">
  1338. <span class="subtitle">Methods</span>
  1339. <li data-name="LuCI.network.WifiDevice#addWifiNetwork"><a href="LuCI.network.WifiDevice.html#addWifiNetwork">addWifiNetwork</a></li>
  1340. <li data-name="LuCI.network.WifiDevice#deleteWifiNetwork"><a href="LuCI.network.WifiDevice.html#deleteWifiNetwork">deleteWifiNetwork</a></li>
  1341. <li data-name="LuCI.network.WifiDevice#get"><a href="LuCI.network.WifiDevice.html#get">get</a></li>
  1342. <li data-name="LuCI.network.WifiDevice#getHTModes"><a href="LuCI.network.WifiDevice.html#getHTModes">getHTModes</a></li>
  1343. <li data-name="LuCI.network.WifiDevice#getHWModes"><a href="LuCI.network.WifiDevice.html#getHWModes">getHWModes</a></li>
  1344. <li data-name="LuCI.network.WifiDevice#getI18n"><a href="LuCI.network.WifiDevice.html#getI18n">getI18n</a></li>
  1345. <li data-name="LuCI.network.WifiDevice#getName"><a href="LuCI.network.WifiDevice.html#getName">getName</a></li>
  1346. <li data-name="LuCI.network.WifiDevice#getScanList"><a href="LuCI.network.WifiDevice.html#getScanList">getScanList</a></li>
  1347. <li data-name="LuCI.network.WifiDevice#getWifiNetwork"><a href="LuCI.network.WifiDevice.html#getWifiNetwork">getWifiNetwork</a></li>
  1348. <li data-name="LuCI.network.WifiDevice#getWifiNetworks"><a href="LuCI.network.WifiDevice.html#getWifiNetworks">getWifiNetworks</a></li>
  1349. <li data-name="LuCI.network.WifiDevice#isDisabled"><a href="LuCI.network.WifiDevice.html#isDisabled">isDisabled</a></li>
  1350. <li data-name="LuCI.network.WifiDevice#isUp"><a href="LuCI.network.WifiDevice.html#isUp">isUp</a></li>
  1351. <li data-name="LuCI.network.WifiDevice#set"><a href="LuCI.network.WifiDevice.html#set">set</a></li>
  1352. </ul>
  1353. <ul class="events itemMembers">
  1354. </ul>
  1355. </li>
  1356. <li class="item" data-name="LuCI.network.WifiNetwork">
  1357. <span class="title">
  1358. <a href="LuCI.network.WifiNetwork.html">LuCI.network.WifiNetwork</a>
  1359. </span>
  1360. <ul class="members itemMembers">
  1361. </ul>
  1362. <ul class="typedefs itemMembers">
  1363. </ul>
  1364. <ul class="typedefs itemMembers">
  1365. </ul>
  1366. <ul class="methods itemMembers">
  1367. <span class="subtitle">Methods</span>
  1368. <li data-name="LuCI.network.WifiNetwork#disconnectClient"><a href="LuCI.network.WifiNetwork.html#disconnectClient">disconnectClient</a></li>
  1369. <li data-name="LuCI.network.WifiNetwork#get"><a href="LuCI.network.WifiNetwork.html#get">get</a></li>
  1370. <li data-name="LuCI.network.WifiNetwork#getActiveBSSID"><a href="LuCI.network.WifiNetwork.html#getActiveBSSID">getActiveBSSID</a></li>
  1371. <li data-name="LuCI.network.WifiNetwork#getActiveEncryption"><a href="LuCI.network.WifiNetwork.html#getActiveEncryption">getActiveEncryption</a></li>
  1372. <li data-name="LuCI.network.WifiNetwork#getActiveMode"><a href="LuCI.network.WifiNetwork.html#getActiveMode">getActiveMode</a></li>
  1373. <li data-name="LuCI.network.WifiNetwork#getActiveModeI18n"><a href="LuCI.network.WifiNetwork.html#getActiveModeI18n">getActiveModeI18n</a></li>
  1374. <li data-name="LuCI.network.WifiNetwork#getActiveSSID"><a href="LuCI.network.WifiNetwork.html#getActiveSSID">getActiveSSID</a></li>
  1375. <li data-name="LuCI.network.WifiNetwork#getAssocList"><a href="LuCI.network.WifiNetwork.html#getAssocList">getAssocList</a></li>
  1376. <li data-name="LuCI.network.WifiNetwork#getBitRate"><a href="LuCI.network.WifiNetwork.html#getBitRate">getBitRate</a></li>
  1377. <li data-name="LuCI.network.WifiNetwork#getBSSID"><a href="LuCI.network.WifiNetwork.html#getBSSID">getBSSID</a></li>
  1378. <li data-name="LuCI.network.WifiNetwork#getChannel"><a href="LuCI.network.WifiNetwork.html#getChannel">getChannel</a></li>
  1379. <li data-name="LuCI.network.WifiNetwork#getCountryCode"><a href="LuCI.network.WifiNetwork.html#getCountryCode">getCountryCode</a></li>
  1380. <li data-name="LuCI.network.WifiNetwork#getDevice"><a href="LuCI.network.WifiNetwork.html#getDevice">getDevice</a></li>
  1381. <li data-name="LuCI.network.WifiNetwork#getFrequency"><a href="LuCI.network.WifiNetwork.html#getFrequency">getFrequency</a></li>
  1382. <li data-name="LuCI.network.WifiNetwork#getI18n"><a href="LuCI.network.WifiNetwork.html#getI18n">getI18n</a></li>
  1383. <li data-name="LuCI.network.WifiNetwork#getID"><a href="LuCI.network.WifiNetwork.html#getID">getID</a></li>
  1384. <li data-name="LuCI.network.WifiNetwork#getIfname"><a href="LuCI.network.WifiNetwork.html#getIfname">getIfname</a></li>
  1385. <li data-name="LuCI.network.WifiNetwork#getMeshID"><a href="LuCI.network.WifiNetwork.html#getMeshID">getMeshID</a></li>
  1386. <li data-name="LuCI.network.WifiNetwork#getMode"><a href="LuCI.network.WifiNetwork.html#getMode">getMode</a></li>
  1387. <li data-name="LuCI.network.WifiNetwork#getName"><a href="LuCI.network.WifiNetwork.html#getName">getName</a></li>
  1388. <li data-name="LuCI.network.WifiNetwork#getNetwork"><a href="LuCI.network.WifiNetwork.html#getNetwork">getNetwork</a></li>
  1389. <li data-name="LuCI.network.WifiNetwork#getNetworkNames"><a href="LuCI.network.WifiNetwork.html#getNetworkNames">getNetworkNames</a></li>
  1390. <li data-name="LuCI.network.WifiNetwork#getNetworks"><a href="LuCI.network.WifiNetwork.html#getNetworks">getNetworks</a></li>
  1391. <li data-name="LuCI.network.WifiNetwork#getNoise"><a href="LuCI.network.WifiNetwork.html#getNoise">getNoise</a></li>
  1392. <li data-name="LuCI.network.WifiNetwork#getShortName"><a href="LuCI.network.WifiNetwork.html#getShortName">getShortName</a></li>
  1393. <li data-name="LuCI.network.WifiNetwork#getSignal"><a href="LuCI.network.WifiNetwork.html#getSignal">getSignal</a></li>
  1394. <li data-name="LuCI.network.WifiNetwork#getSignalLevel"><a href="LuCI.network.WifiNetwork.html#getSignalLevel">getSignalLevel</a></li>
  1395. <li data-name="LuCI.network.WifiNetwork#getSignalPercent"><a href="LuCI.network.WifiNetwork.html#getSignalPercent">getSignalPercent</a></li>
  1396. <li data-name="LuCI.network.WifiNetwork#getSSID"><a href="LuCI.network.WifiNetwork.html#getSSID">getSSID</a></li>
  1397. <li data-name="LuCI.network.WifiNetwork#getTXPower"><a href="LuCI.network.WifiNetwork.html#getTXPower">getTXPower</a></li>
  1398. <li data-name="LuCI.network.WifiNetwork#getTXPowerOffset"><a href="LuCI.network.WifiNetwork.html#getTXPowerOffset">getTXPowerOffset</a></li>
  1399. <li data-name="LuCI.network.WifiNetwork#getVlanIfnames"><a href="LuCI.network.WifiNetwork.html#getVlanIfnames">getVlanIfnames</a></li>
  1400. <li data-name="LuCI.network.WifiNetwork#getWifiDevice"><a href="LuCI.network.WifiNetwork.html#getWifiDevice">getWifiDevice</a></li>
  1401. <li data-name="LuCI.network.WifiNetwork#getWifiDeviceName"><a href="LuCI.network.WifiNetwork.html#getWifiDeviceName">getWifiDeviceName</a></li>
  1402. <li data-name="LuCI.network.WifiNetwork#isClientDisconnectSupported"><a href="LuCI.network.WifiNetwork.html#isClientDisconnectSupported">isClientDisconnectSupported</a></li>
  1403. <li data-name="LuCI.network.WifiNetwork#isDisabled"><a href="LuCI.network.WifiNetwork.html#isDisabled">isDisabled</a></li>
  1404. <li data-name="LuCI.network.WifiNetwork#isUp"><a href="LuCI.network.WifiNetwork.html#isUp">isUp</a></li>
  1405. <li data-name="LuCI.network.WifiNetwork#set"><a href="LuCI.network.WifiNetwork.html#set">set</a></li>
  1406. </ul>
  1407. <ul class="events itemMembers">
  1408. </ul>
  1409. </li>
  1410. <li class="item" data-name="LuCI.poll">
  1411. <span class="title">
  1412. <a href="LuCI.poll.html">LuCI.poll</a>
  1413. </span>
  1414. <ul class="members itemMembers">
  1415. </ul>
  1416. <ul class="typedefs itemMembers">
  1417. </ul>
  1418. <ul class="typedefs itemMembers">
  1419. </ul>
  1420. <ul class="methods itemMembers">
  1421. <span class="subtitle">Methods</span>
  1422. <li data-name="LuCI.poll#active"><a href="LuCI.poll.html#active">active</a></li>
  1423. <li data-name="LuCI.poll#add"><a href="LuCI.poll.html#add">add</a></li>
  1424. <li data-name="LuCI.poll#remove"><a href="LuCI.poll.html#remove">remove</a></li>
  1425. <li data-name="LuCI.poll#start"><a href="LuCI.poll.html#start">start</a></li>
  1426. <li data-name="LuCI.poll#stop"><a href="LuCI.poll.html#stop">stop</a></li>
  1427. </ul>
  1428. <ul class="events itemMembers">
  1429. </ul>
  1430. </li>
  1431. <li class="item" data-name="LuCI.request">
  1432. <span class="title">
  1433. <a href="LuCI.request.html">LuCI.request</a>
  1434. </span>
  1435. <ul class="members itemMembers">
  1436. </ul>
  1437. <ul class="typedefs itemMembers">
  1438. <span class="subtitle">Typedefs</span>
  1439. <li data-name="LuCI.request.interceptorFn"><a href="LuCI.request.html#.interceptorFn">interceptorFn</a></li>
  1440. <li data-name="LuCI.request.RequestOptions"><a href="LuCI.request.html#.RequestOptions">RequestOptions</a></li>
  1441. </ul>
  1442. <ul class="typedefs itemMembers">
  1443. </ul>
  1444. <ul class="methods itemMembers">
  1445. <span class="subtitle">Methods</span>
  1446. <li data-name="LuCI.request#addInterceptor"><a href="LuCI.request.html#addInterceptor">addInterceptor</a></li>
  1447. <li data-name="LuCI.request#expandURL"><a href="LuCI.request.html#expandURL">expandURL</a></li>
  1448. <li data-name="LuCI.request#get"><a href="LuCI.request.html#get">get</a></li>
  1449. <li data-name="LuCI.request#post"><a href="LuCI.request.html#post">post</a></li>
  1450. <li data-name="LuCI.request#removeInterceptor"><a href="LuCI.request.html#removeInterceptor">removeInterceptor</a></li>
  1451. <li data-name="LuCI.request#request"><a href="LuCI.request.html#request">request</a></li>
  1452. </ul>
  1453. <ul class="events itemMembers">
  1454. </ul>
  1455. </li>
  1456. <li class="item" data-name="LuCI.request.poll">
  1457. <span class="title">
  1458. <a href="LuCI.request.poll.html">LuCI.request.poll</a>
  1459. </span>
  1460. <ul class="members itemMembers">
  1461. </ul>
  1462. <ul class="typedefs itemMembers">
  1463. <span class="subtitle">Typedefs</span>
  1464. <li data-name="LuCI.request.poll~callbackFn"><a href="LuCI.request.poll.html#~callbackFn">callbackFn</a></li>
  1465. </ul>
  1466. <ul class="typedefs itemMembers">
  1467. </ul>
  1468. <ul class="methods itemMembers">
  1469. <span class="subtitle">Methods</span>
  1470. <li data-name="LuCI.request.poll#active"><a href="LuCI.request.poll.html#active">active</a></li>
  1471. <li data-name="LuCI.request.poll#add"><a href="LuCI.request.poll.html#add">add</a></li>
  1472. <li data-name="LuCI.request.poll#remove"><a href="LuCI.request.poll.html#remove">remove</a></li>
  1473. <li data-name="LuCI.request.poll#start"><a href="LuCI.request.poll.html#start">start</a></li>
  1474. <li data-name="LuCI.request.poll#stop"><a href="LuCI.request.poll.html#stop">stop</a></li>
  1475. </ul>
  1476. <ul class="events itemMembers">
  1477. </ul>
  1478. </li>
  1479. <li class="item" data-name="LuCI.response">
  1480. <span class="title">
  1481. <a href="LuCI.response.html">LuCI.response</a>
  1482. </span>
  1483. <ul class="members itemMembers">
  1484. <span class="subtitle">Members</span>
  1485. <li data-name="LuCI.response#duration"><a href="LuCI.response.html#duration">duration</a></li>
  1486. <li data-name="LuCI.response#headers"><a href="LuCI.response.html#headers">headers</a></li>
  1487. <li data-name="LuCI.response#ok"><a href="LuCI.response.html#ok">ok</a></li>
  1488. <li data-name="LuCI.response#status"><a href="LuCI.response.html#status">status</a></li>
  1489. <li data-name="LuCI.response#statusText"><a href="LuCI.response.html#statusText">statusText</a></li>
  1490. <li data-name="LuCI.response#url"><a href="LuCI.response.html#url">url</a></li>
  1491. </ul>
  1492. <ul class="typedefs itemMembers">
  1493. </ul>
  1494. <ul class="typedefs itemMembers">
  1495. </ul>
  1496. <ul class="methods itemMembers">
  1497. <span class="subtitle">Methods</span>
  1498. <li data-name="LuCI.response#blob"><a href="LuCI.response.html#blob">blob</a></li>
  1499. <li data-name="LuCI.response#clone"><a href="LuCI.response.html#clone">clone</a></li>
  1500. <li data-name="LuCI.response#json"><a href="LuCI.response.html#json">json</a></li>
  1501. <li data-name="LuCI.response#text"><a href="LuCI.response.html#text">text</a></li>
  1502. </ul>
  1503. <ul class="events itemMembers">
  1504. </ul>
  1505. </li>
  1506. <li class="item" data-name="LuCI.rpc">
  1507. <span class="title">
  1508. <a href="LuCI.rpc.html">LuCI.rpc</a>
  1509. </span>
  1510. <ul class="members itemMembers">
  1511. </ul>
  1512. <ul class="typedefs itemMembers">
  1513. <span class="subtitle">Typedefs</span>
  1514. <li data-name="LuCI.rpc.DeclareOptions"><a href="LuCI.rpc.html#.DeclareOptions">DeclareOptions</a></li>
  1515. <li data-name="LuCI.rpc~filterFn"><a href="LuCI.rpc.html#~filterFn">filterFn</a></li>
  1516. <li data-name="LuCI.rpc~interceptorFn"><a href="LuCI.rpc.html#~interceptorFn">interceptorFn</a></li>
  1517. <li data-name="LuCI.rpc~invokeFn"><a href="LuCI.rpc.html#~invokeFn">invokeFn</a></li>
  1518. </ul>
  1519. <ul class="typedefs itemMembers">
  1520. </ul>
  1521. <ul class="methods itemMembers">
  1522. <span class="subtitle">Methods</span>
  1523. <li data-name="LuCI.rpc#addInterceptor"><a href="LuCI.rpc.html#addInterceptor">addInterceptor</a></li>
  1524. <li data-name="LuCI.rpc#declare"><a href="LuCI.rpc.html#declare">declare</a></li>
  1525. <li data-name="LuCI.rpc#getBaseURL"><a href="LuCI.rpc.html#getBaseURL">getBaseURL</a></li>
  1526. <li data-name="LuCI.rpc#getSessionID"><a href="LuCI.rpc.html#getSessionID">getSessionID</a></li>
  1527. <li data-name="LuCI.rpc#getStatusText"><a href="LuCI.rpc.html#getStatusText">getStatusText</a></li>
  1528. <li data-name="LuCI.rpc#list"><a href="LuCI.rpc.html#list">list</a></li>
  1529. <li data-name="LuCI.rpc#removeInterceptor"><a href="LuCI.rpc.html#removeInterceptor">removeInterceptor</a></li>
  1530. <li data-name="LuCI.rpc#setBaseURL"><a href="LuCI.rpc.html#setBaseURL">setBaseURL</a></li>
  1531. <li data-name="LuCI.rpc#setSessionID"><a href="LuCI.rpc.html#setSessionID">setSessionID</a></li>
  1532. </ul>
  1533. <ul class="events itemMembers">
  1534. </ul>
  1535. </li>
  1536. <li class="item" data-name="LuCI.session">
  1537. <span class="title">
  1538. <a href="LuCI.session.html">LuCI.session</a>
  1539. </span>
  1540. <ul class="members itemMembers">
  1541. </ul>
  1542. <ul class="typedefs itemMembers">
  1543. </ul>
  1544. <ul class="typedefs itemMembers">
  1545. </ul>
  1546. <ul class="methods itemMembers">
  1547. <span class="subtitle">Methods</span>
  1548. <li data-name="LuCI.session#getID"><a href="LuCI.session.html#getID">getID</a></li>
  1549. <li data-name="LuCI.session#getLocalData"><a href="LuCI.session.html#getLocalData">getLocalData</a></li>
  1550. <li data-name="LuCI.session#getToken"><a href="LuCI.session.html#getToken">getToken</a></li>
  1551. <li data-name="LuCI.session#setLocalData"><a href="LuCI.session.html#setLocalData">setLocalData</a></li>
  1552. </ul>
  1553. <ul class="events itemMembers">
  1554. </ul>
  1555. </li>
  1556. <li class="item" data-name="LuCI.uci">
  1557. <span class="title">
  1558. <a href="LuCI.uci.html">LuCI.uci</a>
  1559. </span>
  1560. <ul class="members itemMembers">
  1561. </ul>
  1562. <ul class="typedefs itemMembers">
  1563. <span class="subtitle">Typedefs</span>
  1564. <li data-name="LuCI.uci.ChangeRecord"><a href="LuCI.uci.html#.ChangeRecord">ChangeRecord</a></li>
  1565. <li data-name="LuCI.uci.SectionObject"><a href="LuCI.uci.html#.SectionObject">SectionObject</a></li>
  1566. <li data-name="LuCI.uci~sectionsFn"><a href="LuCI.uci.html#~sectionsFn">sectionsFn</a></li>
  1567. </ul>
  1568. <ul class="typedefs itemMembers">
  1569. </ul>
  1570. <ul class="methods itemMembers">
  1571. <span class="subtitle">Methods</span>
  1572. <li data-name="LuCI.uci#add"><a href="LuCI.uci.html#add">add</a></li>
  1573. <li data-name="LuCI.uci#apply"><a href="LuCI.uci.html#apply">apply</a></li>
  1574. <li data-name="LuCI.uci#changes"><a href="LuCI.uci.html#changes">changes</a></li>
  1575. <li data-name="LuCI.uci#clone"><a href="LuCI.uci.html#clone">clone</a></li>
  1576. <li data-name="LuCI.uci#createSID"><a href="LuCI.uci.html#createSID">createSID</a></li>
  1577. <li data-name="LuCI.uci#get"><a href="LuCI.uci.html#get">get</a></li>
  1578. <li data-name="LuCI.uci#get_first"><a href="LuCI.uci.html#get_first">get_first</a></li>
  1579. <li data-name="LuCI.uci#load"><a href="LuCI.uci.html#load">load</a></li>
  1580. <li data-name="LuCI.uci#move"><a href="LuCI.uci.html#move">move</a></li>
  1581. <li data-name="LuCI.uci#remove"><a href="LuCI.uci.html#remove">remove</a></li>
  1582. <li data-name="LuCI.uci#resolveSID"><a href="LuCI.uci.html#resolveSID">resolveSID</a></li>
  1583. <li data-name="LuCI.uci#save"><a href="LuCI.uci.html#save">save</a></li>
  1584. <li data-name="LuCI.uci#sections"><a href="LuCI.uci.html#sections">sections</a></li>
  1585. <li data-name="LuCI.uci#set"><a href="LuCI.uci.html#set">set</a></li>
  1586. <li data-name="LuCI.uci#set_first"><a href="LuCI.uci.html#set_first">set_first</a></li>
  1587. <li data-name="LuCI.uci#unload"><a href="LuCI.uci.html#unload">unload</a></li>
  1588. <li data-name="LuCI.uci#unset"><a href="LuCI.uci.html#unset">unset</a></li>
  1589. <li data-name="LuCI.uci#unset_first"><a href="LuCI.uci.html#unset_first">unset_first</a></li>
  1590. </ul>
  1591. <ul class="events itemMembers">
  1592. </ul>
  1593. </li>
  1594. <li class="item" data-name="LuCI.ui">
  1595. <span class="title">
  1596. <a href="LuCI.ui.html">LuCI.ui</a>
  1597. </span>
  1598. <ul class="members itemMembers">
  1599. </ul>
  1600. <ul class="typedefs itemMembers">
  1601. <span class="subtitle">Typedefs</span>
  1602. <li data-name="LuCI.ui.FileUploadReply"><a href="LuCI.ui.html#.FileUploadReply">FileUploadReply</a></li>
  1603. </ul>
  1604. <ul class="typedefs itemMembers">
  1605. </ul>
  1606. <ul class="methods itemMembers">
  1607. <span class="subtitle">Methods</span>
  1608. <li data-name="LuCI.ui#addNotification"><a href="LuCI.ui.html#addNotification">addNotification</a></li>
  1609. <li data-name="LuCI.ui#addValidator"><a href="LuCI.ui.html#addValidator">addValidator</a></li>
  1610. <li data-name="LuCI.ui#awaitReconnect"><a href="LuCI.ui.html#awaitReconnect">awaitReconnect</a></li>
  1611. <li data-name="LuCI.ui#createHandlerFn"><a href="LuCI.ui.html#createHandlerFn">createHandlerFn</a></li>
  1612. <li data-name="LuCI.ui#hideIndicator"><a href="LuCI.ui.html#hideIndicator">hideIndicator</a></li>
  1613. <li data-name="LuCI.ui#hideModal"><a href="LuCI.ui.html#hideModal">hideModal</a></li>
  1614. <li data-name="LuCI.ui#instantiateView"><a href="LuCI.ui.html#instantiateView">instantiateView</a></li>
  1615. <li data-name="LuCI.ui#itemlist"><a href="LuCI.ui.html#itemlist">itemlist</a></li>
  1616. <li data-name="LuCI.ui#pingDevice"><a href="LuCI.ui.html#pingDevice">pingDevice</a></li>
  1617. <li data-name="LuCI.ui#showIndicator"><a href="LuCI.ui.html#showIndicator">showIndicator</a></li>
  1618. <li data-name="LuCI.ui#showModal"><a href="LuCI.ui.html#showModal">showModal</a></li>
  1619. <li data-name="LuCI.ui#uploadFile"><a href="LuCI.ui.html#uploadFile">uploadFile</a></li>
  1620. </ul>
  1621. <ul class="events itemMembers">
  1622. </ul>
  1623. </li>
  1624. <li class="item" data-name="LuCI.ui.AbstractElement">
  1625. <span class="title">
  1626. <a href="LuCI.ui.AbstractElement.html">LuCI.ui.AbstractElement</a>
  1627. </span>
  1628. <ul class="members itemMembers">
  1629. </ul>
  1630. <ul class="typedefs itemMembers">
  1631. <span class="subtitle">Typedefs</span>
  1632. <li data-name="LuCI.ui.AbstractElement.InitOptions"><a href="LuCI.ui.AbstractElement.html#.InitOptions">InitOptions</a></li>
  1633. </ul>
  1634. <ul class="typedefs itemMembers">
  1635. </ul>
  1636. <ul class="methods itemMembers">
  1637. <span class="subtitle">Methods</span>
  1638. <li data-name="LuCI.ui.AbstractElement#getValidationError"><a href="LuCI.ui.AbstractElement.html#getValidationError">getValidationError</a></li>
  1639. <li data-name="LuCI.ui.AbstractElement#getValue"><a href="LuCI.ui.AbstractElement.html#getValue">getValue</a></li>
  1640. <li data-name="LuCI.ui.AbstractElement#isChanged"><a href="LuCI.ui.AbstractElement.html#isChanged">isChanged</a></li>
  1641. <li data-name="LuCI.ui.AbstractElement#isValid"><a href="LuCI.ui.AbstractElement.html#isValid">isValid</a></li>
  1642. <li data-name="LuCI.ui.AbstractElement#registerEvents"><a href="LuCI.ui.AbstractElement.html#registerEvents">registerEvents</a></li>
  1643. <li data-name="LuCI.ui.AbstractElement#render"><a href="LuCI.ui.AbstractElement.html#render">render</a></li>
  1644. <li data-name="LuCI.ui.AbstractElement#setChangeEvents"><a href="LuCI.ui.AbstractElement.html#setChangeEvents">setChangeEvents</a></li>
  1645. <li data-name="LuCI.ui.AbstractElement#setPlaceholder"><a href="LuCI.ui.AbstractElement.html#setPlaceholder">setPlaceholder</a></li>
  1646. <li data-name="LuCI.ui.AbstractElement#setUpdateEvents"><a href="LuCI.ui.AbstractElement.html#setUpdateEvents">setUpdateEvents</a></li>
  1647. <li data-name="LuCI.ui.AbstractElement#setValue"><a href="LuCI.ui.AbstractElement.html#setValue">setValue</a></li>
  1648. <li data-name="LuCI.ui.AbstractElement#triggerValidation"><a href="LuCI.ui.AbstractElement.html#triggerValidation">triggerValidation</a></li>
  1649. </ul>
  1650. <ul class="events itemMembers">
  1651. </ul>
  1652. </li>
  1653. <li class="item" data-name="LuCI.ui.changes">
  1654. <span class="title">
  1655. <a href="LuCI.ui.changes.html">LuCI.ui.changes</a>
  1656. </span>
  1657. <ul class="members itemMembers">
  1658. </ul>
  1659. <ul class="typedefs itemMembers">
  1660. </ul>
  1661. <ul class="typedefs itemMembers">
  1662. </ul>
  1663. <ul class="methods itemMembers">
  1664. <span class="subtitle">Methods</span>
  1665. <li data-name="LuCI.ui.changes#apply"><a href="LuCI.ui.changes.html#apply">apply</a></li>
  1666. <li data-name="LuCI.ui.changes#displayChanges"><a href="LuCI.ui.changes.html#displayChanges">displayChanges</a></li>
  1667. <li data-name="LuCI.ui.changes#renderChangeIndicator"><a href="LuCI.ui.changes.html#renderChangeIndicator">renderChangeIndicator</a></li>
  1668. <li data-name="LuCI.ui.changes#revert"><a href="LuCI.ui.changes.html#revert">revert</a></li>
  1669. <li data-name="LuCI.ui.changes#setIndicator"><a href="LuCI.ui.changes.html#setIndicator">setIndicator</a></li>
  1670. </ul>
  1671. <ul class="events itemMembers">
  1672. </ul>
  1673. </li>
  1674. <li class="item" data-name="LuCI.ui.Checkbox">
  1675. <span class="title">
  1676. <a href="LuCI.ui.Checkbox.html">LuCI.ui.Checkbox</a>
  1677. </span>
  1678. <ul class="members itemMembers">
  1679. </ul>
  1680. <ul class="typedefs itemMembers">
  1681. <span class="subtitle">Typedefs</span>
  1682. <li data-name="LuCI.ui.Checkbox.InitOptions"><a href="LuCI.ui.Checkbox.html#.InitOptions">InitOptions</a></li>
  1683. </ul>
  1684. <ul class="typedefs itemMembers">
  1685. </ul>
  1686. <ul class="methods itemMembers">
  1687. <span class="subtitle">Methods</span>
  1688. <li data-name="LuCI.ui.Checkbox#getValidationError"><a href="LuCI.ui.Checkbox.html#getValidationError">getValidationError</a></li>
  1689. <li data-name="LuCI.ui.Checkbox#getValue"><a href="LuCI.ui.Checkbox.html#getValue">getValue</a></li>
  1690. <li data-name="LuCI.ui.Checkbox#isChanged"><a href="LuCI.ui.Checkbox.html#isChanged">isChanged</a></li>
  1691. <li data-name="LuCI.ui.Checkbox#isChecked"><a href="LuCI.ui.Checkbox.html#isChecked">isChecked</a></li>
  1692. <li data-name="LuCI.ui.Checkbox#isValid"><a href="LuCI.ui.Checkbox.html#isValid">isValid</a></li>
  1693. <li data-name="LuCI.ui.Checkbox#registerEvents"><a href="LuCI.ui.Checkbox.html#registerEvents">registerEvents</a></li>
  1694. <li data-name="LuCI.ui.Checkbox#render"><a href="LuCI.ui.Checkbox.html#render">render</a></li>
  1695. <li data-name="LuCI.ui.Checkbox#setChangeEvents"><a href="LuCI.ui.Checkbox.html#setChangeEvents">setChangeEvents</a></li>
  1696. <li data-name="LuCI.ui.Checkbox#setPlaceholder"><a href="LuCI.ui.Checkbox.html#setPlaceholder">setPlaceholder</a></li>
  1697. <li data-name="LuCI.ui.Checkbox#setUpdateEvents"><a href="LuCI.ui.Checkbox.html#setUpdateEvents">setUpdateEvents</a></li>
  1698. <li data-name="LuCI.ui.Checkbox#setValue"><a href="LuCI.ui.Checkbox.html#setValue">setValue</a></li>
  1699. <li data-name="LuCI.ui.Checkbox#triggerValidation"><a href="LuCI.ui.Checkbox.html#triggerValidation">triggerValidation</a></li>
  1700. </ul>
  1701. <ul class="events itemMembers">
  1702. </ul>
  1703. </li>
  1704. <li class="item" data-name="LuCI.ui.Combobox">
  1705. <span class="title">
  1706. <a href="LuCI.ui.Combobox.html">LuCI.ui.Combobox</a>
  1707. </span>
  1708. <ul class="members itemMembers">
  1709. </ul>
  1710. <ul class="typedefs itemMembers">
  1711. <span class="subtitle">Typedefs</span>
  1712. <li data-name="LuCI.ui.Combobox.InitOptions"><a href="LuCI.ui.Combobox.html#.InitOptions">InitOptions</a></li>
  1713. </ul>
  1714. <ul class="typedefs itemMembers">
  1715. </ul>
  1716. <ul class="methods itemMembers">
  1717. <span class="subtitle">Methods</span>
  1718. <li data-name="LuCI.ui.Combobox#addChoices"><a href="LuCI.ui.Combobox.html#addChoices">addChoices</a></li>
  1719. <li data-name="LuCI.ui.Combobox#clearChoices"><a href="LuCI.ui.Combobox.html#clearChoices">clearChoices</a></li>
  1720. <li data-name="LuCI.ui.Combobox#closeAllDropdowns"><a href="LuCI.ui.Combobox.html#closeAllDropdowns">closeAllDropdowns</a></li>
  1721. <li data-name="LuCI.ui.Combobox#getValidationError"><a href="LuCI.ui.Combobox.html#getValidationError">getValidationError</a></li>
  1722. <li data-name="LuCI.ui.Combobox#isChanged"><a href="LuCI.ui.Combobox.html#isChanged">isChanged</a></li>
  1723. <li data-name="LuCI.ui.Combobox#isValid"><a href="LuCI.ui.Combobox.html#isValid">isValid</a></li>
  1724. <li data-name="LuCI.ui.Combobox#registerEvents"><a href="LuCI.ui.Combobox.html#registerEvents">registerEvents</a></li>
  1725. <li data-name="LuCI.ui.Combobox#setChangeEvents"><a href="LuCI.ui.Combobox.html#setChangeEvents">setChangeEvents</a></li>
  1726. <li data-name="LuCI.ui.Combobox#setPlaceholder"><a href="LuCI.ui.Combobox.html#setPlaceholder">setPlaceholder</a></li>
  1727. <li data-name="LuCI.ui.Combobox#setUpdateEvents"><a href="LuCI.ui.Combobox.html#setUpdateEvents">setUpdateEvents</a></li>
  1728. <li data-name="LuCI.ui.Combobox#triggerValidation"><a href="LuCI.ui.Combobox.html#triggerValidation">triggerValidation</a></li>
  1729. </ul>
  1730. <ul class="events itemMembers">
  1731. </ul>
  1732. </li>
  1733. <li class="item" data-name="LuCI.ui.ComboButton">
  1734. <span class="title">
  1735. <a href="LuCI.ui.ComboButton.html">LuCI.ui.ComboButton</a>
  1736. </span>
  1737. <ul class="members itemMembers">
  1738. </ul>
  1739. <ul class="typedefs itemMembers">
  1740. <span class="subtitle">Typedefs</span>
  1741. <li data-name="LuCI.ui.ComboButton.InitOptions"><a href="LuCI.ui.ComboButton.html#.InitOptions">InitOptions</a></li>
  1742. </ul>
  1743. <ul class="typedefs itemMembers">
  1744. </ul>
  1745. <ul class="methods itemMembers">
  1746. <span class="subtitle">Methods</span>
  1747. <li data-name="LuCI.ui.ComboButton#addChoices"><a href="LuCI.ui.ComboButton.html#addChoices">addChoices</a></li>
  1748. <li data-name="LuCI.ui.ComboButton#clearChoices"><a href="LuCI.ui.ComboButton.html#clearChoices">clearChoices</a></li>
  1749. <li data-name="LuCI.ui.ComboButton#closeAllDropdowns"><a href="LuCI.ui.ComboButton.html#closeAllDropdowns">closeAllDropdowns</a></li>
  1750. <li data-name="LuCI.ui.ComboButton#getValidationError"><a href="LuCI.ui.ComboButton.html#getValidationError">getValidationError</a></li>
  1751. <li data-name="LuCI.ui.ComboButton#isChanged"><a href="LuCI.ui.ComboButton.html#isChanged">isChanged</a></li>
  1752. <li data-name="LuCI.ui.ComboButton#isValid"><a href="LuCI.ui.ComboButton.html#isValid">isValid</a></li>
  1753. <li data-name="LuCI.ui.ComboButton#registerEvents"><a href="LuCI.ui.ComboButton.html#registerEvents">registerEvents</a></li>
  1754. <li data-name="LuCI.ui.ComboButton#setChangeEvents"><a href="LuCI.ui.ComboButton.html#setChangeEvents">setChangeEvents</a></li>
  1755. <li data-name="LuCI.ui.ComboButton#setPlaceholder"><a href="LuCI.ui.ComboButton.html#setPlaceholder">setPlaceholder</a></li>
  1756. <li data-name="LuCI.ui.ComboButton#setUpdateEvents"><a href="LuCI.ui.ComboButton.html#setUpdateEvents">setUpdateEvents</a></li>
  1757. <li data-name="LuCI.ui.ComboButton#triggerValidation"><a href="LuCI.ui.ComboButton.html#triggerValidation">triggerValidation</a></li>
  1758. </ul>
  1759. <ul class="events itemMembers">
  1760. </ul>
  1761. </li>
  1762. <li class="item" data-name="LuCI.ui.Dropdown">
  1763. <span class="title">
  1764. <a href="LuCI.ui.Dropdown.html">LuCI.ui.Dropdown</a>
  1765. </span>
  1766. <ul class="members itemMembers">
  1767. </ul>
  1768. <ul class="typedefs itemMembers">
  1769. <span class="subtitle">Typedefs</span>
  1770. <li data-name="LuCI.ui.Dropdown.InitOptions"><a href="LuCI.ui.Dropdown.html#.InitOptions">InitOptions</a></li>
  1771. </ul>
  1772. <ul class="typedefs itemMembers">
  1773. </ul>
  1774. <ul class="methods itemMembers">
  1775. <span class="subtitle">Methods</span>
  1776. <li data-name="LuCI.ui.Dropdown#addChoices"><a href="LuCI.ui.Dropdown.html#addChoices">addChoices</a></li>
  1777. <li data-name="LuCI.ui.Dropdown#clearChoices"><a href="LuCI.ui.Dropdown.html#clearChoices">clearChoices</a></li>
  1778. <li data-name="LuCI.ui.Dropdown#closeAllDropdowns"><a href="LuCI.ui.Dropdown.html#closeAllDropdowns">closeAllDropdowns</a></li>
  1779. <li data-name="LuCI.ui.Dropdown#getValidationError"><a href="LuCI.ui.Dropdown.html#getValidationError">getValidationError</a></li>
  1780. <li data-name="LuCI.ui.Dropdown#getValue"><a href="LuCI.ui.Dropdown.html#getValue">getValue</a></li>
  1781. <li data-name="LuCI.ui.Dropdown#isChanged"><a href="LuCI.ui.Dropdown.html#isChanged">isChanged</a></li>
  1782. <li data-name="LuCI.ui.Dropdown#isValid"><a href="LuCI.ui.Dropdown.html#isValid">isValid</a></li>
  1783. <li data-name="LuCI.ui.Dropdown#registerEvents"><a href="LuCI.ui.Dropdown.html#registerEvents">registerEvents</a></li>
  1784. <li data-name="LuCI.ui.Dropdown#render"><a href="LuCI.ui.Dropdown.html#render">render</a></li>
  1785. <li data-name="LuCI.ui.Dropdown#setChangeEvents"><a href="LuCI.ui.Dropdown.html#setChangeEvents">setChangeEvents</a></li>
  1786. <li data-name="LuCI.ui.Dropdown#setPlaceholder"><a href="LuCI.ui.Dropdown.html#setPlaceholder">setPlaceholder</a></li>
  1787. <li data-name="LuCI.ui.Dropdown#setUpdateEvents"><a href="LuCI.ui.Dropdown.html#setUpdateEvents">setUpdateEvents</a></li>
  1788. <li data-name="LuCI.ui.Dropdown#setValue"><a href="LuCI.ui.Dropdown.html#setValue">setValue</a></li>
  1789. <li data-name="LuCI.ui.Dropdown#triggerValidation"><a href="LuCI.ui.Dropdown.html#triggerValidation">triggerValidation</a></li>
  1790. </ul>
  1791. <ul class="events itemMembers">
  1792. </ul>
  1793. </li>
  1794. <li class="item" data-name="LuCI.ui.DynamicList">
  1795. <span class="title">
  1796. <a href="LuCI.ui.DynamicList.html">LuCI.ui.DynamicList</a>
  1797. </span>
  1798. <ul class="members itemMembers">
  1799. </ul>
  1800. <ul class="typedefs itemMembers">
  1801. <span class="subtitle">Typedefs</span>
  1802. <li data-name="LuCI.ui.DynamicList.InitOptions"><a href="LuCI.ui.DynamicList.html#.InitOptions">InitOptions</a></li>
  1803. </ul>
  1804. <ul class="typedefs itemMembers">
  1805. </ul>
  1806. <ul class="methods itemMembers">
  1807. <span class="subtitle">Methods</span>
  1808. <li data-name="LuCI.ui.DynamicList#addChoices"><a href="LuCI.ui.DynamicList.html#addChoices">addChoices</a></li>
  1809. <li data-name="LuCI.ui.DynamicList#clearChoices"><a href="LuCI.ui.DynamicList.html#clearChoices">clearChoices</a></li>
  1810. <li data-name="LuCI.ui.DynamicList#getValidationError"><a href="LuCI.ui.DynamicList.html#getValidationError">getValidationError</a></li>
  1811. <li data-name="LuCI.ui.DynamicList#getValue"><a href="LuCI.ui.DynamicList.html#getValue">getValue</a></li>
  1812. <li data-name="LuCI.ui.DynamicList#isChanged"><a href="LuCI.ui.DynamicList.html#isChanged">isChanged</a></li>
  1813. <li data-name="LuCI.ui.DynamicList#isValid"><a href="LuCI.ui.DynamicList.html#isValid">isValid</a></li>
  1814. <li data-name="LuCI.ui.DynamicList#registerEvents"><a href="LuCI.ui.DynamicList.html#registerEvents">registerEvents</a></li>
  1815. <li data-name="LuCI.ui.DynamicList#render"><a href="LuCI.ui.DynamicList.html#render">render</a></li>
  1816. <li data-name="LuCI.ui.DynamicList#setChangeEvents"><a href="LuCI.ui.DynamicList.html#setChangeEvents">setChangeEvents</a></li>
  1817. <li data-name="LuCI.ui.DynamicList#setPlaceholder"><a href="LuCI.ui.DynamicList.html#setPlaceholder">setPlaceholder</a></li>
  1818. <li data-name="LuCI.ui.DynamicList#setUpdateEvents"><a href="LuCI.ui.DynamicList.html#setUpdateEvents">setUpdateEvents</a></li>
  1819. <li data-name="LuCI.ui.DynamicList#setValue"><a href="LuCI.ui.DynamicList.html#setValue">setValue</a></li>
  1820. <li data-name="LuCI.ui.DynamicList#triggerValidation"><a href="LuCI.ui.DynamicList.html#triggerValidation">triggerValidation</a></li>
  1821. </ul>
  1822. <ul class="events itemMembers">
  1823. </ul>
  1824. </li>
  1825. <li class="item" data-name="LuCI.ui.FileUpload">
  1826. <span class="title">
  1827. <a href="LuCI.ui.FileUpload.html">LuCI.ui.FileUpload</a>
  1828. </span>
  1829. <ul class="members itemMembers">
  1830. </ul>
  1831. <ul class="typedefs itemMembers">
  1832. <span class="subtitle">Typedefs</span>
  1833. <li data-name="LuCI.ui.FileUpload.InitOptions"><a href="LuCI.ui.FileUpload.html#.InitOptions">InitOptions</a></li>
  1834. </ul>
  1835. <ul class="typedefs itemMembers">
  1836. </ul>
  1837. <ul class="methods itemMembers">
  1838. <span class="subtitle">Methods</span>
  1839. <li data-name="LuCI.ui.FileUpload#getValidationError"><a href="LuCI.ui.FileUpload.html#getValidationError">getValidationError</a></li>
  1840. <li data-name="LuCI.ui.FileUpload#getValue"><a href="LuCI.ui.FileUpload.html#getValue">getValue</a></li>
  1841. <li data-name="LuCI.ui.FileUpload#isChanged"><a href="LuCI.ui.FileUpload.html#isChanged">isChanged</a></li>
  1842. <li data-name="LuCI.ui.FileUpload#isValid"><a href="LuCI.ui.FileUpload.html#isValid">isValid</a></li>
  1843. <li data-name="LuCI.ui.FileUpload#registerEvents"><a href="LuCI.ui.FileUpload.html#registerEvents">registerEvents</a></li>
  1844. <li data-name="LuCI.ui.FileUpload#render"><a href="LuCI.ui.FileUpload.html#render">render</a></li>
  1845. <li data-name="LuCI.ui.FileUpload#setChangeEvents"><a href="LuCI.ui.FileUpload.html#setChangeEvents">setChangeEvents</a></li>
  1846. <li data-name="LuCI.ui.FileUpload#setPlaceholder"><a href="LuCI.ui.FileUpload.html#setPlaceholder">setPlaceholder</a></li>
  1847. <li data-name="LuCI.ui.FileUpload#setUpdateEvents"><a href="LuCI.ui.FileUpload.html#setUpdateEvents">setUpdateEvents</a></li>
  1848. <li data-name="LuCI.ui.FileUpload#setValue"><a href="LuCI.ui.FileUpload.html#setValue">setValue</a></li>
  1849. <li data-name="LuCI.ui.FileUpload#triggerValidation"><a href="LuCI.ui.FileUpload.html#triggerValidation">triggerValidation</a></li>
  1850. </ul>
  1851. <ul class="events itemMembers">
  1852. </ul>
  1853. </li>
  1854. <li class="item" data-name="LuCI.ui.Hiddenfield">
  1855. <span class="title">
  1856. <a href="LuCI.ui.Hiddenfield.html">LuCI.ui.Hiddenfield</a>
  1857. </span>
  1858. <ul class="members itemMembers">
  1859. </ul>
  1860. <ul class="typedefs itemMembers">
  1861. </ul>
  1862. <ul class="typedefs itemMembers">
  1863. </ul>
  1864. <ul class="methods itemMembers">
  1865. <span class="subtitle">Methods</span>
  1866. <li data-name="LuCI.ui.Hiddenfield#getValidationError"><a href="LuCI.ui.Hiddenfield.html#getValidationError">getValidationError</a></li>
  1867. <li data-name="LuCI.ui.Hiddenfield#getValue"><a href="LuCI.ui.Hiddenfield.html#getValue">getValue</a></li>
  1868. <li data-name="LuCI.ui.Hiddenfield#isChanged"><a href="LuCI.ui.Hiddenfield.html#isChanged">isChanged</a></li>
  1869. <li data-name="LuCI.ui.Hiddenfield#isValid"><a href="LuCI.ui.Hiddenfield.html#isValid">isValid</a></li>
  1870. <li data-name="LuCI.ui.Hiddenfield#registerEvents"><a href="LuCI.ui.Hiddenfield.html#registerEvents">registerEvents</a></li>
  1871. <li data-name="LuCI.ui.Hiddenfield#render"><a href="LuCI.ui.Hiddenfield.html#render">render</a></li>
  1872. <li data-name="LuCI.ui.Hiddenfield#setChangeEvents"><a href="LuCI.ui.Hiddenfield.html#setChangeEvents">setChangeEvents</a></li>
  1873. <li data-name="LuCI.ui.Hiddenfield#setPlaceholder"><a href="LuCI.ui.Hiddenfield.html#setPlaceholder">setPlaceholder</a></li>
  1874. <li data-name="LuCI.ui.Hiddenfield#setUpdateEvents"><a href="LuCI.ui.Hiddenfield.html#setUpdateEvents">setUpdateEvents</a></li>
  1875. <li data-name="LuCI.ui.Hiddenfield#setValue"><a href="LuCI.ui.Hiddenfield.html#setValue">setValue</a></li>
  1876. <li data-name="LuCI.ui.Hiddenfield#triggerValidation"><a href="LuCI.ui.Hiddenfield.html#triggerValidation">triggerValidation</a></li>
  1877. </ul>
  1878. <ul class="events itemMembers">
  1879. </ul>
  1880. </li>
  1881. <li class="item" data-name="LuCI.ui.menu">
  1882. <span class="title">
  1883. <a href="LuCI.ui.menu.html">LuCI.ui.menu</a>
  1884. </span>
  1885. <ul class="members itemMembers">
  1886. </ul>
  1887. <ul class="typedefs itemMembers">
  1888. <span class="subtitle">Typedefs</span>
  1889. <li data-name="LuCI.ui.menu.MenuNode"><a href="LuCI.ui.menu.html#.MenuNode">MenuNode</a></li>
  1890. </ul>
  1891. <ul class="typedefs itemMembers">
  1892. </ul>
  1893. <ul class="methods itemMembers">
  1894. <span class="subtitle">Methods</span>
  1895. <li data-name="LuCI.ui.menu#flushCache"><a href="LuCI.ui.menu.html#flushCache">flushCache</a></li>
  1896. <li data-name="LuCI.ui.menu#getChildren"><a href="LuCI.ui.menu.html#getChildren">getChildren</a></li>
  1897. <li data-name="LuCI.ui.menu#load"><a href="LuCI.ui.menu.html#load">load</a></li>
  1898. </ul>
  1899. <ul class="events itemMembers">
  1900. </ul>
  1901. </li>
  1902. <li class="item" data-name="LuCI.ui.Select">
  1903. <span class="title">
  1904. <a href="LuCI.ui.Select.html">LuCI.ui.Select</a>
  1905. </span>
  1906. <ul class="members itemMembers">
  1907. </ul>
  1908. <ul class="typedefs itemMembers">
  1909. <span class="subtitle">Typedefs</span>
  1910. <li data-name="LuCI.ui.Select.InitOptions"><a href="LuCI.ui.Select.html#.InitOptions">InitOptions</a></li>
  1911. </ul>
  1912. <ul class="typedefs itemMembers">
  1913. </ul>
  1914. <ul class="methods itemMembers">
  1915. <span class="subtitle">Methods</span>
  1916. <li data-name="LuCI.ui.Select#getValidationError"><a href="LuCI.ui.Select.html#getValidationError">getValidationError</a></li>
  1917. <li data-name="LuCI.ui.Select#getValue"><a href="LuCI.ui.Select.html#getValue">getValue</a></li>
  1918. <li data-name="LuCI.ui.Select#isChanged"><a href="LuCI.ui.Select.html#isChanged">isChanged</a></li>
  1919. <li data-name="LuCI.ui.Select#isValid"><a href="LuCI.ui.Select.html#isValid">isValid</a></li>
  1920. <li data-name="LuCI.ui.Select#registerEvents"><a href="LuCI.ui.Select.html#registerEvents">registerEvents</a></li>
  1921. <li data-name="LuCI.ui.Select#render"><a href="LuCI.ui.Select.html#render">render</a></li>
  1922. <li data-name="LuCI.ui.Select#setChangeEvents"><a href="LuCI.ui.Select.html#setChangeEvents">setChangeEvents</a></li>
  1923. <li data-name="LuCI.ui.Select#setPlaceholder"><a href="LuCI.ui.Select.html#setPlaceholder">setPlaceholder</a></li>
  1924. <li data-name="LuCI.ui.Select#setUpdateEvents"><a href="LuCI.ui.Select.html#setUpdateEvents">setUpdateEvents</a></li>
  1925. <li data-name="LuCI.ui.Select#setValue"><a href="LuCI.ui.Select.html#setValue">setValue</a></li>
  1926. <li data-name="LuCI.ui.Select#triggerValidation"><a href="LuCI.ui.Select.html#triggerValidation">triggerValidation</a></li>
  1927. </ul>
  1928. <ul class="events itemMembers">
  1929. </ul>
  1930. </li>
  1931. <li class="item" data-name="LuCI.ui.tabs">
  1932. <span class="title">
  1933. <a href="LuCI.ui.tabs.html">LuCI.ui.tabs</a>
  1934. </span>
  1935. <ul class="members itemMembers">
  1936. </ul>
  1937. <ul class="typedefs itemMembers">
  1938. </ul>
  1939. <ul class="typedefs itemMembers">
  1940. </ul>
  1941. <ul class="methods itemMembers">
  1942. <span class="subtitle">Methods</span>
  1943. <li data-name="LuCI.ui.tabs#initTabGroup"><a href="LuCI.ui.tabs.html#initTabGroup">initTabGroup</a></li>
  1944. <li data-name="LuCI.ui.tabs#isEmptyPane"><a href="LuCI.ui.tabs.html#isEmptyPane">isEmptyPane</a></li>
  1945. </ul>
  1946. <ul class="events itemMembers">
  1947. </ul>
  1948. </li>
  1949. <li class="item" data-name="LuCI.ui.Textarea">
  1950. <span class="title">
  1951. <a href="LuCI.ui.Textarea.html">LuCI.ui.Textarea</a>
  1952. </span>
  1953. <ul class="members itemMembers">
  1954. </ul>
  1955. <ul class="typedefs itemMembers">
  1956. <span class="subtitle">Typedefs</span>
  1957. <li data-name="LuCI.ui.Textarea.InitOptions"><a href="LuCI.ui.Textarea.html#.InitOptions">InitOptions</a></li>
  1958. </ul>
  1959. <ul class="typedefs itemMembers">
  1960. </ul>
  1961. <ul class="methods itemMembers">
  1962. <span class="subtitle">Methods</span>
  1963. <li data-name="LuCI.ui.Textarea#getValidationError"><a href="LuCI.ui.Textarea.html#getValidationError">getValidationError</a></li>
  1964. <li data-name="LuCI.ui.Textarea#getValue"><a href="LuCI.ui.Textarea.html#getValue">getValue</a></li>
  1965. <li data-name="LuCI.ui.Textarea#isChanged"><a href="LuCI.ui.Textarea.html#isChanged">isChanged</a></li>
  1966. <li data-name="LuCI.ui.Textarea#isValid"><a href="LuCI.ui.Textarea.html#isValid">isValid</a></li>
  1967. <li data-name="LuCI.ui.Textarea#registerEvents"><a href="LuCI.ui.Textarea.html#registerEvents">registerEvents</a></li>
  1968. <li data-name="LuCI.ui.Textarea#render"><a href="LuCI.ui.Textarea.html#render">render</a></li>
  1969. <li data-name="LuCI.ui.Textarea#setChangeEvents"><a href="LuCI.ui.Textarea.html#setChangeEvents">setChangeEvents</a></li>
  1970. <li data-name="LuCI.ui.Textarea#setPlaceholder"><a href="LuCI.ui.Textarea.html#setPlaceholder">setPlaceholder</a></li>
  1971. <li data-name="LuCI.ui.Textarea#setUpdateEvents"><a href="LuCI.ui.Textarea.html#setUpdateEvents">setUpdateEvents</a></li>
  1972. <li data-name="LuCI.ui.Textarea#setValue"><a href="LuCI.ui.Textarea.html#setValue">setValue</a></li>
  1973. <li data-name="LuCI.ui.Textarea#triggerValidation"><a href="LuCI.ui.Textarea.html#triggerValidation">triggerValidation</a></li>
  1974. </ul>
  1975. <ul class="events itemMembers">
  1976. </ul>
  1977. </li>
  1978. <li class="item" data-name="LuCI.ui.Textfield">
  1979. <span class="title">
  1980. <a href="LuCI.ui.Textfield.html">LuCI.ui.Textfield</a>
  1981. </span>
  1982. <ul class="members itemMembers">
  1983. </ul>
  1984. <ul class="typedefs itemMembers">
  1985. <span class="subtitle">Typedefs</span>
  1986. <li data-name="LuCI.ui.Textfield.InitOptions"><a href="LuCI.ui.Textfield.html#.InitOptions">InitOptions</a></li>
  1987. </ul>
  1988. <ul class="typedefs itemMembers">
  1989. </ul>
  1990. <ul class="methods itemMembers">
  1991. <span class="subtitle">Methods</span>
  1992. <li data-name="LuCI.ui.Textfield#getValidationError"><a href="LuCI.ui.Textfield.html#getValidationError">getValidationError</a></li>
  1993. <li data-name="LuCI.ui.Textfield#getValue"><a href="LuCI.ui.Textfield.html#getValue">getValue</a></li>
  1994. <li data-name="LuCI.ui.Textfield#isChanged"><a href="LuCI.ui.Textfield.html#isChanged">isChanged</a></li>
  1995. <li data-name="LuCI.ui.Textfield#isValid"><a href="LuCI.ui.Textfield.html#isValid">isValid</a></li>
  1996. <li data-name="LuCI.ui.Textfield#registerEvents"><a href="LuCI.ui.Textfield.html#registerEvents">registerEvents</a></li>
  1997. <li data-name="LuCI.ui.Textfield#render"><a href="LuCI.ui.Textfield.html#render">render</a></li>
  1998. <li data-name="LuCI.ui.Textfield#setChangeEvents"><a href="LuCI.ui.Textfield.html#setChangeEvents">setChangeEvents</a></li>
  1999. <li data-name="LuCI.ui.Textfield#setPlaceholder"><a href="LuCI.ui.Textfield.html#setPlaceholder">setPlaceholder</a></li>
  2000. <li data-name="LuCI.ui.Textfield#setUpdateEvents"><a href="LuCI.ui.Textfield.html#setUpdateEvents">setUpdateEvents</a></li>
  2001. <li data-name="LuCI.ui.Textfield#setValue"><a href="LuCI.ui.Textfield.html#setValue">setValue</a></li>
  2002. <li data-name="LuCI.ui.Textfield#triggerValidation"><a href="LuCI.ui.Textfield.html#triggerValidation">triggerValidation</a></li>
  2003. </ul>
  2004. <ul class="events itemMembers">
  2005. </ul>
  2006. </li>
  2007. <li class="item" data-name="LuCI.view">
  2008. <span class="title">
  2009. <a href="LuCI.view.html">LuCI.view</a>
  2010. </span>
  2011. <ul class="members itemMembers">
  2012. </ul>
  2013. <ul class="typedefs itemMembers">
  2014. </ul>
  2015. <ul class="typedefs itemMembers">
  2016. </ul>
  2017. <ul class="methods itemMembers">
  2018. <span class="subtitle">Methods</span>
  2019. <li data-name="LuCI.view#addFooter"><a href="LuCI.view.html#addFooter">addFooter</a></li>
  2020. <li data-name="LuCI.view#handleReset"><a href="LuCI.view.html#handleReset">handleReset</a></li>
  2021. <li data-name="LuCI.view#handleSave"><a href="LuCI.view.html#handleSave">handleSave</a></li>
  2022. <li data-name="LuCI.view#handleSaveApply"><a href="LuCI.view.html#handleSaveApply">handleSaveApply</a></li>
  2023. <li data-name="LuCI.view#load"><a href="LuCI.view.html#load">load</a></li>
  2024. <li data-name="LuCI.view#render"><a href="LuCI.view.html#render">render</a></li>
  2025. </ul>
  2026. <ul class="events itemMembers">
  2027. </ul>
  2028. </li>
  2029. <li class="item" data-name="LuCI.xhr">
  2030. <span class="title">
  2031. <a href="LuCI.xhr.html">LuCI.xhr</a>
  2032. </span>
  2033. <ul class="members itemMembers">
  2034. </ul>
  2035. <ul class="typedefs itemMembers">
  2036. </ul>
  2037. <ul class="typedefs itemMembers">
  2038. </ul>
  2039. <ul class="methods itemMembers">
  2040. <span class="subtitle">Methods</span>
  2041. <li data-name="LuCI.xhr#abort"><a href="LuCI.xhr.html#abort">abort</a></li>
  2042. <li data-name="LuCI.xhr#busy"><a href="LuCI.xhr.html#busy">busy</a></li>
  2043. <li data-name="LuCI.xhr#cancel"><a href="LuCI.xhr.html#cancel">cancel</a></li>
  2044. <li data-name="LuCI.xhr#get"><a href="LuCI.xhr.html#get">get</a></li>
  2045. <li data-name="LuCI.xhr#post"><a href="LuCI.xhr.html#post">post</a></li>
  2046. <li data-name="LuCI.xhr#send_form"><a href="LuCI.xhr.html#send_form">send_form</a></li>
  2047. </ul>
  2048. <ul class="events itemMembers">
  2049. </ul>
  2050. </li>
  2051. </ul>
  2052. </div>
  2053. <div class="main">
  2054. <h1 class="page-title" data-filename="luci.js.html">Source: luci.js</h1>
  2055. <section>
  2056. <article>
  2057. <pre id="source-code" class="prettyprint source "><code>/**
  2058. * @class LuCI
  2059. * @classdesc
  2060. *
  2061. * This is the LuCI base class. It is automatically instantiated and
  2062. * accessible using the global `L` variable.
  2063. *
  2064. * @param {Object} env
  2065. * The environment settings to use for the LuCI runtime.
  2066. */
  2067. (function(window, document, undefined) {
  2068. 'use strict';
  2069. var env = {};
  2070. /* Object.assign polyfill for IE */
  2071. if (typeof Object.assign !== 'function') {
  2072. Object.defineProperty(Object, 'assign', {
  2073. value: function assign(target, varArgs) {
  2074. if (target == null)
  2075. throw new TypeError('Cannot convert undefined or null to object');
  2076. var to = Object(target);
  2077. for (var index = 1; index &lt; arguments.length; index++)
  2078. if (arguments[index] != null)
  2079. for (var nextKey in arguments[index])
  2080. if (Object.prototype.hasOwnProperty.call(arguments[index], nextKey))
  2081. to[nextKey] = arguments[index][nextKey];
  2082. return to;
  2083. },
  2084. writable: true,
  2085. configurable: true
  2086. });
  2087. }
  2088. /* Promise.finally polyfill */
  2089. if (typeof Promise.prototype.finally !== 'function') {
  2090. Promise.prototype.finally = function(fn) {
  2091. var onFinally = function(cb) {
  2092. return Promise.resolve(fn.call(this)).then(cb);
  2093. };
  2094. return this.then(
  2095. function(result) { return onFinally.call(this, function() { return result }) },
  2096. function(reason) { return onFinally.call(this, function() { return Promise.reject(reason) }) }
  2097. );
  2098. };
  2099. }
  2100. /*
  2101. * Class declaration and inheritance helper
  2102. */
  2103. var toCamelCase = function(s) {
  2104. return s.replace(/(?:^|[\. -])(.)/g, function(m0, m1) { return m1.toUpperCase() });
  2105. };
  2106. /**
  2107. * @class baseclass
  2108. * @hideconstructor
  2109. * @memberof LuCI
  2110. * @classdesc
  2111. *
  2112. * `LuCI.baseclass` is the abstract base class all LuCI classes inherit from.
  2113. *
  2114. * It provides simple means to create subclasses of given classes and
  2115. * implements prototypal inheritance.
  2116. */
  2117. var superContext = {}, classIndex = 0, Class = Object.assign(function() {}, {
  2118. /**
  2119. * Extends this base class with the properties described in
  2120. * `properties` and returns a new subclassed Class instance
  2121. *
  2122. * @memberof LuCI.baseclass
  2123. *
  2124. * @param {Object&lt;string, *>} properties
  2125. * An object describing the properties to add to the new
  2126. * subclass.
  2127. *
  2128. * @returns {LuCI.baseclass}
  2129. * Returns a new LuCI.baseclass subclassed from this class, extended
  2130. * by the given properties and with its prototype set to this base
  2131. * class to enable inheritance. The resulting value represents a
  2132. * class constructor and can be instantiated with `new`.
  2133. */
  2134. extend: function(properties) {
  2135. var props = {
  2136. __id__: { value: classIndex },
  2137. __base__: { value: this.prototype },
  2138. __name__: { value: properties.__name__ || 'anonymous' + classIndex++ }
  2139. };
  2140. var ClassConstructor = function() {
  2141. if (!(this instanceof ClassConstructor))
  2142. throw new TypeError('Constructor must not be called without "new"');
  2143. if (Object.getPrototypeOf(this).hasOwnProperty('__init__')) {
  2144. if (typeof(this.__init__) != 'function')
  2145. throw new TypeError('Class __init__ member is not a function');
  2146. this.__init__.apply(this, arguments)
  2147. }
  2148. else {
  2149. this.super('__init__', arguments);
  2150. }
  2151. };
  2152. for (var key in properties)
  2153. if (!props[key] &amp;&amp; properties.hasOwnProperty(key))
  2154. props[key] = { value: properties[key], writable: true };
  2155. ClassConstructor.prototype = Object.create(this.prototype, props);
  2156. ClassConstructor.prototype.constructor = ClassConstructor;
  2157. Object.assign(ClassConstructor, this);
  2158. ClassConstructor.displayName = toCamelCase(props.__name__.value + 'Class');
  2159. return ClassConstructor;
  2160. },
  2161. /**
  2162. * Extends this base class with the properties described in
  2163. * `properties`, instantiates the resulting subclass using
  2164. * the additional optional arguments passed to this function
  2165. * and returns the resulting subclassed Class instance.
  2166. *
  2167. * This function serves as a convenience shortcut for
  2168. * {@link LuCI.baseclass.extend Class.extend()} and subsequent
  2169. * `new`.
  2170. *
  2171. * @memberof LuCI.baseclass
  2172. *
  2173. * @param {Object&lt;string, *>} properties
  2174. * An object describing the properties to add to the new
  2175. * subclass.
  2176. *
  2177. * @param {...*} [new_args]
  2178. * Specifies arguments to be passed to the subclass constructor
  2179. * as-is in order to instantiate the new subclass.
  2180. *
  2181. * @returns {LuCI.baseclass}
  2182. * Returns a new LuCI.baseclass instance extended by the given
  2183. * properties with its prototype set to this base class to
  2184. * enable inheritance.
  2185. */
  2186. singleton: function(properties /*, ... */) {
  2187. return Class.extend(properties)
  2188. .instantiate(Class.prototype.varargs(arguments, 1));
  2189. },
  2190. /**
  2191. * Calls the class constructor using `new` with the given argument
  2192. * array being passed as variadic parameters to the constructor.
  2193. *
  2194. * @memberof LuCI.baseclass
  2195. *
  2196. * @param {Array&lt;*>} params
  2197. * An array of arbitrary values which will be passed as arguments
  2198. * to the constructor function.
  2199. *
  2200. * @param {...*} [new_args]
  2201. * Specifies arguments to be passed to the subclass constructor
  2202. * as-is in order to instantiate the new subclass.
  2203. *
  2204. * @returns {LuCI.baseclass}
  2205. * Returns a new LuCI.baseclass instance extended by the given
  2206. * properties with its prototype set to this base class to
  2207. * enable inheritance.
  2208. */
  2209. instantiate: function(args) {
  2210. return new (Function.prototype.bind.apply(this,
  2211. Class.prototype.varargs(args, 0, null)))();
  2212. },
  2213. /* unused */
  2214. call: function(self, method) {
  2215. if (typeof(this.prototype[method]) != 'function')
  2216. throw new ReferenceError(method + ' is not defined in class');
  2217. return this.prototype[method].apply(self, self.varargs(arguments, 1));
  2218. },
  2219. /**
  2220. * Checks whether the given class value is a subclass of this class.
  2221. *
  2222. * @memberof LuCI.baseclass
  2223. *
  2224. * @param {LuCI.baseclass} classValue
  2225. * The class object to test.
  2226. *
  2227. * @returns {boolean}
  2228. * Returns `true` when the given `classValue` is a subclass of this
  2229. * class or `false` if the given value is not a valid class or not
  2230. * a subclass of this class'.
  2231. */
  2232. isSubclass: function(classValue) {
  2233. return (classValue != null &amp;&amp;
  2234. typeof(classValue) == 'function' &amp;&amp;
  2235. classValue.prototype instanceof this);
  2236. },
  2237. prototype: {
  2238. /**
  2239. * Extract all values from the given argument array beginning from
  2240. * `offset` and prepend any further given optional parameters to
  2241. * the beginning of the resulting array copy.
  2242. *
  2243. * @memberof LuCI.baseclass
  2244. * @instance
  2245. *
  2246. * @param {Array&lt;*>} args
  2247. * The array to extract the values from.
  2248. *
  2249. * @param {number} offset
  2250. * The offset from which to extract the values. An offset of `0`
  2251. * would copy all values till the end.
  2252. *
  2253. * @param {...*} [extra_args]
  2254. * Extra arguments to add to prepend to the resulting array.
  2255. *
  2256. * @returns {Array&lt;*>}
  2257. * Returns a new array consisting of the optional extra arguments
  2258. * and the values extracted from the `args` array beginning with
  2259. * `offset`.
  2260. */
  2261. varargs: function(args, offset /*, ... */) {
  2262. return Array.prototype.slice.call(arguments, 2)
  2263. .concat(Array.prototype.slice.call(args, offset));
  2264. },
  2265. /**
  2266. * Walks up the parent class chain and looks for a class member
  2267. * called `key` in any of the parent classes this class inherits
  2268. * from. Returns the member value of the superclass or calls the
  2269. * member as function and returns its return value when the
  2270. * optional `callArgs` array is given.
  2271. *
  2272. * This function has two signatures and is sensitive to the
  2273. * amount of arguments passed to it:
  2274. * - `super('key')` -
  2275. * Returns the value of `key` when found within one of the
  2276. * parent classes.
  2277. * - `super('key', ['arg1', 'arg2'])` -
  2278. * Calls the `key()` method with parameters `arg1` and `arg2`
  2279. * when found within one of the parent classes.
  2280. *
  2281. * @memberof LuCI.baseclass
  2282. * @instance
  2283. *
  2284. * @param {string} key
  2285. * The name of the superclass member to retrieve.
  2286. *
  2287. * @param {Array&lt;*>} [callArgs]
  2288. * An optional array of function call parameters to use. When
  2289. * this parameter is specified, the found member value is called
  2290. * as function using the values of this array as arguments.
  2291. *
  2292. * @throws {ReferenceError}
  2293. * Throws a `ReferenceError` when `callArgs` are specified and
  2294. * the found member named by `key` is not a function value.
  2295. *
  2296. * @returns {*|null}
  2297. * Returns the value of the found member or the return value of
  2298. * the call to the found method. Returns `null` when no member
  2299. * was found in the parent class chain or when the call to the
  2300. * superclass method returned `null`.
  2301. */
  2302. super: function(key, callArgs) {
  2303. if (key == null)
  2304. return null;
  2305. var slotIdx = this.__id__ + '.' + key,
  2306. symStack = superContext[slotIdx],
  2307. protoCtx = null;
  2308. for (protoCtx = Object.getPrototypeOf(symStack ? symStack[0] : Object.getPrototypeOf(this));
  2309. protoCtx != null &amp;&amp; !protoCtx.hasOwnProperty(key);
  2310. protoCtx = Object.getPrototypeOf(protoCtx)) {}
  2311. if (protoCtx == null)
  2312. return null;
  2313. var res = protoCtx[key];
  2314. if (arguments.length > 1) {
  2315. if (typeof(res) != 'function')
  2316. throw new ReferenceError(key + ' is not a function in base class');
  2317. if (typeof(callArgs) != 'object')
  2318. callArgs = this.varargs(arguments, 1);
  2319. if (symStack)
  2320. symStack.unshift(protoCtx);
  2321. else
  2322. superContext[slotIdx] = [ protoCtx ];
  2323. res = res.apply(this, callArgs);
  2324. if (symStack &amp;&amp; symStack.length > 1)
  2325. symStack.shift(protoCtx);
  2326. else
  2327. delete superContext[slotIdx];
  2328. }
  2329. return res;
  2330. },
  2331. /**
  2332. * Returns a string representation of this class.
  2333. *
  2334. * @returns {string}
  2335. * Returns a string representation of this class containing the
  2336. * constructor functions `displayName` and describing the class
  2337. * members and their respective types.
  2338. */
  2339. toString: function() {
  2340. var s = '[' + this.constructor.displayName + ']', f = true;
  2341. for (var k in this) {
  2342. if (this.hasOwnProperty(k)) {
  2343. s += (f ? ' {\n' : '') + ' ' + k + ': ' + typeof(this[k]) + '\n';
  2344. f = false;
  2345. }
  2346. }
  2347. return s + (f ? '' : '}');
  2348. }
  2349. }
  2350. });
  2351. /**
  2352. * @class headers
  2353. * @memberof LuCI
  2354. * @hideconstructor
  2355. * @classdesc
  2356. *
  2357. * The `Headers` class is an internal utility class exposed in HTTP
  2358. * response objects using the `response.headers` property.
  2359. */
  2360. var Headers = Class.extend(/** @lends LuCI.headers.prototype */ {
  2361. __name__: 'LuCI.headers',
  2362. __init__: function(xhr) {
  2363. var hdrs = this.headers = {};
  2364. xhr.getAllResponseHeaders().split(/\r\n/).forEach(function(line) {
  2365. var m = /^([^:]+):(.*)$/.exec(line);
  2366. if (m != null)
  2367. hdrs[m[1].trim().toLowerCase()] = m[2].trim();
  2368. });
  2369. },
  2370. /**
  2371. * Checks whether the given header name is present.
  2372. * Note: Header-Names are case-insensitive.
  2373. *
  2374. * @instance
  2375. * @memberof LuCI.headers
  2376. * @param {string} name
  2377. * The header name to check
  2378. *
  2379. * @returns {boolean}
  2380. * Returns `true` if the header name is present, `false` otherwise
  2381. */
  2382. has: function(name) {
  2383. return this.headers.hasOwnProperty(String(name).toLowerCase());
  2384. },
  2385. /**
  2386. * Returns the value of the given header name.
  2387. * Note: Header-Names are case-insensitive.
  2388. *
  2389. * @instance
  2390. * @memberof LuCI.headers
  2391. * @param {string} name
  2392. * The header name to read
  2393. *
  2394. * @returns {string|null}
  2395. * The value of the given header name or `null` if the header isn't present.
  2396. */
  2397. get: function(name) {
  2398. var key = String(name).toLowerCase();
  2399. return this.headers.hasOwnProperty(key) ? this.headers[key] : null;
  2400. }
  2401. });
  2402. /**
  2403. * @class response
  2404. * @memberof LuCI
  2405. * @hideconstructor
  2406. * @classdesc
  2407. *
  2408. * The `Response` class is an internal utility class representing HTTP responses.
  2409. */
  2410. var Response = Class.extend({
  2411. __name__: 'LuCI.response',
  2412. __init__: function(xhr, url, duration, headers, content) {
  2413. /**
  2414. * Describes whether the response is successful (status codes `200..299`) or not
  2415. * @instance
  2416. * @memberof LuCI.response
  2417. * @name ok
  2418. * @type {boolean}
  2419. */
  2420. this.ok = (xhr.status >= 200 &amp;&amp; xhr.status &lt;= 299);
  2421. /**
  2422. * The numeric HTTP status code of the response
  2423. * @instance
  2424. * @memberof LuCI.response
  2425. * @name status
  2426. * @type {number}
  2427. */
  2428. this.status = xhr.status;
  2429. /**
  2430. * The HTTP status description message of the response
  2431. * @instance
  2432. * @memberof LuCI.response
  2433. * @name statusText
  2434. * @type {string}
  2435. */
  2436. this.statusText = xhr.statusText;
  2437. /**
  2438. * The HTTP headers of the response
  2439. * @instance
  2440. * @memberof LuCI.response
  2441. * @name headers
  2442. * @type {LuCI.headers}
  2443. */
  2444. this.headers = (headers != null) ? headers : new Headers(xhr);
  2445. /**
  2446. * The total duration of the HTTP request in milliseconds
  2447. * @instance
  2448. * @memberof LuCI.response
  2449. * @name duration
  2450. * @type {number}
  2451. */
  2452. this.duration = duration;
  2453. /**
  2454. * The final URL of the request, i.e. after following redirects.
  2455. * @instance
  2456. * @memberof LuCI.response
  2457. * @name url
  2458. * @type {string}
  2459. */
  2460. this.url = url;
  2461. /* privates */
  2462. this.xhr = xhr;
  2463. if (content instanceof Blob) {
  2464. this.responseBlob = content;
  2465. this.responseJSON = null;
  2466. this.responseText = null;
  2467. }
  2468. else if (content != null &amp;&amp; typeof(content) == 'object') {
  2469. this.responseBlob = null;
  2470. this.responseJSON = content;
  2471. this.responseText = null;
  2472. }
  2473. else if (content != null) {
  2474. this.responseBlob = null;
  2475. this.responseJSON = null;
  2476. this.responseText = String(content);
  2477. }
  2478. else {
  2479. this.responseJSON = null;
  2480. if (xhr.responseType == 'blob') {
  2481. this.responseBlob = xhr.response;
  2482. this.responseText = null;
  2483. }
  2484. else {
  2485. this.responseBlob = null;
  2486. this.responseText = xhr.responseText;
  2487. }
  2488. }
  2489. },
  2490. /**
  2491. * Clones the given response object, optionally overriding the content
  2492. * of the cloned instance.
  2493. *
  2494. * @instance
  2495. * @memberof LuCI.response
  2496. * @param {*} [content]
  2497. * Override the content of the cloned response. Object values will be
  2498. * treated as JSON response data, all other types will be converted
  2499. * using `String()` and treated as response text.
  2500. *
  2501. * @returns {LuCI.response}
  2502. * The cloned `Response` instance.
  2503. */
  2504. clone: function(content) {
  2505. var copy = new Response(this.xhr, this.url, this.duration, this.headers, content);
  2506. copy.ok = this.ok;
  2507. copy.status = this.status;
  2508. copy.statusText = this.statusText;
  2509. return copy;
  2510. },
  2511. /**
  2512. * Access the response content as JSON data.
  2513. *
  2514. * @instance
  2515. * @memberof LuCI.response
  2516. * @throws {SyntaxError}
  2517. * Throws `SyntaxError` if the content isn't valid JSON.
  2518. *
  2519. * @returns {*}
  2520. * The parsed JSON data.
  2521. */
  2522. json: function() {
  2523. if (this.responseJSON == null)
  2524. this.responseJSON = JSON.parse(this.responseText);
  2525. return this.responseJSON;
  2526. },
  2527. /**
  2528. * Access the response content as string.
  2529. *
  2530. * @instance
  2531. * @memberof LuCI.response
  2532. * @returns {string}
  2533. * The response content.
  2534. */
  2535. text: function() {
  2536. if (this.responseText == null &amp;&amp; this.responseJSON != null)
  2537. this.responseText = JSON.stringify(this.responseJSON);
  2538. return this.responseText;
  2539. },
  2540. /**
  2541. * Access the response content as blob.
  2542. *
  2543. * @instance
  2544. * @memberof LuCI.response
  2545. * @returns {Blob}
  2546. * The response content as blob.
  2547. */
  2548. blob: function() {
  2549. return this.responseBlob;
  2550. }
  2551. });
  2552. var requestQueue = [];
  2553. function isQueueableRequest(opt) {
  2554. if (!classes.rpc)
  2555. return false;
  2556. if (opt.method != 'POST' || typeof(opt.content) != 'object')
  2557. return false;
  2558. if (opt.nobatch === true)
  2559. return false;
  2560. var rpcBaseURL = Request.expandURL(classes.rpc.getBaseURL());
  2561. return (rpcBaseURL != null &amp;&amp; opt.url.indexOf(rpcBaseURL) == 0);
  2562. }
  2563. function flushRequestQueue() {
  2564. if (!requestQueue.length)
  2565. return;
  2566. var reqopt = Object.assign({}, requestQueue[0][0], { content: [], nobatch: true }),
  2567. batch = [];
  2568. for (var i = 0; i &lt; requestQueue.length; i++) {
  2569. batch[i] = requestQueue[i];
  2570. reqopt.content[i] = batch[i][0].content;
  2571. }
  2572. requestQueue.length = 0;
  2573. Request.request(rpcBaseURL, reqopt).then(function(reply) {
  2574. var json = null, req = null;
  2575. try { json = reply.json() }
  2576. catch(e) { }
  2577. while ((req = batch.shift()) != null)
  2578. if (Array.isArray(json) &amp;&amp; json.length)
  2579. req[2].call(reqopt, reply.clone(json.shift()));
  2580. else
  2581. req[1].call(reqopt, new Error('No related RPC reply'));
  2582. }).catch(function(error) {
  2583. var req = null;
  2584. while ((req = batch.shift()) != null)
  2585. req[1].call(reqopt, error);
  2586. });
  2587. }
  2588. /**
  2589. * @class request
  2590. * @memberof LuCI
  2591. * @hideconstructor
  2592. * @classdesc
  2593. *
  2594. * The `Request` class allows initiating HTTP requests and provides utilities
  2595. * for dealing with responses.
  2596. */
  2597. var Request = Class.singleton(/** @lends LuCI.request.prototype */ {
  2598. __name__: 'LuCI.request',
  2599. interceptors: [],
  2600. /**
  2601. * Turn the given relative URL into an absolute URL if necessary.
  2602. *
  2603. * @instance
  2604. * @memberof LuCI.request
  2605. * @param {string} url
  2606. * The URL to convert.
  2607. *
  2608. * @returns {string}
  2609. * The absolute URL derived from the given one, or the original URL
  2610. * if it already was absolute.
  2611. */
  2612. expandURL: function(url) {
  2613. if (!/^(?:[^/]+:)?\/\//.test(url))
  2614. url = location.protocol + '//' + location.host + url;
  2615. return url;
  2616. },
  2617. /**
  2618. * @typedef {Object} RequestOptions
  2619. * @memberof LuCI.request
  2620. *
  2621. * @property {string} [method=GET]
  2622. * The HTTP method to use, e.g. `GET` or `POST`.
  2623. *
  2624. * @property {Object&lt;string, Object|string>} [query]
  2625. * Query string data to append to the URL. Non-string values of the
  2626. * given object will be converted to JSON.
  2627. *
  2628. * @property {boolean} [cache=false]
  2629. * Specifies whether the HTTP response may be retrieved from cache.
  2630. *
  2631. * @property {string} [username]
  2632. * Provides a username for HTTP basic authentication.
  2633. *
  2634. * @property {string} [password]
  2635. * Provides a password for HTTP basic authentication.
  2636. *
  2637. * @property {number} [timeout]
  2638. * Specifies the request timeout in milliseconds.
  2639. *
  2640. * @property {boolean} [credentials=false]
  2641. * Whether to include credentials such as cookies in the request.
  2642. *
  2643. * @property {string} [responseType=text]
  2644. * Overrides the request response type. Valid values or `text` to
  2645. * interpret the response as UTF-8 string or `blob` to handle the
  2646. * response as binary `Blob` data.
  2647. *
  2648. * @property {*} [content]
  2649. * Specifies the HTTP message body to send along with the request.
  2650. * If the value is a function, it is invoked and the return value
  2651. * used as content, if it is a FormData instance, it is used as-is,
  2652. * if it is an object, it will be converted to JSON, in all other
  2653. * cases it is converted to a string.
  2654. *
  2655. * @property {Object&lt;string, string>} [header]
  2656. * Specifies HTTP headers to set for the request.
  2657. *
  2658. * @property {function} [progress]
  2659. * An optional request callback function which receives ProgressEvent
  2660. * instances as sole argument during the HTTP request transfer.
  2661. */
  2662. /**
  2663. * Initiate an HTTP request to the given target.
  2664. *
  2665. * @instance
  2666. * @memberof LuCI.request
  2667. * @param {string} target
  2668. * The URL to request.
  2669. *
  2670. * @param {LuCI.request.RequestOptions} [options]
  2671. * Additional options to configure the request.
  2672. *
  2673. * @returns {Promise&lt;LuCI.response>}
  2674. * The resulting HTTP response.
  2675. */
  2676. request: function(target, options) {
  2677. return Promise.resolve(target).then((function(url) {
  2678. var state = { xhr: new XMLHttpRequest(), url: this.expandURL(url), start: Date.now() },
  2679. opt = Object.assign({}, options, state),
  2680. content = null,
  2681. contenttype = null,
  2682. callback = this.handleReadyStateChange;
  2683. return new Promise(function(resolveFn, rejectFn) {
  2684. opt.xhr.onreadystatechange = callback.bind(opt, resolveFn, rejectFn);
  2685. opt.method = String(opt.method || 'GET').toUpperCase();
  2686. if ('query' in opt) {
  2687. var q = (opt.query != null) ? Object.keys(opt.query).map(function(k) {
  2688. if (opt.query[k] != null) {
  2689. var v = (typeof(opt.query[k]) == 'object')
  2690. ? JSON.stringify(opt.query[k])
  2691. : String(opt.query[k]);
  2692. return '%s=%s'.format(encodeURIComponent(k), encodeURIComponent(v));
  2693. }
  2694. else {
  2695. return encodeURIComponent(k);
  2696. }
  2697. }).join('&amp;') : '';
  2698. if (q !== '') {
  2699. switch (opt.method) {
  2700. case 'GET':
  2701. case 'HEAD':
  2702. case 'OPTIONS':
  2703. opt.url += ((/\?/).test(opt.url) ? '&amp;' : '?') + q;
  2704. break;
  2705. default:
  2706. if (content == null) {
  2707. content = q;
  2708. contenttype = 'application/x-www-form-urlencoded';
  2709. }
  2710. }
  2711. }
  2712. }
  2713. if (!opt.cache)
  2714. opt.url += ((/\?/).test(opt.url) ? '&amp;' : '?') + (new Date()).getTime();
  2715. if (isQueueableRequest(opt)) {
  2716. requestQueue.push([opt, rejectFn, resolveFn]);
  2717. requestAnimationFrame(flushRequestQueue);
  2718. return;
  2719. }
  2720. if ('username' in opt &amp;&amp; 'password' in opt)
  2721. opt.xhr.open(opt.method, opt.url, true, opt.username, opt.password);
  2722. else
  2723. opt.xhr.open(opt.method, opt.url, true);
  2724. opt.xhr.responseType = opt.responseType || 'text';
  2725. if ('overrideMimeType' in opt.xhr)
  2726. opt.xhr.overrideMimeType('application/octet-stream');
  2727. if ('timeout' in opt)
  2728. opt.xhr.timeout = +opt.timeout;
  2729. if ('credentials' in opt)
  2730. opt.xhr.withCredentials = !!opt.credentials;
  2731. if (opt.content != null) {
  2732. switch (typeof(opt.content)) {
  2733. case 'function':
  2734. content = opt.content(opt.xhr);
  2735. break;
  2736. case 'object':
  2737. if (!(opt.content instanceof FormData)) {
  2738. content = JSON.stringify(opt.content);
  2739. contenttype = 'application/json';
  2740. }
  2741. else {
  2742. content = opt.content;
  2743. }
  2744. break;
  2745. default:
  2746. content = String(opt.content);
  2747. }
  2748. }
  2749. if ('headers' in opt)
  2750. for (var header in opt.headers)
  2751. if (opt.headers.hasOwnProperty(header)) {
  2752. if (header.toLowerCase() != 'content-type')
  2753. opt.xhr.setRequestHeader(header, opt.headers[header]);
  2754. else
  2755. contenttype = opt.headers[header];
  2756. }
  2757. if ('progress' in opt &amp;&amp; 'upload' in opt.xhr)
  2758. opt.xhr.upload.addEventListener('progress', opt.progress);
  2759. if (contenttype != null)
  2760. opt.xhr.setRequestHeader('Content-Type', contenttype);
  2761. try {
  2762. opt.xhr.send(content);
  2763. }
  2764. catch (e) {
  2765. rejectFn.call(opt, e);
  2766. }
  2767. });
  2768. }).bind(this));
  2769. },
  2770. handleReadyStateChange: function(resolveFn, rejectFn, ev) {
  2771. var xhr = this.xhr,
  2772. duration = Date.now() - this.start;
  2773. if (xhr.readyState !== 4)
  2774. return;
  2775. if (xhr.status === 0 &amp;&amp; xhr.statusText === '') {
  2776. if (duration >= this.timeout)
  2777. rejectFn.call(this, new Error('XHR request timed out'));
  2778. else
  2779. rejectFn.call(this, new Error('XHR request aborted by browser'));
  2780. }
  2781. else {
  2782. var response = new Response(
  2783. xhr, xhr.responseURL || this.url, duration);
  2784. Promise.all(Request.interceptors.map(function(fn) { return fn(response) }))
  2785. .then(resolveFn.bind(this, response))
  2786. .catch(rejectFn.bind(this));
  2787. }
  2788. },
  2789. /**
  2790. * Initiate an HTTP GET request to the given target.
  2791. *
  2792. * @instance
  2793. * @memberof LuCI.request
  2794. * @param {string} url
  2795. * The URL to request.
  2796. *
  2797. * @param {LuCI.request.RequestOptions} [options]
  2798. * Additional options to configure the request.
  2799. *
  2800. * @returns {Promise&lt;LuCI.response>}
  2801. * The resulting HTTP response.
  2802. */
  2803. get: function(url, options) {
  2804. return this.request(url, Object.assign({ method: 'GET' }, options));
  2805. },
  2806. /**
  2807. * Initiate an HTTP POST request to the given target.
  2808. *
  2809. * @instance
  2810. * @memberof LuCI.request
  2811. * @param {string} url
  2812. * The URL to request.
  2813. *
  2814. * @param {*} [data]
  2815. * The request data to send, see {@link LuCI.request.RequestOptions} for details.
  2816. *
  2817. * @param {LuCI.request.RequestOptions} [options]
  2818. * Additional options to configure the request.
  2819. *
  2820. * @returns {Promise&lt;LuCI.response>}
  2821. * The resulting HTTP response.
  2822. */
  2823. post: function(url, data, options) {
  2824. return this.request(url, Object.assign({ method: 'POST', content: data }, options));
  2825. },
  2826. /**
  2827. * Interceptor functions are invoked whenever an HTTP reply is received, in the order
  2828. * these functions have been registered.
  2829. * @callback LuCI.request.interceptorFn
  2830. * @param {LuCI.response} res
  2831. * The HTTP response object
  2832. */
  2833. /**
  2834. * Register an HTTP response interceptor function. Interceptor
  2835. * functions are useful to perform default actions on incoming HTTP
  2836. * responses, such as checking for expired authentication or for
  2837. * implementing request retries before returning a failure.
  2838. *
  2839. * @instance
  2840. * @memberof LuCI.request
  2841. * @param {LuCI.request.interceptorFn} interceptorFn
  2842. * The interceptor function to register.
  2843. *
  2844. * @returns {LuCI.request.interceptorFn}
  2845. * The registered function.
  2846. */
  2847. addInterceptor: function(interceptorFn) {
  2848. if (typeof(interceptorFn) == 'function')
  2849. this.interceptors.push(interceptorFn);
  2850. return interceptorFn;
  2851. },
  2852. /**
  2853. * Remove an HTTP response interceptor function. The passed function
  2854. * value must be the very same value that was used to register the
  2855. * function.
  2856. *
  2857. * @instance
  2858. * @memberof LuCI.request
  2859. * @param {LuCI.request.interceptorFn} interceptorFn
  2860. * The interceptor function to remove.
  2861. *
  2862. * @returns {boolean}
  2863. * Returns `true` if any function has been removed, else `false`.
  2864. */
  2865. removeInterceptor: function(interceptorFn) {
  2866. var oldlen = this.interceptors.length, i = oldlen;
  2867. while (i--)
  2868. if (this.interceptors[i] === interceptorFn)
  2869. this.interceptors.splice(i, 1);
  2870. return (this.interceptors.length &lt; oldlen);
  2871. },
  2872. /**
  2873. * @class
  2874. * @memberof LuCI.request
  2875. * @hideconstructor
  2876. * @classdesc
  2877. *
  2878. * The `Request.poll` class provides some convenience wrappers around
  2879. * {@link LuCI.poll} mainly to simplify registering repeating HTTP
  2880. * request calls as polling functions.
  2881. */
  2882. poll: {
  2883. /**
  2884. * The callback function is invoked whenever an HTTP reply to a
  2885. * polled request is received or when the polled request timed
  2886. * out.
  2887. *
  2888. * @callback LuCI.request.poll~callbackFn
  2889. * @param {LuCI.response} res
  2890. * The HTTP response object.
  2891. *
  2892. * @param {*} data
  2893. * The response JSON if the response could be parsed as such,
  2894. * else `null`.
  2895. *
  2896. * @param {number} duration
  2897. * The total duration of the request in milliseconds.
  2898. */
  2899. /**
  2900. * Register a repeating HTTP request with an optional callback
  2901. * to invoke whenever a response for the request is received.
  2902. *
  2903. * @instance
  2904. * @memberof LuCI.request.poll
  2905. * @param {number} interval
  2906. * The poll interval in seconds.
  2907. *
  2908. * @param {string} url
  2909. * The URL to request on each poll.
  2910. *
  2911. * @param {LuCI.request.RequestOptions} [options]
  2912. * Additional options to configure the request.
  2913. *
  2914. * @param {LuCI.request.poll~callbackFn} [callback]
  2915. * {@link LuCI.request.poll~callbackFn Callback} function to
  2916. * invoke for each HTTP reply.
  2917. *
  2918. * @throws {TypeError}
  2919. * Throws `TypeError` when an invalid interval was passed.
  2920. *
  2921. * @returns {function}
  2922. * Returns the internally created poll function.
  2923. */
  2924. add: function(interval, url, options, callback) {
  2925. if (isNaN(interval) || interval &lt;= 0)
  2926. throw new TypeError('Invalid poll interval');
  2927. var ival = interval >>> 0,
  2928. opts = Object.assign({}, options, { timeout: ival * 1000 - 5 });
  2929. var fn = function() {
  2930. return Request.request(url, opts).then(function(res) {
  2931. if (!Poll.active())
  2932. return;
  2933. var res_json = null;
  2934. try {
  2935. res_json = res.json();
  2936. }
  2937. catch (err) {}
  2938. callback(res, res_json, res.duration);
  2939. });
  2940. };
  2941. return (Poll.add(fn, ival) ? fn : null);
  2942. },
  2943. /**
  2944. * Remove a polling request that has been previously added using `add()`.
  2945. * This function is essentially a wrapper around
  2946. * {@link LuCI.poll.remove LuCI.poll.remove()}.
  2947. *
  2948. * @instance
  2949. * @memberof LuCI.request.poll
  2950. * @param {function} entry
  2951. * The poll function returned by {@link LuCI.request.poll#add add()}.
  2952. *
  2953. * @returns {boolean}
  2954. * Returns `true` if any function has been removed, else `false`.
  2955. */
  2956. remove: function(entry) { return Poll.remove(entry) },
  2957. /**
  2958. * Alias for {@link LuCI.poll.start LuCI.poll.start()}.
  2959. *
  2960. * @instance
  2961. * @memberof LuCI.request.poll
  2962. */
  2963. start: function() { return Poll.start() },
  2964. /**
  2965. * Alias for {@link LuCI.poll.stop LuCI.poll.stop()}.
  2966. *
  2967. * @instance
  2968. * @memberof LuCI.request.poll
  2969. */
  2970. stop: function() { return Poll.stop() },
  2971. /**
  2972. * Alias for {@link LuCI.poll.active LuCI.poll.active()}.
  2973. *
  2974. * @instance
  2975. * @memberof LuCI.request.poll
  2976. */
  2977. active: function() { return Poll.active() }
  2978. }
  2979. });
  2980. /**
  2981. * @class poll
  2982. * @memberof LuCI
  2983. * @hideconstructor
  2984. * @classdesc
  2985. *
  2986. * The `Poll` class allows registering and unregistering poll actions,
  2987. * as well as starting, stopping and querying the state of the polling
  2988. * loop.
  2989. */
  2990. var Poll = Class.singleton(/** @lends LuCI.poll.prototype */ {
  2991. __name__: 'LuCI.poll',
  2992. queue: [],
  2993. /**
  2994. * Add a new operation to the polling loop. If the polling loop is not
  2995. * already started at this point, it will be implicitly started.
  2996. *
  2997. * @instance
  2998. * @memberof LuCI.poll
  2999. * @param {function} fn
  3000. * The function to invoke on each poll interval.
  3001. *
  3002. * @param {number} interval
  3003. * The poll interval in seconds.
  3004. *
  3005. * @throws {TypeError}
  3006. * Throws `TypeError` when an invalid interval was passed.
  3007. *
  3008. * @returns {boolean}
  3009. * Returns `true` if the function has been added or `false` if it
  3010. * already is registered.
  3011. */
  3012. add: function(fn, interval) {
  3013. if (interval == null || interval &lt;= 0)
  3014. interval = env.pollinterval || null;
  3015. if (isNaN(interval) || typeof(fn) != 'function')
  3016. throw new TypeError('Invalid argument to LuCI.poll.add()');
  3017. for (var i = 0; i &lt; this.queue.length; i++)
  3018. if (this.queue[i].fn === fn)
  3019. return false;
  3020. var e = {
  3021. r: true,
  3022. i: interval >>> 0,
  3023. fn: fn
  3024. };
  3025. this.queue.push(e);
  3026. if (this.tick != null &amp;&amp; !this.active())
  3027. this.start();
  3028. return true;
  3029. },
  3030. /**
  3031. * Remove an operation from the polling loop. If no further operations
  3032. * are registered, the polling loop is implicitly stopped.
  3033. *
  3034. * @instance
  3035. * @memberof LuCI.poll
  3036. * @param {function} fn
  3037. * The function to remove.
  3038. *
  3039. * @throws {TypeError}
  3040. * Throws `TypeError` when the given argument isn't a function.
  3041. *
  3042. * @returns {boolean}
  3043. * Returns `true` if the function has been removed or `false` if it
  3044. * wasn't found.
  3045. */
  3046. remove: function(fn) {
  3047. if (typeof(fn) != 'function')
  3048. throw new TypeError('Invalid argument to LuCI.poll.remove()');
  3049. var len = this.queue.length;
  3050. for (var i = len; i > 0; i--)
  3051. if (this.queue[i-1].fn === fn)
  3052. this.queue.splice(i-1, 1);
  3053. if (!this.queue.length &amp;&amp; this.stop())
  3054. this.tick = 0;
  3055. return (this.queue.length != len);
  3056. },
  3057. /**
  3058. * (Re)start the polling loop. Dispatches a custom `poll-start` event
  3059. * to the `document` object upon successful start.
  3060. *
  3061. * @instance
  3062. * @memberof LuCI.poll
  3063. * @returns {boolean}
  3064. * Returns `true` if polling has been started (or if no functions
  3065. * where registered) or `false` when the polling loop already runs.
  3066. */
  3067. start: function() {
  3068. if (this.active())
  3069. return false;
  3070. this.tick = 0;
  3071. if (this.queue.length) {
  3072. this.timer = window.setInterval(this.step, 1000);
  3073. this.step();
  3074. document.dispatchEvent(new CustomEvent('poll-start'));
  3075. }
  3076. return true;
  3077. },
  3078. /**
  3079. * Stop the polling loop. Dispatches a custom `poll-stop` event
  3080. * to the `document` object upon successful stop.
  3081. *
  3082. * @instance
  3083. * @memberof LuCI.poll
  3084. * @returns {boolean}
  3085. * Returns `true` if polling has been stopped or `false` if it didn't
  3086. * run to begin with.
  3087. */
  3088. stop: function() {
  3089. if (!this.active())
  3090. return false;
  3091. document.dispatchEvent(new CustomEvent('poll-stop'));
  3092. window.clearInterval(this.timer);
  3093. delete this.timer;
  3094. delete this.tick;
  3095. return true;
  3096. },
  3097. /* private */
  3098. step: function() {
  3099. for (var i = 0, e = null; (e = Poll.queue[i]) != null; i++) {
  3100. if ((Poll.tick % e.i) != 0)
  3101. continue;
  3102. if (!e.r)
  3103. continue;
  3104. e.r = false;
  3105. Promise.resolve(e.fn()).finally((function() { this.r = true }).bind(e));
  3106. }
  3107. Poll.tick = (Poll.tick + 1) % Math.pow(2, 32);
  3108. },
  3109. /**
  3110. * Test whether the polling loop is running.
  3111. *
  3112. * @instance
  3113. * @memberof LuCI.poll
  3114. * @returns {boolean} - Returns `true` if polling is active, else `false`.
  3115. */
  3116. active: function() {
  3117. return (this.timer != null);
  3118. }
  3119. });
  3120. /**
  3121. * @class dom
  3122. * @memberof LuCI
  3123. * @hideconstructor
  3124. * @classdesc
  3125. *
  3126. * The `dom` class provides convenience method for creating and
  3127. * manipulating DOM elements.
  3128. *
  3129. * To import the class in views, use `'require dom'`, to import it in
  3130. * external JavaScript, use `L.require("dom").then(...)`.
  3131. */
  3132. var DOM = Class.singleton(/** @lends LuCI.dom.prototype */ {
  3133. __name__: 'LuCI.dom',
  3134. /**
  3135. * Tests whether the given argument is a valid DOM `Node`.
  3136. *
  3137. * @instance
  3138. * @memberof LuCI.dom
  3139. * @param {*} e
  3140. * The value to test.
  3141. *
  3142. * @returns {boolean}
  3143. * Returns `true` if the value is a DOM `Node`, else `false`.
  3144. */
  3145. elem: function(e) {
  3146. return (e != null &amp;&amp; typeof(e) == 'object' &amp;&amp; 'nodeType' in e);
  3147. },
  3148. /**
  3149. * Parses a given string as HTML and returns the first child node.
  3150. *
  3151. * @instance
  3152. * @memberof LuCI.dom
  3153. * @param {string} s
  3154. * A string containing an HTML fragment to parse. Note that only
  3155. * the first result of the resulting structure is returned, so an
  3156. * input value of `&lt;div>foo&lt;/div> &lt;div>bar&lt;/div>` will only return
  3157. * the first `div` element node.
  3158. *
  3159. * @returns {Node}
  3160. * Returns the first DOM `Node` extracted from the HTML fragment or
  3161. * `null` on parsing failures or if no element could be found.
  3162. */
  3163. parse: function(s) {
  3164. var elem = null;
  3165. try {
  3166. domParser = domParser || new DOMParser();
  3167. elem = domParser.parseFromString(s, 'text/html').body.firstChild;
  3168. }
  3169. catch(e) {}
  3170. return elem;
  3171. },
  3172. /**
  3173. * Tests whether a given `Node` matches the given query selector.
  3174. *
  3175. * This function is a convenience wrapper around the standard
  3176. * `Node.matches("selector")` function with the added benefit that
  3177. * the `node` argument may be a non-`Node` value, in which case
  3178. * this function simply returns `false`.
  3179. *
  3180. * @instance
  3181. * @memberof LuCI.dom
  3182. * @param {*} node
  3183. * The `Node` argument to test the selector against.
  3184. *
  3185. * @param {string} [selector]
  3186. * The query selector expression to test against the given node.
  3187. *
  3188. * @returns {boolean}
  3189. * Returns `true` if the given node matches the specified selector
  3190. * or `false` when the node argument is no valid DOM `Node` or the
  3191. * selector didn't match.
  3192. */
  3193. matches: function(node, selector) {
  3194. var m = this.elem(node) ? node.matches || node.msMatchesSelector : null;
  3195. return m ? m.call(node, selector) : false;
  3196. },
  3197. /**
  3198. * Returns the closest parent node that matches the given query
  3199. * selector expression.
  3200. *
  3201. * This function is a convenience wrapper around the standard
  3202. * `Node.closest("selector")` function with the added benefit that
  3203. * the `node` argument may be a non-`Node` value, in which case
  3204. * this function simply returns `null`.
  3205. *
  3206. * @instance
  3207. * @memberof LuCI.dom
  3208. * @param {*} node
  3209. * The `Node` argument to find the closest parent for.
  3210. *
  3211. * @param {string} [selector]
  3212. * The query selector expression to test against each parent.
  3213. *
  3214. * @returns {Node|null}
  3215. * Returns the closest parent node matching the selector or
  3216. * `null` when the node argument is no valid DOM `Node` or the
  3217. * selector didn't match any parent.
  3218. */
  3219. parent: function(node, selector) {
  3220. if (this.elem(node) &amp;&amp; node.closest)
  3221. return node.closest(selector);
  3222. while (this.elem(node))
  3223. if (this.matches(node, selector))
  3224. return node;
  3225. else
  3226. node = node.parentNode;
  3227. return null;
  3228. },
  3229. /**
  3230. * Appends the given children data to the given node.
  3231. *
  3232. * @instance
  3233. * @memberof LuCI.dom
  3234. * @param {*} node
  3235. * The `Node` argument to append the children to.
  3236. *
  3237. * @param {*} [children]
  3238. * The children to append to the given node.
  3239. *
  3240. * When `children` is an array, then each item of the array
  3241. * will be either appended as child element or text node,
  3242. * depending on whether the item is a DOM `Node` instance or
  3243. * some other non-`null` value. Non-`Node`, non-`null` values
  3244. * will be converted to strings first before being passed as
  3245. * argument to `createTextNode()`.
  3246. *
  3247. * When `children` is a function, it will be invoked with
  3248. * the passed `node` argument as sole parameter and the `append`
  3249. * function will be invoked again, with the given `node` argument
  3250. * as first and the return value of the `children` function as
  3251. * second parameter.
  3252. *
  3253. * When `children` is a DOM `Node` instance, it will be
  3254. * appended to the given `node`.
  3255. *
  3256. * When `children` is any other non-`null` value, it will be
  3257. * converted to a string and appended to the `innerHTML` property
  3258. * of the given `node`.
  3259. *
  3260. * @returns {Node|null}
  3261. * Returns the last children `Node` appended to the node or `null`
  3262. * if either the `node` argument was no valid DOM `node` or if the
  3263. * `children` was `null` or didn't result in further DOM nodes.
  3264. */
  3265. append: function(node, children) {
  3266. if (!this.elem(node))
  3267. return null;
  3268. if (Array.isArray(children)) {
  3269. for (var i = 0; i &lt; children.length; i++)
  3270. if (this.elem(children[i]))
  3271. node.appendChild(children[i]);
  3272. else if (children !== null &amp;&amp; children !== undefined)
  3273. node.appendChild(document.createTextNode('' + children[i]));
  3274. return node.lastChild;
  3275. }
  3276. else if (typeof(children) === 'function') {
  3277. return this.append(node, children(node));
  3278. }
  3279. else if (this.elem(children)) {
  3280. return node.appendChild(children);
  3281. }
  3282. else if (children !== null &amp;&amp; children !== undefined) {
  3283. node.innerHTML = '' + children;
  3284. return node.lastChild;
  3285. }
  3286. return null;
  3287. },
  3288. /**
  3289. * Replaces the content of the given node with the given children.
  3290. *
  3291. * This function first removes any children of the given DOM
  3292. * `Node` and then adds the given children following the
  3293. * rules outlined below.
  3294. *
  3295. * @instance
  3296. * @memberof LuCI.dom
  3297. * @param {*} node
  3298. * The `Node` argument to replace the children of.
  3299. *
  3300. * @param {*} [children]
  3301. * The children to replace into the given node.
  3302. *
  3303. * When `children` is an array, then each item of the array
  3304. * will be either appended as child element or text node,
  3305. * depending on whether the item is a DOM `Node` instance or
  3306. * some other non-`null` value. Non-`Node`, non-`null` values
  3307. * will be converted to strings first before being passed as
  3308. * argument to `createTextNode()`.
  3309. *
  3310. * When `children` is a function, it will be invoked with
  3311. * the passed `node` argument as sole parameter and the `append`
  3312. * function will be invoked again, with the given `node` argument
  3313. * as first and the return value of the `children` function as
  3314. * second parameter.
  3315. *
  3316. * When `children` is a DOM `Node` instance, it will be
  3317. * appended to the given `node`.
  3318. *
  3319. * When `children` is any other non-`null` value, it will be
  3320. * converted to a string and appended to the `innerHTML` property
  3321. * of the given `node`.
  3322. *
  3323. * @returns {Node|null}
  3324. * Returns the last children `Node` appended to the node or `null`
  3325. * if either the `node` argument was no valid DOM `node` or if the
  3326. * `children` was `null` or didn't result in further DOM nodes.
  3327. */
  3328. content: function(node, children) {
  3329. if (!this.elem(node))
  3330. return null;
  3331. var dataNodes = node.querySelectorAll('[data-idref]');
  3332. for (var i = 0; i &lt; dataNodes.length; i++)
  3333. delete this.registry[dataNodes[i].getAttribute('data-idref')];
  3334. while (node.firstChild)
  3335. node.removeChild(node.firstChild);
  3336. return this.append(node, children);
  3337. },
  3338. /**
  3339. * Sets attributes or registers event listeners on element nodes.
  3340. *
  3341. * @instance
  3342. * @memberof LuCI.dom
  3343. * @param {*} node
  3344. * The `Node` argument to set the attributes or add the event
  3345. * listeners for. When the given `node` value is not a valid
  3346. * DOM `Node`, the function returns and does nothing.
  3347. *
  3348. * @param {string|Object&lt;string, *>} key
  3349. * Specifies either the attribute or event handler name to use,
  3350. * or an object containing multiple key, value pairs which are
  3351. * each added to the node as either attribute or event handler,
  3352. * depending on the respective value.
  3353. *
  3354. * @param {*} [val]
  3355. * Specifies the attribute value or event handler function to add.
  3356. * If the `key` parameter is an `Object`, this parameter will be
  3357. * ignored.
  3358. *
  3359. * When `val` is of type function, it will be registered as event
  3360. * handler on the given `node` with the `key` parameter being the
  3361. * event name.
  3362. *
  3363. * When `val` is of type object, it will be serialized as JSON and
  3364. * added as attribute to the given `node`, using the given `key`
  3365. * as attribute name.
  3366. *
  3367. * When `val` is of any other type, it will be added as attribute
  3368. * to the given `node` as-is, with the underlying `setAttribute()`
  3369. * call implicitly turning it into a string.
  3370. */
  3371. attr: function(node, key, val) {
  3372. if (!this.elem(node))
  3373. return null;
  3374. var attr = null;
  3375. if (typeof(key) === 'object' &amp;&amp; key !== null)
  3376. attr = key;
  3377. else if (typeof(key) === 'string')
  3378. attr = {}, attr[key] = val;
  3379. for (key in attr) {
  3380. if (!attr.hasOwnProperty(key) || attr[key] == null)
  3381. continue;
  3382. switch (typeof(attr[key])) {
  3383. case 'function':
  3384. node.addEventListener(key, attr[key]);
  3385. break;
  3386. case 'object':
  3387. node.setAttribute(key, JSON.stringify(attr[key]));
  3388. break;
  3389. default:
  3390. node.setAttribute(key, attr[key]);
  3391. }
  3392. }
  3393. },
  3394. /**
  3395. * Creates a new DOM `Node` from the given `html`, `attr` and
  3396. * `data` parameters.
  3397. *
  3398. * This function has multiple signatures, it can be either invoked
  3399. * in the form `create(html[, attr[, data]])` or in the form
  3400. * `create(html[, data])`. The used variant is determined from the
  3401. * type of the second argument.
  3402. *
  3403. * @instance
  3404. * @memberof LuCI.dom
  3405. * @param {*} html
  3406. * Describes the node to create.
  3407. *
  3408. * When the value of `html` is of type array, a `DocumentFragment`
  3409. * node is created and each item of the array is first converted
  3410. * to a DOM `Node` by passing it through `create()` and then added
  3411. * as child to the fragment.
  3412. *
  3413. * When the value of `html` is a DOM `Node` instance, no new
  3414. * element will be created but the node will be used as-is.
  3415. *
  3416. * When the value of `html` is a string starting with `&lt;`, it will
  3417. * be passed to `dom.parse()` and the resulting value is used.
  3418. *
  3419. * When the value of `html` is any other string, it will be passed
  3420. * to `document.createElement()` for creating a new DOM `Node` of
  3421. * the given name.
  3422. *
  3423. * @param {Object&lt;string, *>} [attr]
  3424. * Specifies an Object of key, value pairs to set as attributes
  3425. * or event handlers on the created node. Refer to
  3426. * {@link LuCI.dom#attr dom.attr()} for details.
  3427. *
  3428. * @param {*} [data]
  3429. * Specifies children to append to the newly created element.
  3430. * Refer to {@link LuCI.dom#append dom.append()} for details.
  3431. *
  3432. * @throws {InvalidCharacterError}
  3433. * Throws an `InvalidCharacterError` when the given `html`
  3434. * argument contained malformed markup (such as not escaped
  3435. * `&amp;` characters in XHTML mode) or when the given node name
  3436. * in `html` contains characters which are not legal in DOM
  3437. * element names, such as spaces.
  3438. *
  3439. * @returns {Node}
  3440. * Returns the newly created `Node`.
  3441. */
  3442. create: function() {
  3443. var html = arguments[0],
  3444. attr = arguments[1],
  3445. data = arguments[2],
  3446. elem;
  3447. if (!(attr instanceof Object) || Array.isArray(attr))
  3448. data = attr, attr = null;
  3449. if (Array.isArray(html)) {
  3450. elem = document.createDocumentFragment();
  3451. for (var i = 0; i &lt; html.length; i++)
  3452. elem.appendChild(this.create(html[i]));
  3453. }
  3454. else if (this.elem(html)) {
  3455. elem = html;
  3456. }
  3457. else if (html.charCodeAt(0) === 60) {
  3458. elem = this.parse(html);
  3459. }
  3460. else {
  3461. elem = document.createElement(html);
  3462. }
  3463. if (!elem)
  3464. return null;
  3465. this.attr(elem, attr);
  3466. this.append(elem, data);
  3467. return elem;
  3468. },
  3469. registry: {},
  3470. /**
  3471. * Attaches or detaches arbitrary data to and from a DOM `Node`.
  3472. *
  3473. * This function is useful to attach non-string values or runtime
  3474. * data that is not serializable to DOM nodes. To decouple data
  3475. * from the DOM, values are not added directly to nodes, but
  3476. * inserted into a registry instead which is then referenced by a
  3477. * string key stored as `data-idref` attribute in the node.
  3478. *
  3479. * This function has multiple signatures and is sensitive to the
  3480. * number of arguments passed to it.
  3481. *
  3482. * - `dom.data(node)` -
  3483. * Fetches all data associated with the given node.
  3484. * - `dom.data(node, key)` -
  3485. * Fetches a specific key associated with the given node.
  3486. * - `dom.data(node, key, val)` -
  3487. * Sets a specific key to the given value associated with the
  3488. * given node.
  3489. * - `dom.data(node, null)` -
  3490. * Clears any data associated with the node.
  3491. * - `dom.data(node, key, null)` -
  3492. * Clears the given key associated with the node.
  3493. *
  3494. * @instance
  3495. * @memberof LuCI.dom
  3496. * @param {Node} node
  3497. * The DOM `Node` instance to set or retrieve the data for.
  3498. *
  3499. * @param {string|null} [key]
  3500. * This is either a string specifying the key to retrieve, or
  3501. * `null` to unset the entire node data.
  3502. *
  3503. * @param {*|null} [val]
  3504. * This is either a non-`null` value to set for a given key or
  3505. * `null` to remove the given `key` from the specified node.
  3506. *
  3507. * @returns {*}
  3508. * Returns the get or set value, or `null` when no value could
  3509. * be found.
  3510. */
  3511. data: function(node, key, val) {
  3512. if (!node || !node.getAttribute)
  3513. return null;
  3514. var id = node.getAttribute('data-idref');
  3515. /* clear all data */
  3516. if (arguments.length > 1 &amp;&amp; key == null) {
  3517. if (id != null) {
  3518. node.removeAttribute('data-idref');
  3519. val = this.registry[id]
  3520. delete this.registry[id];
  3521. return val;
  3522. }
  3523. return null;
  3524. }
  3525. /* clear a key */
  3526. else if (arguments.length > 2 &amp;&amp; key != null &amp;&amp; val == null) {
  3527. if (id != null) {
  3528. val = this.registry[id][key];
  3529. delete this.registry[id][key];
  3530. return val;
  3531. }
  3532. return null;
  3533. }
  3534. /* set a key */
  3535. else if (arguments.length > 2 &amp;&amp; key != null &amp;&amp; val != null) {
  3536. if (id == null) {
  3537. do { id = Math.floor(Math.random() * 0xffffffff).toString(16) }
  3538. while (this.registry.hasOwnProperty(id));
  3539. node.setAttribute('data-idref', id);
  3540. this.registry[id] = {};
  3541. }
  3542. return (this.registry[id][key] = val);
  3543. }
  3544. /* get all data */
  3545. else if (arguments.length == 1) {
  3546. if (id != null)
  3547. return this.registry[id];
  3548. return null;
  3549. }
  3550. /* get a key */
  3551. else if (arguments.length == 2) {
  3552. if (id != null)
  3553. return this.registry[id][key];
  3554. }
  3555. return null;
  3556. },
  3557. /**
  3558. * Binds the given class instance ot the specified DOM `Node`.
  3559. *
  3560. * This function uses the `dom.data()` facility to attach the
  3561. * passed instance of a Class to a node. This is needed for
  3562. * complex widget elements or similar where the corresponding
  3563. * class instance responsible for the element must be retrieved
  3564. * from DOM nodes obtained by `querySelector()` or similar means.
  3565. *
  3566. * @instance
  3567. * @memberof LuCI.dom
  3568. * @param {Node} node
  3569. * The DOM `Node` instance to bind the class to.
  3570. *
  3571. * @param {Class} inst
  3572. * The Class instance to bind to the node.
  3573. *
  3574. * @throws {TypeError}
  3575. * Throws a `TypeError` when the given instance argument isn't
  3576. * a valid Class instance.
  3577. *
  3578. * @returns {Class}
  3579. * Returns the bound class instance.
  3580. */
  3581. bindClassInstance: function(node, inst) {
  3582. if (!(inst instanceof Class))
  3583. LuCI.prototype.error('TypeError', 'Argument must be a class instance');
  3584. return this.data(node, '_class', inst);
  3585. },
  3586. /**
  3587. * Finds a bound class instance on the given node itself or the
  3588. * first bound instance on its closest parent node.
  3589. *
  3590. * @instance
  3591. * @memberof LuCI.dom
  3592. * @param {Node} node
  3593. * The DOM `Node` instance to start from.
  3594. *
  3595. * @returns {Class|null}
  3596. * Returns the founds class instance if any or `null` if no bound
  3597. * class could be found on the node itself or any of its parents.
  3598. */
  3599. findClassInstance: function(node) {
  3600. var inst = null;
  3601. do {
  3602. inst = this.data(node, '_class');
  3603. node = node.parentNode;
  3604. }
  3605. while (!(inst instanceof Class) &amp;&amp; node != null);
  3606. return inst;
  3607. },
  3608. /**
  3609. * Finds a bound class instance on the given node itself or the
  3610. * first bound instance on its closest parent node and invokes
  3611. * the specified method name on the found class instance.
  3612. *
  3613. * @instance
  3614. * @memberof LuCI.dom
  3615. * @param {Node} node
  3616. * The DOM `Node` instance to start from.
  3617. *
  3618. * @param {string} method
  3619. * The name of the method to invoke on the found class instance.
  3620. *
  3621. * @param {...*} params
  3622. * Additional arguments to pass to the invoked method as-is.
  3623. *
  3624. * @returns {*|null}
  3625. * Returns the return value of the invoked method if a class
  3626. * instance and method has been found. Returns `null` if either
  3627. * no bound class instance could be found, or if the found
  3628. * instance didn't have the requested `method`.
  3629. */
  3630. callClassMethod: function(node, method /*, ... */) {
  3631. var inst = this.findClassInstance(node);
  3632. if (inst == null || typeof(inst[method]) != 'function')
  3633. return null;
  3634. return inst[method].apply(inst, inst.varargs(arguments, 2));
  3635. },
  3636. /**
  3637. * The ignore callback function is invoked by `isEmpty()` for each
  3638. * child node to decide whether to ignore a child node or not.
  3639. *
  3640. * When this function returns `false`, the node passed to it is
  3641. * ignored, else not.
  3642. *
  3643. * @callback LuCI.dom~ignoreCallbackFn
  3644. * @param {Node} node
  3645. * The child node to test.
  3646. *
  3647. * @returns {boolean}
  3648. * Boolean indicating whether to ignore the node or not.
  3649. */
  3650. /**
  3651. * Tests whether a given DOM `Node` instance is empty or appears
  3652. * empty.
  3653. *
  3654. * Any element child nodes which have the CSS class `hidden` set
  3655. * or for which the optionally passed `ignoreFn` callback function
  3656. * returns `false` are ignored.
  3657. *
  3658. * @instance
  3659. * @memberof LuCI.dom
  3660. * @param {Node} node
  3661. * The DOM `Node` instance to test.
  3662. *
  3663. * @param {LuCI.dom~ignoreCallbackFn} [ignoreFn]
  3664. * Specifies an optional function which is invoked for each child
  3665. * node to decide whether the child node should be ignored or not.
  3666. *
  3667. * @returns {boolean}
  3668. * Returns `true` if the node does not have any children or if
  3669. * any children node either has a `hidden` CSS class or a `false`
  3670. * result when testing it using the given `ignoreFn`.
  3671. */
  3672. isEmpty: function(node, ignoreFn) {
  3673. for (var child = node.firstElementChild; child != null; child = child.nextElementSibling)
  3674. if (!child.classList.contains('hidden') &amp;&amp; (!ignoreFn || !ignoreFn(child)))
  3675. return false;
  3676. return true;
  3677. }
  3678. });
  3679. /**
  3680. * @class session
  3681. * @memberof LuCI
  3682. * @hideconstructor
  3683. * @classdesc
  3684. *
  3685. * The `session` class provides various session related functionality.
  3686. */
  3687. var Session = Class.singleton(/** @lends LuCI.session.prototype */ {
  3688. __name__: 'LuCI.session',
  3689. /**
  3690. * Retrieve the current session ID.
  3691. *
  3692. * @returns {string}
  3693. * Returns the current session ID.
  3694. */
  3695. getID: function() {
  3696. return env.sessionid || '00000000000000000000000000000000';
  3697. },
  3698. /**
  3699. * Retrieve the current session token.
  3700. *
  3701. * @returns {string|null}
  3702. * Returns the current session token or `null` if not logged in.
  3703. */
  3704. getToken: function() {
  3705. return env.token || null;
  3706. },
  3707. /**
  3708. * Retrieve data from the local session storage.
  3709. *
  3710. * @param {string} [key]
  3711. * The key to retrieve from the session data store. If omitted, all
  3712. * session data will be returned.
  3713. *
  3714. * @returns {*}
  3715. * Returns the stored session data or `null` if the given key wasn't
  3716. * found.
  3717. */
  3718. getLocalData: function(key) {
  3719. try {
  3720. var sid = this.getID(),
  3721. item = 'luci-session-store',
  3722. data = JSON.parse(window.sessionStorage.getItem(item));
  3723. if (!LuCI.prototype.isObject(data) || !data.hasOwnProperty(sid)) {
  3724. data = {};
  3725. data[sid] = {};
  3726. }
  3727. if (key != null)
  3728. return data[sid].hasOwnProperty(key) ? data[sid][key] : null;
  3729. return data[sid];
  3730. }
  3731. catch (e) {
  3732. return (key != null) ? null : {};
  3733. }
  3734. },
  3735. /**
  3736. * Set data in the local session storage.
  3737. *
  3738. * @param {string} key
  3739. * The key to set in the session data store.
  3740. *
  3741. * @param {*} value
  3742. * The value to store. It will be internally converted to JSON before
  3743. * being put in the session store.
  3744. *
  3745. * @returns {boolean}
  3746. * Returns `true` if the data could be stored or `false` on error.
  3747. */
  3748. setLocalData: function(key, value) {
  3749. if (key == null)
  3750. return false;
  3751. try {
  3752. var sid = this.getID(),
  3753. item = 'luci-session-store',
  3754. data = JSON.parse(window.sessionStorage.getItem(item));
  3755. if (!LuCI.prototype.isObject(data) || !data.hasOwnProperty(sid)) {
  3756. data = {};
  3757. data[sid] = {};
  3758. }
  3759. if (value != null)
  3760. data[sid][key] = value;
  3761. else
  3762. delete data[sid][key];
  3763. window.sessionStorage.setItem(item, JSON.stringify(data));
  3764. return true;
  3765. }
  3766. catch (e) {
  3767. return false;
  3768. }
  3769. }
  3770. });
  3771. /**
  3772. * @class view
  3773. * @memberof LuCI
  3774. * @hideconstructor
  3775. * @classdesc
  3776. *
  3777. * The `view` class forms the basis of views and provides a standard
  3778. * set of methods to inherit from.
  3779. */
  3780. var View = Class.extend(/** @lends LuCI.view.prototype */ {
  3781. __name__: 'LuCI.view',
  3782. __init__: function() {
  3783. var vp = document.getElementById('view');
  3784. DOM.content(vp, E('div', { 'class': 'spinning' }, _('Loading view…')));
  3785. return Promise.resolve(this.load())
  3786. .then(LuCI.prototype.bind(this.render, this))
  3787. .then(LuCI.prototype.bind(function(nodes) {
  3788. var vp = document.getElementById('view');
  3789. DOM.content(vp, nodes);
  3790. DOM.append(vp, this.addFooter());
  3791. }, this)).catch(LuCI.prototype.error);
  3792. },
  3793. /**
  3794. * The load function is invoked before the view is rendered.
  3795. *
  3796. * The invocation of this function is wrapped by
  3797. * `Promise.resolve()` so it may return Promises if needed.
  3798. *
  3799. * The return value of the function (or the resolved values
  3800. * of the promise returned by it) will be passed as first
  3801. * argument to `render()`.
  3802. *
  3803. * This function is supposed to be overwritten by subclasses,
  3804. * the default implementation does nothing.
  3805. *
  3806. * @instance
  3807. * @abstract
  3808. * @memberof LuCI.view
  3809. *
  3810. * @returns {*|Promise&lt;*>}
  3811. * May return any value or a Promise resolving to any value.
  3812. */
  3813. load: function() {},
  3814. /**
  3815. * The render function is invoked after the
  3816. * {@link LuCI.view#load load()} function and responsible
  3817. * for setting up the view contents. It must return a DOM
  3818. * `Node` or `DocumentFragment` holding the contents to
  3819. * insert into the view area.
  3820. *
  3821. * The invocation of this function is wrapped by
  3822. * `Promise.resolve()` so it may return Promises if needed.
  3823. *
  3824. * The return value of the function (or the resolved values
  3825. * of the promise returned by it) will be inserted into the
  3826. * main content area using
  3827. * {@link LuCI.dom#append dom.append()}.
  3828. *
  3829. * This function is supposed to be overwritten by subclasses,
  3830. * the default implementation does nothing.
  3831. *
  3832. * @instance
  3833. * @abstract
  3834. * @memberof LuCI.view
  3835. * @param {*|null} load_results
  3836. * This function will receive the return value of the
  3837. * {@link LuCI.view#load view.load()} function as first
  3838. * argument.
  3839. *
  3840. * @returns {Node|Promise&lt;Node>}
  3841. * Should return a DOM `Node` value or a `Promise` resolving
  3842. * to a `Node` value.
  3843. */
  3844. render: function() {},
  3845. /**
  3846. * The handleSave function is invoked when the user clicks
  3847. * the `Save` button in the page action footer.
  3848. *
  3849. * The default implementation should be sufficient for most
  3850. * views using {@link form#Map form.Map()} based forms - it
  3851. * will iterate all forms present in the view and invoke
  3852. * the {@link form#Map#save Map.save()} method on each form.
  3853. *
  3854. * Views not using `Map` instances or requiring other special
  3855. * logic should overwrite `handleSave()` with a custom
  3856. * implementation.
  3857. *
  3858. * To disable the `Save` page footer button, views extending
  3859. * this base class should overwrite the `handleSave` function
  3860. * with `null`.
  3861. *
  3862. * The invocation of this function is wrapped by
  3863. * `Promise.resolve()` so it may return Promises if needed.
  3864. *
  3865. * @instance
  3866. * @memberof LuCI.view
  3867. * @param {Event} ev
  3868. * The DOM event that triggered the function.
  3869. *
  3870. * @returns {*|Promise&lt;*>}
  3871. * Any return values of this function are discarded, but
  3872. * passed through `Promise.resolve()` to ensure that any
  3873. * returned promise runs to completion before the button
  3874. * is re-enabled.
  3875. */
  3876. handleSave: function(ev) {
  3877. var tasks = [];
  3878. document.getElementById('maincontent')
  3879. .querySelectorAll('.cbi-map').forEach(function(map) {
  3880. tasks.push(DOM.callClassMethod(map, 'save'));
  3881. });
  3882. return Promise.all(tasks);
  3883. },
  3884. /**
  3885. * The handleSaveApply function is invoked when the user clicks
  3886. * the `Save &amp; Apply` button in the page action footer.
  3887. *
  3888. * The default implementation should be sufficient for most
  3889. * views using {@link form#Map form.Map()} based forms - it
  3890. * will first invoke
  3891. * {@link LuCI.view.handleSave view.handleSave()} and then
  3892. * call {@link ui#changes#apply ui.changes.apply()} to start the
  3893. * modal config apply and page reload flow.
  3894. *
  3895. * Views not using `Map` instances or requiring other special
  3896. * logic should overwrite `handleSaveApply()` with a custom
  3897. * implementation.
  3898. *
  3899. * To disable the `Save &amp; Apply` page footer button, views
  3900. * extending this base class should overwrite the
  3901. * `handleSaveApply` function with `null`.
  3902. *
  3903. * The invocation of this function is wrapped by
  3904. * `Promise.resolve()` so it may return Promises if needed.
  3905. *
  3906. * @instance
  3907. * @memberof LuCI.view
  3908. * @param {Event} ev
  3909. * The DOM event that triggered the function.
  3910. *
  3911. * @returns {*|Promise&lt;*>}
  3912. * Any return values of this function are discarded, but
  3913. * passed through `Promise.resolve()` to ensure that any
  3914. * returned promise runs to completion before the button
  3915. * is re-enabled.
  3916. */
  3917. handleSaveApply: function(ev, mode) {
  3918. return this.handleSave(ev).then(function() {
  3919. classes.ui.changes.apply(mode == '0');
  3920. });
  3921. },
  3922. /**
  3923. * The handleReset function is invoked when the user clicks
  3924. * the `Reset` button in the page action footer.
  3925. *
  3926. * The default implementation should be sufficient for most
  3927. * views using {@link form#Map form.Map()} based forms - it
  3928. * will iterate all forms present in the view and invoke
  3929. * the {@link form#Map#save Map.reset()} method on each form.
  3930. *
  3931. * Views not using `Map` instances or requiring other special
  3932. * logic should overwrite `handleReset()` with a custom
  3933. * implementation.
  3934. *
  3935. * To disable the `Reset` page footer button, views extending
  3936. * this base class should overwrite the `handleReset` function
  3937. * with `null`.
  3938. *
  3939. * The invocation of this function is wrapped by
  3940. * `Promise.resolve()` so it may return Promises if needed.
  3941. *
  3942. * @instance
  3943. * @memberof LuCI.view
  3944. * @param {Event} ev
  3945. * The DOM event that triggered the function.
  3946. *
  3947. * @returns {*|Promise&lt;*>}
  3948. * Any return values of this function are discarded, but
  3949. * passed through `Promise.resolve()` to ensure that any
  3950. * returned promise runs to completion before the button
  3951. * is re-enabled.
  3952. */
  3953. handleReset: function(ev) {
  3954. var tasks = [];
  3955. document.getElementById('maincontent')
  3956. .querySelectorAll('.cbi-map').forEach(function(map) {
  3957. tasks.push(DOM.callClassMethod(map, 'reset'));
  3958. });
  3959. return Promise.all(tasks);
  3960. },
  3961. /**
  3962. * Renders a standard page action footer if any of the
  3963. * `handleSave()`, `handleSaveApply()` or `handleReset()`
  3964. * functions are defined.
  3965. *
  3966. * The default implementation should be sufficient for most
  3967. * views - it will render a standard page footer with action
  3968. * buttons labeled `Save`, `Save &amp; Apply` and `Reset`
  3969. * triggering the `handleSave()`, `handleSaveApply()` and
  3970. * `handleReset()` functions respectively.
  3971. *
  3972. * When any of these `handle*()` functions is overwritten
  3973. * with `null` by a view extending this class, the
  3974. * corresponding button will not be rendered.
  3975. *
  3976. * @instance
  3977. * @memberof LuCI.view
  3978. * @returns {DocumentFragment}
  3979. * Returns a `DocumentFragment` containing the footer bar
  3980. * with buttons for each corresponding `handle*()` action
  3981. * or an empty `DocumentFragment` if all three `handle*()`
  3982. * methods are overwritten with `null`.
  3983. */
  3984. addFooter: function() {
  3985. var footer = E([]),
  3986. vp = document.getElementById('view'),
  3987. hasmap = false,
  3988. readonly = true;
  3989. vp.querySelectorAll('.cbi-map').forEach(function(map) {
  3990. var m = DOM.findClassInstance(map);
  3991. if (m) {
  3992. hasmap = true;
  3993. if (!m.readonly)
  3994. readonly = false;
  3995. }
  3996. });
  3997. if (!hasmap)
  3998. readonly = !LuCI.prototype.hasViewPermission();
  3999. var saveApplyBtn = this.handleSaveApply ? new classes.ui.ComboButton('0', {
  4000. 0: [ _('Save &amp; Apply') ],
  4001. 1: [ _('Apply unchecked') ]
  4002. }, {
  4003. classes: {
  4004. 0: 'btn cbi-button cbi-button-apply important',
  4005. 1: 'btn cbi-button cbi-button-negative important'
  4006. },
  4007. click: classes.ui.createHandlerFn(this, 'handleSaveApply'),
  4008. disabled: readonly || null
  4009. }).render() : E([]);
  4010. if (this.handleSaveApply || this.handleSave || this.handleReset) {
  4011. footer.appendChild(E('div', { 'class': 'cbi-page-actions' }, [
  4012. saveApplyBtn, ' ',
  4013. this.handleSave ? E('button', {
  4014. 'class': 'cbi-button cbi-button-save',
  4015. 'click': classes.ui.createHandlerFn(this, 'handleSave'),
  4016. 'disabled': readonly || null
  4017. }, [ _('Save') ]) : '', ' ',
  4018. this.handleReset ? E('button', {
  4019. 'class': 'cbi-button cbi-button-reset',
  4020. 'click': classes.ui.createHandlerFn(this, 'handleReset'),
  4021. 'disabled': readonly || null
  4022. }, [ _('Reset') ]) : ''
  4023. ]));
  4024. }
  4025. return footer;
  4026. }
  4027. });
  4028. var dummyElem = null,
  4029. domParser = null,
  4030. originalCBIInit = null,
  4031. rpcBaseURL = null,
  4032. sysFeatures = null,
  4033. preloadClasses = null;
  4034. /* "preload" builtin classes to make the available via require */
  4035. var classes = {
  4036. baseclass: Class,
  4037. dom: DOM,
  4038. poll: Poll,
  4039. request: Request,
  4040. session: Session,
  4041. view: View
  4042. };
  4043. var naturalCompare = new Intl.Collator(undefined, { numeric: true }).compare;
  4044. var LuCI = Class.extend(/** @lends LuCI.prototype */ {
  4045. __name__: 'LuCI',
  4046. __init__: function(setenv) {
  4047. document.querySelectorAll('script[src*="/luci.js"]').forEach(function(s) {
  4048. if (setenv.base_url == null || setenv.base_url == '') {
  4049. var m = (s.getAttribute('src') || '').match(/^(.*)\/luci\.js(?:\?v=([^?]+))?$/);
  4050. if (m) {
  4051. setenv.base_url = m[1];
  4052. setenv.resource_version = m[2];
  4053. }
  4054. }
  4055. });
  4056. if (setenv.base_url == null)
  4057. this.error('InternalError', 'Cannot find url of luci.js');
  4058. setenv.cgi_base = setenv.scriptname.replace(/\/[^\/]+$/, '');
  4059. Object.assign(env, setenv);
  4060. var domReady = new Promise(function(resolveFn, rejectFn) {
  4061. document.addEventListener('DOMContentLoaded', resolveFn);
  4062. });
  4063. Promise.all([
  4064. domReady,
  4065. this.require('ui'),
  4066. this.require('rpc'),
  4067. this.require('form'),
  4068. this.probeRPCBaseURL()
  4069. ]).then(this.setupDOM.bind(this)).catch(this.error);
  4070. originalCBIInit = window.cbi_init;
  4071. window.cbi_init = function() {};
  4072. },
  4073. /**
  4074. * Captures the current stack trace and throws an error of the
  4075. * specified type as a new exception. Also logs the exception as
  4076. * error to the debug console if it is available.
  4077. *
  4078. * @instance
  4079. * @memberof LuCI
  4080. *
  4081. * @param {Error|string} [type=Error]
  4082. * Either a string specifying the type of the error to throw or an
  4083. * existing `Error` instance to copy.
  4084. *
  4085. * @param {string} [fmt=Unspecified error]
  4086. * A format string which is used to form the error message, together
  4087. * with all subsequent optional arguments.
  4088. *
  4089. * @param {...*} [args]
  4090. * Zero or more variable arguments to the supplied format string.
  4091. *
  4092. * @throws {Error}
  4093. * Throws the created error object with the captured stack trace
  4094. * appended to the message and the type set to the given type
  4095. * argument or copied from the given error instance.
  4096. */
  4097. raise: function(type, fmt /*, ...*/) {
  4098. var e = null,
  4099. msg = fmt ? String.prototype.format.apply(fmt, this.varargs(arguments, 2)) : null,
  4100. stack = null;
  4101. if (type instanceof Error) {
  4102. e = type;
  4103. if (msg)
  4104. e.message = msg + ': ' + e.message;
  4105. }
  4106. else {
  4107. try { throw new Error('stacktrace') }
  4108. catch (e2) { stack = (e2.stack || '').split(/\n/) }
  4109. e = new (window[type || 'Error'] || Error)(msg || 'Unspecified error');
  4110. e.name = type || 'Error';
  4111. }
  4112. stack = (stack || []).map(function(frame) {
  4113. frame = frame.replace(/(.*?)@(.+):(\d+):(\d+)/g, 'at $1 ($2:$3:$4)').trim();
  4114. return frame ? ' ' + frame : '';
  4115. });
  4116. if (!/^ at /.test(stack[0]))
  4117. stack.shift();
  4118. if (/\braise /.test(stack[0]))
  4119. stack.shift();
  4120. if (/\berror /.test(stack[0]))
  4121. stack.shift();
  4122. if (stack.length)
  4123. e.message += '\n' + stack.join('\n');
  4124. if (window.console &amp;&amp; console.debug)
  4125. console.debug(e);
  4126. throw e;
  4127. },
  4128. /**
  4129. * A wrapper around {@link LuCI#raise raise()} which also renders
  4130. * the error either as modal overlay when `ui.js` is already loaded
  4131. * or directly into the view body.
  4132. *
  4133. * @instance
  4134. * @memberof LuCI
  4135. *
  4136. * @param {Error|string} [type=Error]
  4137. * Either a string specifying the type of the error to throw or an
  4138. * existing `Error` instance to copy.
  4139. *
  4140. * @param {string} [fmt=Unspecified error]
  4141. * A format string which is used to form the error message, together
  4142. * with all subsequent optional arguments.
  4143. *
  4144. * @param {...*} [args]
  4145. * Zero or more variable arguments to the supplied format string.
  4146. *
  4147. * @throws {Error}
  4148. * Throws the created error object with the captured stack trace
  4149. * appended to the message and the type set to the given type
  4150. * argument or copied from the given error instance.
  4151. */
  4152. error: function(type, fmt /*, ...*/) {
  4153. try {
  4154. LuCI.prototype.raise.apply(LuCI.prototype,
  4155. Array.prototype.slice.call(arguments));
  4156. }
  4157. catch (e) {
  4158. if (!e.reported) {
  4159. if (classes.ui)
  4160. classes.ui.addNotification(e.name || _('Runtime error'),
  4161. E('pre', {}, e.message), 'danger');
  4162. else
  4163. DOM.content(document.querySelector('#maincontent'),
  4164. E('pre', { 'class': 'alert-message error' }, e.message));
  4165. e.reported = true;
  4166. }
  4167. throw e;
  4168. }
  4169. },
  4170. /**
  4171. * Return a bound function using the given `self` as `this` context
  4172. * and any further arguments as parameters to the bound function.
  4173. *
  4174. * @instance
  4175. * @memberof LuCI
  4176. *
  4177. * @param {function} fn
  4178. * The function to bind.
  4179. *
  4180. * @param {*} self
  4181. * The value to bind as `this` context to the specified function.
  4182. *
  4183. * @param {...*} [args]
  4184. * Zero or more variable arguments which are bound to the function
  4185. * as parameters.
  4186. *
  4187. * @returns {function}
  4188. * Returns the bound function.
  4189. */
  4190. bind: function(fn, self /*, ... */) {
  4191. return Function.prototype.bind.apply(fn, this.varargs(arguments, 2, self));
  4192. },
  4193. /**
  4194. * Load an additional LuCI JavaScript class and its dependencies,
  4195. * instantiate it and return the resulting class instance. Each
  4196. * class is only loaded once. Subsequent attempts to load the same
  4197. * class will return the already instantiated class.
  4198. *
  4199. * @instance
  4200. * @memberof LuCI
  4201. *
  4202. * @param {string} name
  4203. * The name of the class to load in dotted notation. Dots will
  4204. * be replaced by spaces and joined with the runtime-determined
  4205. * base URL of LuCI.js to form an absolute URL to load the class
  4206. * file from.
  4207. *
  4208. * @throws {DependencyError}
  4209. * Throws a `DependencyError` when the class to load includes
  4210. * circular dependencies.
  4211. *
  4212. * @throws {NetworkError}
  4213. * Throws `NetworkError` when the underlying {@link LuCI.request}
  4214. * call failed.
  4215. *
  4216. * @throws {SyntaxError}
  4217. * Throws `SyntaxError` when the loaded class file code cannot
  4218. * be interpreted by `eval`.
  4219. *
  4220. * @throws {TypeError}
  4221. * Throws `TypeError` when the class file could be loaded and
  4222. * interpreted, but when invoking its code did not yield a valid
  4223. * class instance.
  4224. *
  4225. * @returns {Promise&lt;LuCI.baseclass>}
  4226. * Returns the instantiated class.
  4227. */
  4228. require: function(name, from) {
  4229. var L = this, url = null, from = from || [];
  4230. /* Class already loaded */
  4231. if (classes[name] != null) {
  4232. /* Circular dependency */
  4233. if (from.indexOf(name) != -1)
  4234. LuCI.prototype.raise('DependencyError',
  4235. 'Circular dependency: class "%s" depends on "%s"',
  4236. name, from.join('" which depends on "'));
  4237. return Promise.resolve(classes[name]);
  4238. }
  4239. url = '%s/%s.js%s'.format(env.base_url, name.replace(/\./g, '/'), (env.resource_version ? '?v=' + env.resource_version : ''));
  4240. from = [ name ].concat(from);
  4241. var compileClass = function(res) {
  4242. if (!res.ok)
  4243. LuCI.prototype.raise('NetworkError',
  4244. 'HTTP error %d while loading class file "%s"', res.status, url);
  4245. var source = res.text(),
  4246. requirematch = /^require[ \t]+(\S+)(?:[ \t]+as[ \t]+([a-zA-Z_]\S*))?$/,
  4247. strictmatch = /^use[ \t]+strict$/,
  4248. depends = [],
  4249. args = '';
  4250. /* find require statements in source */
  4251. for (var i = 0, off = -1, prev = -1, quote = -1, comment = -1, esc = false; i &lt; source.length; i++) {
  4252. var chr = source.charCodeAt(i);
  4253. if (esc) {
  4254. esc = false;
  4255. }
  4256. else if (comment != -1) {
  4257. if ((comment == 47 &amp;&amp; chr == 10) || (comment == 42 &amp;&amp; prev == 42 &amp;&amp; chr == 47))
  4258. comment = -1;
  4259. }
  4260. else if ((chr == 42 || chr == 47) &amp;&amp; prev == 47) {
  4261. comment = chr;
  4262. }
  4263. else if (chr == 92) {
  4264. esc = true;
  4265. }
  4266. else if (chr == quote) {
  4267. var s = source.substring(off, i),
  4268. m = requirematch.exec(s);
  4269. if (m) {
  4270. var dep = m[1], as = m[2] || dep.replace(/[^a-zA-Z0-9_]/g, '_');
  4271. depends.push(LuCI.prototype.require(dep, from));
  4272. args += ', ' + as;
  4273. }
  4274. else if (!strictmatch.exec(s)) {
  4275. break;
  4276. }
  4277. off = -1;
  4278. quote = -1;
  4279. }
  4280. else if (quote == -1 &amp;&amp; (chr == 34 || chr == 39)) {
  4281. off = i + 1;
  4282. quote = chr;
  4283. }
  4284. prev = chr;
  4285. }
  4286. /* load dependencies and instantiate class */
  4287. return Promise.all(depends).then(function(instances) {
  4288. var _factory, _class;
  4289. try {
  4290. _factory = eval(
  4291. '(function(window, document, L%s) { %s })\n\n//# sourceURL=%s\n'
  4292. .format(args, source, res.url));
  4293. }
  4294. catch (error) {
  4295. LuCI.prototype.raise('SyntaxError', '%s\n in %s:%s',
  4296. error.message, res.url, error.lineNumber || '?');
  4297. }
  4298. _factory.displayName = toCamelCase(name + 'ClassFactory');
  4299. _class = _factory.apply(_factory, [window, document, L].concat(instances));
  4300. if (!Class.isSubclass(_class))
  4301. LuCI.prototype.error('TypeError', '"%s" factory yields invalid constructor', name);
  4302. if (_class.displayName == 'AnonymousClass')
  4303. _class.displayName = toCamelCase(name + 'Class');
  4304. var ptr = Object.getPrototypeOf(L),
  4305. parts = name.split(/\./),
  4306. instance = new _class();
  4307. for (var i = 0; ptr &amp;&amp; i &lt; parts.length - 1; i++)
  4308. ptr = ptr[parts[i]];
  4309. if (ptr)
  4310. ptr[parts[i]] = instance;
  4311. classes[name] = instance;
  4312. return instance;
  4313. });
  4314. };
  4315. /* Request class file */
  4316. classes[name] = Request.get(url, { cache: true }).then(compileClass);
  4317. return classes[name];
  4318. },
  4319. /* DOM setup */
  4320. probeRPCBaseURL: function() {
  4321. if (rpcBaseURL == null)
  4322. rpcBaseURL = Session.getLocalData('rpcBaseURL');
  4323. if (rpcBaseURL == null) {
  4324. var msg = {
  4325. jsonrpc: '2.0',
  4326. id: 'init',
  4327. method: 'list',
  4328. params: undefined
  4329. };
  4330. var rpcFallbackURL = this.url('admin/ubus');
  4331. rpcBaseURL = Request.post(env.ubuspath, msg, { nobatch: true }).then(function(res) {
  4332. return (rpcBaseURL = res.status == 200 ? env.ubuspath : rpcFallbackURL);
  4333. }, function() {
  4334. return (rpcBaseURL = rpcFallbackURL);
  4335. }).then(function(url) {
  4336. Session.setLocalData('rpcBaseURL', url);
  4337. return url;
  4338. });
  4339. }
  4340. return Promise.resolve(rpcBaseURL);
  4341. },
  4342. probeSystemFeatures: function() {
  4343. if (sysFeatures == null)
  4344. sysFeatures = Session.getLocalData('features');
  4345. if (!this.isObject(sysFeatures)) {
  4346. sysFeatures = classes.rpc.declare({
  4347. object: 'luci',
  4348. method: 'getFeatures',
  4349. expect: { '': {} }
  4350. })().then(function(features) {
  4351. Session.setLocalData('features', features);
  4352. sysFeatures = features;
  4353. return features;
  4354. });
  4355. }
  4356. return Promise.resolve(sysFeatures);
  4357. },
  4358. probePreloadClasses: function() {
  4359. if (preloadClasses == null)
  4360. preloadClasses = Session.getLocalData('preload');
  4361. if (!Array.isArray(preloadClasses)) {
  4362. preloadClasses = this.resolveDefault(classes.rpc.declare({
  4363. object: 'file',
  4364. method: 'list',
  4365. params: [ 'path' ],
  4366. expect: { 'entries': [] }
  4367. })(this.fspath(this.resource('preload'))), []).then(function(entries) {
  4368. var classes = [];
  4369. for (var i = 0; i &lt; entries.length; i++) {
  4370. if (entries[i].type != 'file')
  4371. continue;
  4372. var m = entries[i].name.match(/(.+)\.js$/);
  4373. if (m)
  4374. classes.push('preload.%s'.format(m[1]));
  4375. }
  4376. Session.setLocalData('preload', classes);
  4377. preloadClasses = classes;
  4378. return classes;
  4379. });
  4380. }
  4381. return Promise.resolve(preloadClasses);
  4382. },
  4383. /**
  4384. * Test whether a particular system feature is available, such as
  4385. * hostapd SAE support or an installed firewall. The features are
  4386. * queried once at the beginning of the LuCI session and cached in
  4387. * `SessionStorage` throughout the lifetime of the associated tab or
  4388. * browser window.
  4389. *
  4390. * @instance
  4391. * @memberof LuCI
  4392. *
  4393. * @param {string} feature
  4394. * The feature to test. For detailed list of known feature flags,
  4395. * see `/modules/luci-base/root/usr/share/rpcd/ucode/luci`.
  4396. *
  4397. * @param {string} [subfeature]
  4398. * Some feature classes like `hostapd` provide sub-feature flags,
  4399. * such as `sae` or `11w` support. The `subfeature` argument can
  4400. * be used to query these.
  4401. *
  4402. * @return {boolean|null}
  4403. * Return `true` if the queried feature (and sub-feature) is available
  4404. * or `false` if the requested feature isn't present or known.
  4405. * Return `null` when a sub-feature was queried for a feature which
  4406. * has no sub-features.
  4407. */
  4408. hasSystemFeature: function() {
  4409. var ft = sysFeatures[arguments[0]];
  4410. if (arguments.length == 2)
  4411. return this.isObject(ft) ? ft[arguments[1]] : null;
  4412. return (ft != null &amp;&amp; ft != false);
  4413. },
  4414. /* private */
  4415. notifySessionExpiry: function() {
  4416. Poll.stop();
  4417. classes.ui.showModal(_('Session expired'), [
  4418. E('div', { class: 'alert-message warning' },
  4419. _('A new login is required since the authentication session expired.')),
  4420. E('div', { class: 'right' },
  4421. E('div', {
  4422. class: 'btn primary',
  4423. click: function() {
  4424. var loc = window.location;
  4425. window.location = loc.protocol + '//' + loc.host + loc.pathname + loc.search;
  4426. }
  4427. }, _('Log in…')))
  4428. ]);
  4429. LuCI.prototype.raise('SessionError', 'Login session is expired');
  4430. },
  4431. /* private */
  4432. setupDOM: function(res) {
  4433. var domEv = res[0],
  4434. uiClass = res[1],
  4435. rpcClass = res[2],
  4436. formClass = res[3],
  4437. rpcBaseURL = res[4];
  4438. rpcClass.setBaseURL(rpcBaseURL);
  4439. rpcClass.addInterceptor(function(msg, req) {
  4440. if (!LuCI.prototype.isObject(msg) ||
  4441. !LuCI.prototype.isObject(msg.error) ||
  4442. msg.error.code != -32002)
  4443. return;
  4444. if (!LuCI.prototype.isObject(req) ||
  4445. (req.object == 'session' &amp;&amp; req.method == 'access'))
  4446. return;
  4447. return rpcClass.declare({
  4448. 'object': 'session',
  4449. 'method': 'access',
  4450. 'params': [ 'scope', 'object', 'function' ],
  4451. 'expect': { access: true }
  4452. })('uci', 'luci', 'read').catch(LuCI.prototype.notifySessionExpiry);
  4453. });
  4454. Request.addInterceptor(function(res) {
  4455. var isDenied = false;
  4456. if (res.status == 403 &amp;&amp; res.headers.get('X-LuCI-Login-Required') == 'yes')
  4457. isDenied = true;
  4458. if (!isDenied)
  4459. return;
  4460. LuCI.prototype.notifySessionExpiry();
  4461. });
  4462. document.addEventListener('poll-start', function(ev) {
  4463. uiClass.showIndicator('poll-status', _('Refreshing'), function(ev) {
  4464. Request.poll.active() ? Request.poll.stop() : Request.poll.start();
  4465. });
  4466. });
  4467. document.addEventListener('poll-stop', function(ev) {
  4468. uiClass.showIndicator('poll-status', _('Paused'), null, 'inactive');
  4469. });
  4470. return Promise.all([
  4471. this.probeSystemFeatures(),
  4472. this.probePreloadClasses()
  4473. ]).finally(LuCI.prototype.bind(function() {
  4474. var tasks = [];
  4475. if (Array.isArray(preloadClasses))
  4476. for (var i = 0; i &lt; preloadClasses.length; i++)
  4477. tasks.push(this.require(preloadClasses[i]));
  4478. return Promise.all(tasks);
  4479. }, this)).finally(this.initDOM);
  4480. },
  4481. /* private */
  4482. initDOM: function() {
  4483. originalCBIInit();
  4484. Poll.start();
  4485. document.dispatchEvent(new CustomEvent('luci-loaded'));
  4486. },
  4487. /**
  4488. * The `env` object holds environment settings used by LuCI, such
  4489. * as request timeouts, base URLs etc.
  4490. *
  4491. * @instance
  4492. * @memberof LuCI
  4493. */
  4494. env: env,
  4495. /**
  4496. * Construct an absolute filesystem path relative to the server
  4497. * document root.
  4498. *
  4499. * @instance
  4500. * @memberof LuCI
  4501. *
  4502. * @param {...string} [parts]
  4503. * An array of parts to join into a path.
  4504. *
  4505. * @return {string}
  4506. * Return the joined path.
  4507. */
  4508. fspath: function(/* ... */) {
  4509. var path = env.documentroot;
  4510. for (var i = 0; i &lt; arguments.length; i++)
  4511. path += '/' + arguments[i];
  4512. var p = path.replace(/\/+$/, '').replace(/\/+/g, '/').split(/\//),
  4513. res = [];
  4514. for (var i = 0; i &lt; p.length; i++)
  4515. if (p[i] == '..')
  4516. res.pop();
  4517. else if (p[i] != '.')
  4518. res.push(p[i]);
  4519. return res.join('/');
  4520. },
  4521. /**
  4522. * Construct a relative URL path from the given prefix and parts.
  4523. * The resulting URL is guaranteed to only contain the characters
  4524. * `a-z`, `A-Z`, `0-9`, `_`, `.`, `%`, `,`, `;`, and `-` as well
  4525. * as `/` for the path separator.
  4526. *
  4527. * @instance
  4528. * @memberof LuCI
  4529. *
  4530. * @param {string} [prefix]
  4531. * The prefix to join the given parts with. If the `prefix` is
  4532. * omitted, it defaults to an empty string.
  4533. *
  4534. * @param {string[]} [parts]
  4535. * An array of parts to join into a URL path. Parts may contain
  4536. * slashes and any of the other characters mentioned above.
  4537. *
  4538. * @return {string}
  4539. * Return the joined URL path.
  4540. */
  4541. path: function(prefix, parts) {
  4542. var url = [ prefix || '' ];
  4543. for (var i = 0; i &lt; parts.length; i++)
  4544. if (/^(?:[a-zA-Z0-9_.%,;-]+\/)*[a-zA-Z0-9_.%,;-]+$/.test(parts[i]))
  4545. url.push('/', parts[i]);
  4546. if (url.length === 1)
  4547. url.push('/');
  4548. return url.join('');
  4549. },
  4550. /**
  4551. * Construct a URL with path relative to the script path of the server
  4552. * side LuCI application (usually `/cgi-bin/luci`).
  4553. *
  4554. * The resulting URL is guaranteed to only contain the characters
  4555. * `a-z`, `A-Z`, `0-9`, `_`, `.`, `%`, `,`, `;`, and `-` as well
  4556. * as `/` for the path separator.
  4557. *
  4558. * @instance
  4559. * @memberof LuCI
  4560. *
  4561. * @param {string[]} [parts]
  4562. * An array of parts to join into a URL path. Parts may contain
  4563. * slashes and any of the other characters mentioned above.
  4564. *
  4565. * @return {string}
  4566. * Returns the resulting URL path.
  4567. */
  4568. url: function() {
  4569. return this.path(env.scriptname, arguments);
  4570. },
  4571. /**
  4572. * Construct a URL path relative to the global static resource path
  4573. * of the LuCI ui (usually `/luci-static/resources`).
  4574. *
  4575. * The resulting URL is guaranteed to only contain the characters
  4576. * `a-z`, `A-Z`, `0-9`, `_`, `.`, `%`, `,`, `;`, and `-` as well
  4577. * as `/` for the path separator.
  4578. *
  4579. * @instance
  4580. * @memberof LuCI
  4581. *
  4582. * @param {string[]} [parts]
  4583. * An array of parts to join into a URL path. Parts may contain
  4584. * slashes and any of the other characters mentioned above.
  4585. *
  4586. * @return {string}
  4587. * Returns the resulting URL path.
  4588. */
  4589. resource: function() {
  4590. return this.path(env.resource, arguments);
  4591. },
  4592. /**
  4593. * Construct a URL path relative to the media resource path of the
  4594. * LuCI ui (usually `/luci-static/$theme_name`).
  4595. *
  4596. * The resulting URL is guaranteed to only contain the characters
  4597. * `a-z`, `A-Z`, `0-9`, `_`, `.`, `%`, `,`, `;`, and `-` as well
  4598. * as `/` for the path separator.
  4599. *
  4600. * @instance
  4601. * @memberof LuCI
  4602. *
  4603. * @param {string[]} [parts]
  4604. * An array of parts to join into a URL path. Parts may contain
  4605. * slashes and any of the other characters mentioned above.
  4606. *
  4607. * @return {string}
  4608. * Returns the resulting URL path.
  4609. */
  4610. media: function() {
  4611. return this.path(env.media, arguments);
  4612. },
  4613. /**
  4614. * Return the complete URL path to the current view.
  4615. *
  4616. * @instance
  4617. * @memberof LuCI
  4618. *
  4619. * @return {string}
  4620. * Returns the URL path to the current view.
  4621. */
  4622. location: function() {
  4623. return this.path(env.scriptname, env.requestpath);
  4624. },
  4625. /**
  4626. * Tests whether the passed argument is a JavaScript object.
  4627. * This function is meant to be an object counterpart to the
  4628. * standard `Array.isArray()` function.
  4629. *
  4630. * @instance
  4631. * @memberof LuCI
  4632. *
  4633. * @param {*} [val]
  4634. * The value to test
  4635. *
  4636. * @return {boolean}
  4637. * Returns `true` if the given value is of type object and
  4638. * not `null`, else returns `false`.
  4639. */
  4640. isObject: function(val) {
  4641. return (val != null &amp;&amp; typeof(val) == 'object');
  4642. },
  4643. /**
  4644. * Return an array of sorted object keys, optionally sorted by
  4645. * a different key or a different sorting mode.
  4646. *
  4647. * @instance
  4648. * @memberof LuCI
  4649. *
  4650. * @param {object} obj
  4651. * The object to extract the keys from. If the given value is
  4652. * not an object, the function will return an empty array.
  4653. *
  4654. * @param {string|null} [key]
  4655. * Specifies the key to order by. This is mainly useful for
  4656. * nested objects of objects or objects of arrays when sorting
  4657. * shall not be performed by the primary object keys but by
  4658. * some other key pointing to a value within the nested values.
  4659. *
  4660. * @param {"addr"|"num"} [sortmode]
  4661. * Can be either `addr` or `num` to override the natural
  4662. * lexicographic sorting with a sorting suitable for IP/MAC style
  4663. * addresses or numeric values respectively.
  4664. *
  4665. * @return {string[]}
  4666. * Returns an array containing the sorted keys of the given object.
  4667. */
  4668. sortedKeys: function(obj, key, sortmode) {
  4669. if (obj == null || typeof(obj) != 'object')
  4670. return [];
  4671. return Object.keys(obj).map(function(e) {
  4672. var v = (key != null) ? obj[e][key] : e;
  4673. switch (sortmode) {
  4674. case 'addr':
  4675. v = (v != null) ? v.replace(/(?:^|[.:])([0-9a-fA-F]{1,4})/g,
  4676. function(m0, m1) { return ('000' + m1.toLowerCase()).substr(-4) }) : null;
  4677. break;
  4678. case 'num':
  4679. v = (v != null) ? +v : null;
  4680. break;
  4681. }
  4682. return [ e, v ];
  4683. }).filter(function(e) {
  4684. return (e[1] != null);
  4685. }).sort(function(a, b) {
  4686. return naturalCompare(a[1], b[1]);
  4687. }).map(function(e) {
  4688. return e[0];
  4689. });
  4690. },
  4691. /**
  4692. * Compares two values numerically and returns -1, 0 or 1 depending
  4693. * on whether the first value is smaller, equal to or larger than the
  4694. * second one respectively.
  4695. *
  4696. * This function is meant to be used as comparator function for
  4697. * Array.sort().
  4698. *
  4699. * @type {function}
  4700. *
  4701. * @param {*} a
  4702. * The first value
  4703. *
  4704. * @param {*} b
  4705. * The second value.
  4706. *
  4707. * @return {number}
  4708. * Returns -1 if the first value is smaller than the second one.
  4709. * Returns 0 if both values are equal.
  4710. * Returns 1 if the first value is larger than the second one.
  4711. */
  4712. naturalCompare: naturalCompare,
  4713. /**
  4714. * Converts the given value to an array using toArray() if needed,
  4715. * performs a numerical sort using naturalCompare() and returns the
  4716. * result. If the input already is an array, no copy is being made
  4717. * and the sorting is performed in-place.
  4718. *
  4719. * @see toArray
  4720. * @see naturalCompare
  4721. *
  4722. * @param {*} val
  4723. * The input value to sort (and convert to an array if needed).
  4724. *
  4725. * @return {Array&lt;*>}
  4726. * Returns the resulting, numerically sorted array.
  4727. */
  4728. sortedArray: function(val) {
  4729. return this.toArray(val).sort(naturalCompare);
  4730. },
  4731. /**
  4732. * Converts the given value to an array. If the given value is of
  4733. * type array, it is returned as-is, values of type object are
  4734. * returned as one-element array containing the object, empty
  4735. * strings and `null` values are returned as empty array, all other
  4736. * values are converted using `String()`, trimmed, split on white
  4737. * space and returned as array.
  4738. *
  4739. * @instance
  4740. * @memberof LuCI
  4741. *
  4742. * @param {*} val
  4743. * The value to convert into an array.
  4744. *
  4745. * @return {Array&lt;*>}
  4746. * Returns the resulting array.
  4747. */
  4748. toArray: function(val) {
  4749. if (val == null)
  4750. return [];
  4751. else if (Array.isArray(val))
  4752. return val;
  4753. else if (typeof(val) == 'object')
  4754. return [ val ];
  4755. var s = String(val).trim();
  4756. if (s == '')
  4757. return [];
  4758. return s.split(/\s+/);
  4759. },
  4760. /**
  4761. * Returns a promise resolving with either the given value or with
  4762. * the given default in case the input value is a rejecting promise.
  4763. *
  4764. * @instance
  4765. * @memberof LuCI
  4766. *
  4767. * @param {*} value
  4768. * The value to resolve the promise with.
  4769. *
  4770. * @param {*} defvalue
  4771. * The default value to resolve the promise with in case the given
  4772. * input value is a rejecting promise.
  4773. *
  4774. * @returns {Promise&lt;*>}
  4775. * Returns a new promise resolving either to the given input value or
  4776. * to the given default value on error.
  4777. */
  4778. resolveDefault: function(value, defvalue) {
  4779. return Promise.resolve(value).catch(function() { return defvalue });
  4780. },
  4781. /**
  4782. * The request callback function is invoked whenever an HTTP
  4783. * reply to a request made using the `L.get()`, `L.post()` or
  4784. * `L.poll()` function is timed out or received successfully.
  4785. *
  4786. * @instance
  4787. * @memberof LuCI
  4788. *
  4789. * @callback LuCI.requestCallbackFn
  4790. * @param {XMLHTTPRequest} xhr
  4791. * The XMLHTTPRequest instance used to make the request.
  4792. *
  4793. * @param {*} data
  4794. * The response JSON if the response could be parsed as such,
  4795. * else `null`.
  4796. *
  4797. * @param {number} duration
  4798. * The total duration of the request in milliseconds.
  4799. */
  4800. /**
  4801. * Issues a GET request to the given url and invokes the specified
  4802. * callback function. The function is a wrapper around
  4803. * {@link LuCI.request#request Request.request()}.
  4804. *
  4805. * @deprecated
  4806. * @instance
  4807. * @memberof LuCI
  4808. *
  4809. * @param {string} url
  4810. * The URL to request.
  4811. *
  4812. * @param {Object&lt;string, string>} [args]
  4813. * Additional query string arguments to append to the URL.
  4814. *
  4815. * @param {LuCI.requestCallbackFn} cb
  4816. * The callback function to invoke when the request finishes.
  4817. *
  4818. * @return {Promise&lt;null>}
  4819. * Returns a promise resolving to `null` when concluded.
  4820. */
  4821. get: function(url, args, cb) {
  4822. return this.poll(null, url, args, cb, false);
  4823. },
  4824. /**
  4825. * Issues a POST request to the given url and invokes the specified
  4826. * callback function. The function is a wrapper around
  4827. * {@link LuCI.request#request Request.request()}. The request is
  4828. * sent using `application/x-www-form-urlencoded` encoding and will
  4829. * contain a field `token` with the current value of `LuCI.env.token`
  4830. * by default.
  4831. *
  4832. * @deprecated
  4833. * @instance
  4834. * @memberof LuCI
  4835. *
  4836. * @param {string} url
  4837. * The URL to request.
  4838. *
  4839. * @param {Object&lt;string, string>} [args]
  4840. * Additional post arguments to append to the request body.
  4841. *
  4842. * @param {LuCI.requestCallbackFn} cb
  4843. * The callback function to invoke when the request finishes.
  4844. *
  4845. * @return {Promise&lt;null>}
  4846. * Returns a promise resolving to `null` when concluded.
  4847. */
  4848. post: function(url, args, cb) {
  4849. return this.poll(null, url, args, cb, true);
  4850. },
  4851. /**
  4852. * Register a polling HTTP request that invokes the specified
  4853. * callback function. The function is a wrapper around
  4854. * {@link LuCI.request.poll#add Request.poll.add()}.
  4855. *
  4856. * @deprecated
  4857. * @instance
  4858. * @memberof LuCI
  4859. *
  4860. * @param {number} interval
  4861. * The poll interval to use. If set to a value less than or equal
  4862. * to `0`, it will default to the global poll interval configured
  4863. * in `LuCI.env.pollinterval`.
  4864. *
  4865. * @param {string} url
  4866. * The URL to request.
  4867. *
  4868. * @param {Object&lt;string, string>} [args]
  4869. * Specifies additional arguments for the request. For GET requests,
  4870. * the arguments are appended to the URL as query string, for POST
  4871. * requests, they'll be added to the request body.
  4872. *
  4873. * @param {LuCI.requestCallbackFn} cb
  4874. * The callback function to invoke whenever a request finishes.
  4875. *
  4876. * @param {boolean} [post=false]
  4877. * When set to `false` or not specified, poll requests will be made
  4878. * using the GET method. When set to `true`, POST requests will be
  4879. * issued. In case of POST requests, the request body will contain
  4880. * an argument `token` with the current value of `LuCI.env.token` by
  4881. * default, regardless of the parameters specified with `args`.
  4882. *
  4883. * @return {function}
  4884. * Returns the internally created function that has been passed to
  4885. * {@link LuCI.request.poll#add Request.poll.add()}. This value can
  4886. * be passed to {@link LuCI.poll.remove Poll.remove()} to remove the
  4887. * polling request.
  4888. */
  4889. poll: function(interval, url, args, cb, post) {
  4890. if (interval !== null &amp;&amp; interval &lt;= 0)
  4891. interval = env.pollinterval;
  4892. var data = post ? { token: env.token } : null,
  4893. method = post ? 'POST' : 'GET';
  4894. if (!/^(?:\/|\S+:\/\/)/.test(url))
  4895. url = this.url(url);
  4896. if (args != null)
  4897. data = Object.assign(data || {}, args);
  4898. if (interval !== null)
  4899. return Request.poll.add(interval, url, { method: method, query: data }, cb);
  4900. else
  4901. return Request.request(url, { method: method, query: data })
  4902. .then(function(res) {
  4903. var json = null;
  4904. if (/^application\/json\b/.test(res.headers.get('Content-Type')))
  4905. try { json = res.json() } catch(e) {}
  4906. cb(res.xhr, json, res.duration);
  4907. });
  4908. },
  4909. /**
  4910. * Check whether a view has sufficient permissions.
  4911. *
  4912. * @return {boolean|null}
  4913. * Returns `null` if the current session has no permission at all to
  4914. * load resources required by the view. Returns `false` if readonly
  4915. * permissions are granted or `true` if at least one required ACL
  4916. * group is granted with write permissions.
  4917. */
  4918. hasViewPermission: function() {
  4919. if (!this.isObject(env.nodespec) || !env.nodespec.satisfied)
  4920. return null;
  4921. return !env.nodespec.readonly;
  4922. },
  4923. /**
  4924. * Deprecated wrapper around {@link LuCI.poll.remove Poll.remove()}.
  4925. *
  4926. * @deprecated
  4927. * @instance
  4928. * @memberof LuCI
  4929. *
  4930. * @param {function} entry
  4931. * The polling function to remove.
  4932. *
  4933. * @return {boolean}
  4934. * Returns `true` when the function has been removed or `false` if
  4935. * it could not be found.
  4936. */
  4937. stop: function(entry) { return Poll.remove(entry) },
  4938. /**
  4939. * Deprecated wrapper around {@link LuCI.poll.stop Poll.stop()}.
  4940. *
  4941. * @deprecated
  4942. * @instance
  4943. * @memberof LuCI
  4944. *
  4945. * @return {boolean}
  4946. * Returns `true` when the polling loop has been stopped or `false`
  4947. * when it didn't run to begin with.
  4948. */
  4949. halt: function() { return Poll.stop() },
  4950. /**
  4951. * Deprecated wrapper around {@link LuCI.poll.start Poll.start()}.
  4952. *
  4953. * @deprecated
  4954. * @instance
  4955. * @memberof LuCI
  4956. *
  4957. * @return {boolean}
  4958. * Returns `true` when the polling loop has been started or `false`
  4959. * when it was already running.
  4960. */
  4961. run: function() { return Poll.start() },
  4962. /**
  4963. * Legacy `L.dom` class alias. New view code should use `'require dom';`
  4964. * to request the `LuCI.dom` class.
  4965. *
  4966. * @instance
  4967. * @memberof LuCI
  4968. * @deprecated
  4969. */
  4970. dom: DOM,
  4971. /**
  4972. * Legacy `L.view` class alias. New view code should use `'require view';`
  4973. * to request the `LuCI.view` class.
  4974. *
  4975. * @instance
  4976. * @memberof LuCI
  4977. * @deprecated
  4978. */
  4979. view: View,
  4980. /**
  4981. * Legacy `L.Poll` class alias. New view code should use `'require poll';`
  4982. * to request the `LuCI.poll` class.
  4983. *
  4984. * @instance
  4985. * @memberof LuCI
  4986. * @deprecated
  4987. */
  4988. Poll: Poll,
  4989. /**
  4990. * Legacy `L.Request` class alias. New view code should use `'require request';`
  4991. * to request the `LuCI.request` class.
  4992. *
  4993. * @instance
  4994. * @memberof LuCI
  4995. * @deprecated
  4996. */
  4997. Request: Request,
  4998. /**
  4999. * Legacy `L.Class` class alias. New view code should use `'require baseclass';`
  5000. * to request the `LuCI.baseclass` class.
  5001. *
  5002. * @instance
  5003. * @memberof LuCI
  5004. * @deprecated
  5005. */
  5006. Class: Class
  5007. });
  5008. /**
  5009. * @class xhr
  5010. * @memberof LuCI
  5011. * @deprecated
  5012. * @classdesc
  5013. *
  5014. * The `LuCI.xhr` class is a legacy compatibility shim for the
  5015. * functionality formerly provided by `xhr.js`. It is registered as global
  5016. * `window.XHR` symbol for compatibility with legacy code.
  5017. *
  5018. * New code should use {@link LuCI.request} instead to implement HTTP
  5019. * request handling.
  5020. */
  5021. var XHR = Class.extend(/** @lends LuCI.xhr.prototype */ {
  5022. __name__: 'LuCI.xhr',
  5023. __init__: function() {
  5024. if (window.console &amp;&amp; console.debug)
  5025. console.debug('Direct use XHR() is deprecated, please use L.Request instead');
  5026. },
  5027. _response: function(cb, res, json, duration) {
  5028. if (this.active)
  5029. cb(res, json, duration);
  5030. delete this.active;
  5031. },
  5032. /**
  5033. * This function is a legacy wrapper around
  5034. * {@link LuCI#get LuCI.get()}.
  5035. *
  5036. * @instance
  5037. * @deprecated
  5038. * @memberof LuCI.xhr
  5039. *
  5040. * @param {string} url
  5041. * The URL to request
  5042. *
  5043. * @param {Object} [data]
  5044. * Additional query string data
  5045. *
  5046. * @param {LuCI.requestCallbackFn} [callback]
  5047. * Callback function to invoke on completion
  5048. *
  5049. * @param {number} [timeout]
  5050. * Request timeout to use
  5051. *
  5052. * @return {Promise&lt;null>}
  5053. */
  5054. get: function(url, data, callback, timeout) {
  5055. this.active = true;
  5056. LuCI.prototype.get(url, data, this._response.bind(this, callback), timeout);
  5057. },
  5058. /**
  5059. * This function is a legacy wrapper around
  5060. * {@link LuCI#post LuCI.post()}.
  5061. *
  5062. * @instance
  5063. * @deprecated
  5064. * @memberof LuCI.xhr
  5065. *
  5066. * @param {string} url
  5067. * The URL to request
  5068. *
  5069. * @param {Object} [data]
  5070. * Additional data to append to the request body.
  5071. *
  5072. * @param {LuCI.requestCallbackFn} [callback]
  5073. * Callback function to invoke on completion
  5074. *
  5075. * @param {number} [timeout]
  5076. * Request timeout to use
  5077. *
  5078. * @return {Promise&lt;null>}
  5079. */
  5080. post: function(url, data, callback, timeout) {
  5081. this.active = true;
  5082. LuCI.prototype.post(url, data, this._response.bind(this, callback), timeout);
  5083. },
  5084. /**
  5085. * Cancels a running request.
  5086. *
  5087. * This function does not actually cancel the underlying
  5088. * `XMLHTTPRequest` request but it sets a flag which prevents the
  5089. * invocation of the callback function when the request eventually
  5090. * finishes or timed out.
  5091. *
  5092. * @instance
  5093. * @deprecated
  5094. * @memberof LuCI.xhr
  5095. */
  5096. cancel: function() { delete this.active },
  5097. /**
  5098. * Checks the running state of the request.
  5099. *
  5100. * @instance
  5101. * @deprecated
  5102. * @memberof LuCI.xhr
  5103. *
  5104. * @returns {boolean}
  5105. * Returns `true` if the request is still running or `false` if it
  5106. * already completed.
  5107. */
  5108. busy: function() { return (this.active === true) },
  5109. /**
  5110. * Ignored for backwards compatibility.
  5111. *
  5112. * This function does nothing.
  5113. *
  5114. * @instance
  5115. * @deprecated
  5116. * @memberof LuCI.xhr
  5117. */
  5118. abort: function() {},
  5119. /**
  5120. * Existing for backwards compatibility.
  5121. *
  5122. * This function simply throws an `InternalError` when invoked.
  5123. *
  5124. * @instance
  5125. * @deprecated
  5126. * @memberof LuCI.xhr
  5127. *
  5128. * @throws {InternalError}
  5129. * Throws an `InternalError` with the message `Not implemented`
  5130. * when invoked.
  5131. */
  5132. send_form: function() { LuCI.prototype.error('InternalError', 'Not implemented') },
  5133. });
  5134. XHR.get = function() { return LuCI.prototype.get.apply(LuCI.prototype, arguments) };
  5135. XHR.post = function() { return LuCI.prototype.post.apply(LuCI.prototype, arguments) };
  5136. XHR.poll = function() { return LuCI.prototype.poll.apply(LuCI.prototype, arguments) };
  5137. XHR.stop = Request.poll.remove.bind(Request.poll);
  5138. XHR.halt = Request.poll.stop.bind(Request.poll);
  5139. XHR.run = Request.poll.start.bind(Request.poll);
  5140. XHR.running = Request.poll.active.bind(Request.poll);
  5141. window.XHR = XHR;
  5142. window.LuCI = LuCI;
  5143. })(window, document);
  5144. </code></pre>
  5145. </article>
  5146. </section>
  5147. <footer>
  5148. Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Wed Nov 27 2024 20:43:36 GMT+0000 (Coordinated Universal Time)
  5149. </footer>
  5150. </div>
  5151. </div>
  5152. <script>prettyPrint();</script>
  5153. <script src="scripts/jaguar.js"></script>
  5154. </body>
  5155. </html>