openwrt的CBI控件简单说明

名称 描述 继承自 模板
NamedSection A fixed configuration section defined by its name NamedSection = class(AbstractSection) cbi/nsection
TypedSection A (set of) configuration section(s) defined by the type TypedSection = class(AbstractSection) cbi/tsection
Node Node pseudo abstract class Node = class() cbi/node
Template A simple template element Template = class(Node)  
Map A map describing a configuration file Map = class(Node) cbi/map
Compound Container Compound = class(Node) cbi/compound
Delegator Node controller Delegator = class(Node) cbi/delegator
SimpleForm A Simple non-UCI form SimpleForm = class(Node) cbi/simpleform
Form   Form = class(SimpleForm)  
AbstractSection   AbstractSection = class(Node)  
SimpleSection   SimpleSection = class(AbstractSection) cbi/nullsection
Table   Table = class(AbstractSection) cbi/tblsection
AbstractValue An abstract Value Type AbstractValue = class(Node)  
Value A one-line value Value = class(AbstractValue) cbi/value
DummyValue This does nothing except being there DummyValue = class(AbstractValue) cbi/dvalue
Flag A flag being enabled or disabled Flag = class(AbstractValue) cbi/fvalue
ListValue A one-line value predefined in a list ListValue = class(AbstractValue) cbi/lvalue
MultiValue Multiple delimited values MultiValue = class(AbstractValue) cbi/mvalue
StaticList   StaticList = class(MultiValue)  
DynamicList   DynamicList = class(AbstractValue) cbi/dynlist
TextValue A multi-line value TextValue = class(AbstractValue) cbi/tvalue
Button   Button = class(AbstractValue) cbi/button
FileUpload   FileUpload = class(AbstractValue) cbi/upload
FileBrowser   FileBrowser = class(AbstractValue) cbi/browser
Page A simple node Page = class(Node)

posted @ 2015-05-20 16:03  souroot  阅读(2569)  评论(0编辑  收藏  举报