0

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", ""))
Ben
  • 3,012
  • 1
  • 21
  • 25
rubo77
  • 19,527
  • 31
  • 134
  • 226

1 Answers1

0

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 
rubo77
  • 19,527
  • 31
  • 134
  • 226