luci-base: form.js: implement AbstractValue.getUIElement()
authorJo-Philipp Wich <jo@mein.io>
Mon, 30 Dec 2019 13:40:57 +0000 (14:40 +0100)
committerJo-Philipp Wich <jo@mein.io>
Mon, 30 Dec 2019 13:52:27 +0000 (14:52 +0100)
commit344609e9ee9b28c0f548da9a8f6c5d54ea02aed8
treecfff0349df21196a3f93b00361ec5c0beaf18ebe
parentb440eafb692354df18efac8f8e7e024d91ffde1b
luci-base: form.js: implement AbstractValue.getUIElement()

Introduce a new method `getUIElement()` which simplifies obtaining the
underlying per-section UI widget class instance for a from option object.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 9e259174323a406b93664e307bb8a50fc3d80483)
modules/luci-base/htdocs/luci-static/resources/form.js