luci/modules/luci-base
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
..
htdocs luci-base: cbi.js: remove unused serialize functions 2018-05-30 16:04:07 +02:00
luasrc luci-base: support option aliases in luci.cbi 2018-06-08 07:25:54 +02:00
po luci-base: update Japanese translation 2018-06-01 02:45:53 +09:00
root Merge pull request #1769 from jow-/master 2018-05-18 16:44:33 +02:00
src Revert "luci-base: add urldecode() and urlencode() C implementations" 2018-04-18 16:21:27 +02:00
Makefile luci-base: drop dependency on libuci-lua 2018-04-18 16:54:53 +02:00