Greetings to all !
In the same domain..
I tried to move this table (.template = "cbi/tblsection" MQTT topics & Modbus address) under the "test" tab.
Currently, this table is under the whole 3 tabs, not just under 1 tab.
It's a TypedSection with .template="cbi/tblsection". I didn't get to put taboption as tblsection.
But that must be possible, like the "Static Leases" in "DHCP and DNS" Luci page.
So if you have any idea. Thanks.
The code I try to use for that (here as a comment):
Yes this is possible but only using new style JavaScript based CBI forms which provide an option type (CBISectionValue) that allows to wrap an entire section into an option container.
With Lua based CBI forms this is not doable unfortunately.
@stangri I started adding JavaScript documentation here http://openwrt.github.io/luci/jsapi/index.html but it is work-in-progress. I still need to add docs for form.js (the JS CBI) and ui.js (low level widget class) as well as more high level documentation.
Hi @stangri
I'm going back to the fact that you said " Static leases show up for me wherever any of the 4 Server Settings tabs is selected, it is not shown just under one of the tabs "
But if I change of tab (General Settings and others), I don't see anymore the " Hostname / MAC-Address /
IPv4-Address / Lease time / ..." table.
It is that I want.
Like also Routes, IPv4 and IPv6 tabs have each their cbi/tblsection.
Maybe there are an missunderstanding or their use something else.
I agree to have a selection by tab, with each its "Save & Apply" button.
Now, my tblselection is present whatever the tab is selected. Present at the bottom of every page.
Thanks for your help