luci/modules
Jo-Philipp Wich 4cca96ef09 luci-base: support option aliases in luci.cbi
AbstractValue descendants may now specify a new optional property `alias`
which refers to a uci option to read/write/remove that differs from the
option name itself.

This is mainly useful for widgets that are toggled based on dependencies,
e.g. for alternating between SingleValue and MultiValue, but which are
intented to write into the same uci option.

Such a setup was previously possible already by overriding the .cfgvalue(),
.write() and .remove() callbacks with custom implementations, but that
required a lot of boiler plate code and was rather fragile.

With the `alias` property, CBI now takes care of the details and tracks
aliased fields within a section accordingly.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-06-08 07:25:54 +02:00
..
luci-base luci-base: support option aliases in luci.cbi 2018-06-08 07:25:54 +02:00
luci-mod-admin-full luci-mod-admin-full: use common alert message markup 2018-05-31 19:00:56 +02:00
luci-mod-admin-mini treewide: unify mac address handling 2018-03-12 16:12:18 +01:00
luci-mod-failsafe luci-mod-failsafe: use same string as luci-mod-admin-full 2016-12-10 19:11:50 +02:00
luci-mod-freifunk luci-mod-freifunk: use common alert message markup 2018-05-31 19:08:14 +02:00
luci-mod-freifunk-community Rework LuCI build system 2015-01-08 16:26:20 +01:00
luci-mod-rpc luci-mod-rpc: fix unresolved controller reference in rpc_auth() 2018-05-18 16:58:17 +02:00