luci-base: form.js: add cfgvalue(), formvalue() and getUIElement() helpers
authorJo-Philipp Wich <jo@mein.io>
Mon, 3 Aug 2020 13:56:51 +0000 (15:56 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 5 Aug 2020 11:51:16 +0000 (13:51 +0200)
commitb8d381b677fa4de8ac01805b08dfe38ddd59d5e3
treee91127c63121144fac56b1be11dcb4411e74f097
parent2d774c4973a654632153aa11413e2502836672ed
luci-base: form.js: add cfgvalue(), formvalue() and getUIElement() helpers

This commit introduces new per-section cfgvalue(), formvalue() and
getUIElement() helper functions which complement the respective per-option
functions.

Their intent is to simplify querying input data or obtaining UI widget
instances from other options within the same section.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/form.js