Hi, i have a couple of questions and problems regarding luci/cbi.
-
whats does
.optional = true
actually do for aFlag/Value
, other than.rmempty = true
and can someone give a example when to use it? -
does
.rmempty = true
do anything forFlag
options? -
i cant get the binary depends option to work, the option is always hidden
s:taboption("general", Flag, "disable_netbios", translate("Disable Netbios")):depends("binary", "/usr/sbin/nmbd")
-
is there a way to get
:depends
working inside atemplate = "cbi/tblsection"
section?
I tried to slim down my samba share options, but i cant find a way to dynamically display/hide a option inside a cbi/tblsection
section. I tried to override the .render
function, but than the section looks broken and i'm not sure how to refresh the page correctly in such a case.