[luci] Creating tab and non-tab elements simultaneously inside a section in LuCI
Kiran G
kiran at gadgeon.com
Mon Dec 23 05:15:05 CET 2013
Hi all,
I am writing an application which dynamically generates luci
controller/model files. I have found out that under a section, if you
have created a tab box, any entries in the section which are not inside
the tab box are ignored.
section_var_1 = m:section(TypedSection,"abcdname","RectIndexTest")
section_var_1.anonymous = true
field_var_1 = section_var_1:option(Value,"temperature1",translate("Temperature"))
field_var_1.template = "cbi/lucitmpl1"
field_var_1.value = "55"
field_var_1.suffix = "C"
section_var_1:tab("1temperature", translate("Temperature"))
field_var_2 = section_var_1:taboption("1temperature",Value,"temperature2",translate("Temperature"))
field_var_2.template = "cbi/lucitmpl1"
field_var_2.value = "55"
field_var_2.suffix = "C"
section_var_1:tab("1uptime", translate("uptime"))
field_var_3 = section_var_1:taboption("1uptime",Value,"uptime3",translate("uptime"))
field_var_3.template = "cbi/lucitmpl1"
field_var_3.value = "55
field_var_3.suffix = "C"
The element specified by "field_var_1" is getting ignored. If this a
limitation in LuCi is there anyway I can overcome this? Or if there is a
workaround, please let me know. I need to put multiple types of elements
inside a section, some inside tabboxes and some outside.
Thanks a lot.
Kiran
More information about the luci
mailing list