luci中SimpleForm的文档

时间:2014-02-07 11:05:58

标签: lua simple-form openwrt luci

我尝试操作在freifunk firmware gluon中生成配置模式的代码,但我找不到文档如何在这一行添加TEXTAREA而不是INPUT字段:

o = s:option(Value, "_contact", "Kontakt")
o.default = string.format("%f", uci:get_first("gluon-contact", "contact", "public_info", ""))

1 个答案:

答案 0 :(得分:0)

我在这里找到了一些文档:

http://luci.subsignal.org/trac/wiki/Documentation/CBI

所以textarea被称为TextValue

o = s:option(TextValue, "_contact", "Kontakt")
o.default = string.format("%s", uci:get_first("gluon-contact", "contact", "public_info", ""))
o.rmempty = false
o.datatype = "string"                                  
o.description = "z.B. E-Mail, Telefon oder Chat-Name"  
o.size = 35