i find the document about cbi models here
but in source file /luci/cbi.lua, there is model table but i'm not sure how to use it
function Table.__init__(t,e,o,...)
local e={}
local a=t
e.config="table"
t.data=o or{}
e.formvalue=Map.formvalue
e.formvaluetable=Map.formvaluetable
e.readinput=true
function e.get(o,e,t)
return a.data[e]and a.data[e][t]
end
function e.submitstate(e)
return Map.formvalue(e,"cbi.submit")
end
function e.del(...)
return true
end
function e.get_scheme()
return nil
end
AbstractSection.__init__(t,e,"table",...)
t.template="cbi/tblsection"
t.rowcolors=true
t.anonymous=true
end
Can someone help me about it ? Thanks