문제

I try to manipulate the code that generates the config mode in the freifunk firmware gluon but I cannot find the documentation how to add a TEXTAREA instead of an INPUT field at this lines:

o = s:option(Value, "_contact", "Kontakt")
o.default = string.format("%f", uci:get_first("gluon-contact", "contact", "public_info", ""))
도움이 되었습니까?

해결책

I found some documentation here:

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

So a textarea is called 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 
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top